Nuvish Posted August 15, 2011 Share Posted August 15, 2011 In php,to get the name of the page i am currently in,i use this : $pageName = $smarty->get_template_vars('page_name'); But on my front page,it says that this function is deprecated. What can i use instead to get the page name ? Link to comment Share on other sites More sharing options...
razaro Posted August 15, 2011 Share Posted August 15, 2011 Try with function getTemplateVars (from tools/smarty/sysplugins/smarty_internal_data.php) $pageName = $smarty->getTemplateVars('page_name'); 1 Link to comment Share on other sites More sharing options...
aqwzsx159 Posted December 14, 2012 Share Posted December 14, 2012 Thanks!!!!!!!!!!!!!!!!!!!!!!!!!!! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now