How to include an external php file?
I'm trying to include the top main navigation of my website above the forum to keep the user experience consistent. But for some reason the file doesnot appear at all. Its something related to smarty I think. This is what I've tried so far:
To give you a sense of my directory structure:
/ /includes/ | menu.php /forums/ *vanilla installation in forums* | cache/ | Smarty/ | compile/ | vanilla^%%D3^D31^D31D02CD%%default.master.tpl | themes/ | THEME_NAME/ | views/ | default.master.tpl /index.php *my site home page*
The compiled file ( vanilla^%%D3^D31^D31D02CD%%default.master.tpl) turns this code into
<?php $_smarty_tpl_vars = $this->_tpl_vars; $this->_smarty_include(array('smarty_include_tpl_file' => '../../../../includes/menu.php', 'smarty_include_vars' => array())); $this->_tpl_vars = $_smarty_tpl_vars; unset($_smarty_tpl_vars); ?>
The path to the file is still correct but the file still doesn't get included. How do I do it?