PDA

View Full Version : Need some very basic help


CleverFellow
11-10-2010, 12:42 PM
I'm just starting to try to work my own php into my templates, and I'm a bit confused about how you make variables available to templates using {vb raw} and {vb rawphrase}. Once I've made my variable in the php file, do I need to add it to a special class or something? And I read somewhere that you need to pre-register variables to use them in templates in 4.0 - does this apply to this situation?

Thanks a lot

Lynne
11-10-2010, 02:18 PM
Cellarius wrote a really good article that you may be interested in - [vB4] Rendering templates and registering variables - a short guide (https://vborg.vbsupport.ru/showthread.php?t=228078)