Closed (outdated)
Project:
MAYO
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
18 Jan 2015 at 17:46 UTC
Updated:
14 Feb 2016 at 22:17 UTC
Jump to comment: Most recent
Looking at the tpl.php files, page.tpl.php in particular, these have far more PHP code in them that is recommended. As much code as possible should be placed in template preprocess functions in template.php, leaving tpl files to just have print statements and if {} blocks and foreach loops if needed.
This makes them easier to use, and helps with performance.
Comments
Comment #1
mermentau commentedThe way suggested is correct, but it's been that way since the original developer coded it 4 years ago. I just haven't made time to improve it and now I'm trying to get Mayo ready for Drupal 8. Marking it Postponed and hoping to work on it at some future date. This problem won't exist in Mayo 8.x-1.x.
Comment #2
mermentau commentedClosed after 30 days of non-response from OP.