Automatic controller function on_before_render not called on page type controllers
Permalink
I'm not sure why exactly but on_before_render is not getting called automatically when you are in page type controller. Just use the on_start function to, for example, add css stylesheets to the header.
That would be possible for blocks - not for page_type controllers.
I'd like to bump this as well, as this issue is present in the latest 5.5.1 and is seriously cramping my style. Easy to reproduce: Create a single page with a controller, try and see if you can get anything executed in the on_before_render method = Fail.
Thanks to any admin who takes a look at this one...!
Thanks to any admin who takes a look at this one...!
You should post this to the bug tracker otherwise I don't think admins will see it.
Be sure to seehttp://www.concrete5.org/documentation/developers/blocks/mvc-approa... for further reference about that method.