Difference between revisions of "Customization"
From PhotoVoltaic Logger new generation
m |
m |
||
Line 16: | Line 16: | ||
== Coding == | == Coding == | ||
+ | |||
+ | * If an file <tt>prepend.php</tt> exists, it will be included '''before any''' other PHP instructions. | ||
+ | * If an file <tt>append.php</tt> exists, it will be included '''after all''' other PHP instructions. | ||
+ | |||
+ | (This works for the [[:Category:Web frontend|web frontend]] and for [[API]] since <tt>r3</tt>. | ||
+ | |||
+ | I use this for defining the application name for [http://newrelic.com/monitor-everything NewRelic] monitoring. | ||
[[Category:Internals]] | [[Category:Internals]] |
Revision as of 15:25, 3 March 2014
Templates
The web frontend templates resides at frontend/View
The internal search logic for the to be used template is this (assume this requested template: default.footer.tpl)
- Search these directories
- frontend/View/{module}/custom
- frontend/View/{module}
- frontend/View/custom
- frontend/View
- Found template here: frontend/View/default.footer.tpl
The custom sub directories are not delivered with Git repository, you have to create them if required.
These directories will be ignored on update, they are excluded via .gitignore
Coding
- If an file prepend.php exists, it will be included before any other PHP instructions.
- If an file append.php exists, it will be included after all other PHP instructions.
(This works for the web frontend and for API since r3.
I use this for defining the application name for NewRelic monitoring.