embedding my own php & smarty tags?
Posted: Wed Nov 23, 2005 10:16 pm
Hi! I'm just getting CMS set up on a couple of sites. It's great and I'm loving it.
Couple of questions:
1. I have a chunk of PHP that I wrote that displays an 'on' state for top level navigation based on the REQUEST_URI. How can I easily embed this PHP in every page of my site? I wanted to install it as a module and then call the module in the default template, but I can't find any info on how to get CMS to "see" the PHP as a module once I place the php files in the /modules/ directory.
2. Is CMS written on top of PHPSmarty? If so, does this mean I can use Smarty tags in the templates, such as Smarty's {foreach} and {if} statements?
Thanks in advance!
Couple of questions:
1. I have a chunk of PHP that I wrote that displays an 'on' state for top level navigation based on the REQUEST_URI. How can I easily embed this PHP in every page of my site? I wanted to install it as a module and then call the module in the default template, but I can't find any info on how to get CMS to "see" the PHP as a module once I place the php files in the /modules/ directory.
2. Is CMS written on top of PHPSmarty? If so, does this mean I can use Smarty tags in the templates, such as Smarty's {foreach} and {if} statements?
Thanks in advance!