Since Cotonti 0.9.1 a new set of debugging facilities is available to template designers.
The first one is block/tags listing mode. It outputs a plain tree of blocks and assigned tags in them for the current page. Example:
To get such a debug page, you need to make sure debug_mode is enabled for your Cotonti instance first. Open datas/config.php and make sure you have debug_mode enabled:
$cfg['debug_mode'] = TRUE;
Then you can see a TPL dump of any page by simply appending tpl_debug=1 parameter to the URL of the page, e.g.
There are several notes about TPL Debug functioning:
Another useful feature which is now available is variable dumps. To see a dump of the variable instead of its content, you add special dump()
callback to it using a pipe sign, e.g.
{MY_TAG|dump} {PHP.usr.profile|dump} or even {PHP|dump}
For example, if you place {PHP.out|dump} in header.tpl, you will see somewhat like this:
And finally, one of the most frequently asked questions:
Thanked: 9 times
Thx, this will be very helpfull.
indeed, this will help loads of peepz with getting more out of Cotonti.
Thanked: 217 times
Получаем список тегов и блоков при помощи нового шаблонизатора Котонти Сиена