evilnick Posted August 18, 2010 Share Posted August 18, 2010 Is it possible to call php functions in .tpl files?I am trying to call this in cms.tpl: Tools::getValue('id_cms') But it just won't work. Or the only way is to assign a variable via the cms.php?Thanks Link to comment Share on other sites More sharing options...
razaro Posted August 18, 2010 Share Posted August 18, 2010 Yes can get id in tpl file like this for an example id:{$cms->id} But generically you assign variable in php file and forward it to tpl file. 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