Skip to content

Instantly share code, notes, and snippets.

@rainerborene
Created March 6, 2011 16:57
Show Gist options
  • Save rainerborene/857399 to your computer and use it in GitHub Desktop.
Save rainerborene/857399 to your computer and use it in GitHub Desktop.
Rediscovering Symphony templates

Rediscovering Symphony templates

In Symphony 2.2.1 you get the dark side of the force to customize some particular views, like Exceptions and Fatal Error templates.

We're going to learn what each template do, and how we can customize them. All described files here are located in the symphony/template directory.

datasource.tpl represents Data Sources created in the back-end. There is not much you can do but you can get rid of some useless data in the about() function like website.

event.tpl same as Data Sources, but for events.

errorhandler.tpl handles any uncaught exceptions thrown in Symphony. See more.

fatalerror.tpl displays the Exception message as provided by the Database. See more.

page.xsl copied and pasted to your workspace when you create a new page in the back-end.

tpl.error.php See more.

tpl.xslt-error.php See more.

tpl.database-error.php See more.

Remember that editing these files isn't considered hacking the core.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment