Page Template Controller?

Permalink
Is there such thing as a seperate controller for a page template file? What I mean is if I build a page template that is accessing page attributes and such, can't I seperate that logic from the actually page_name.php view file, and put it in its own controller file somewhere? Or do I have to include the php that grabs attributes within the page template file itself?

ob7dev
 
MrKDilkington replied on at Permalink Best Answer Reply
MrKDilkington
Hi ob7dev,

You can create controllers for page types. Page types can use multiple page templates.

"Controllers for Page Types"
http://documentation.concrete5.org/developers/working-with-pages/co...