How can I get current URL using smarty
You can use this, too. {$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI}
You can use this, too. {$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI}
Yes, as you said, if you don’t force yourself to use a templating engine inside PHP ( the templating engine ) it becomes easy to slip and stop separating concerns. However, the same people who have problems separating concerns end up generating HTML and feeding it to smarty, or executing PHP code in Smarty, so … Read more
That looks like Smarty to me. Smarty is a template parser written in PHP. You can read up on how to use Smarty in the documentation. If you can’t get access to the CMS’s source: To view the templates in your browser, just look at what variables Smarty is using and create a PHP file … Read more
You can use {php} tags Method 1 (won’t work in Smarty 3.1 or later): {php} $var = $this->get_template_vars(‘var’); var_dump($var); {/php} Method 2: {$var|@print_r} Method 3: {$var|@var_dump}