Home > Development, Documentation, English > Howto debug templates in Akelos

Howto debug templates in Akelos

One of the problems with having everything built into a framework is that, if someone messes up, it is really difficult to find where.
If you want to debug templates in Akelos (i.e. put error_log() calls inside your .tpl files), you’ll need to edit your config/config.php file and add

define(‘AK_TEMPLATE_SECURITY_CHECK’,false);

Then if you want to get more logs about what’s happening inside your application (as seen by Akelos), you can take the opportunity to also add

define(‘AK_LOG_EVENTS’,true);

This last constant definition will write all internal logs to the log/ directory (log/production.log if you’re in production, or log/development.log if you’re in development mode)

  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: