Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Can you use PHP in default.master.tpl?
tjforsythe
New
I tried putting some PHP code into the default.master.tpl file of my template in an attempt to load the wordpress header.php, but it does not get parsed. When I view the source online, the PHP code is unchanged and appears to just be ignored. I also tried wrapping it in the {literal} tag to no avail. Can someone tell me if it's possible to embed PHP in this file?
0
Comments
What do you mean under "function reference API"?
Vanilla uses MVC(Model-View-Controller paradigm) and objects.
Plus event handlers as very useful helper approach.
Read about all this in documentation on this site.
Plus use good IDE (I prefer PhpStorm 2.0) and look into code (it is of quite high quality, many places are commented, arguments are also described according to PHP Doc)
My understanding is that you can make exactly the same documentation using Doxygen and Vanilla source?
As for Smarty - I asked not about how to use Smarty, but on how not to use it, in, for example, Mobile theme. I heard something about taking compiled PHP versions out from the Smarty cache.
To use PHP templates, just call your files .php instead of .tpl. PHP template files override Smarty versions afaik.
If you must do a full path (i.e. the files are outside Vanilla) then you must use the relative or full system path to the file ('../../folder/file.php' or '/var/www/vhosts/folder/file.php'). You generally can't include over http.