Override Core Page in Package
Permalink
I'm looking for a way to override / extend the Page class in a package. I know we can change the app.php, but I'd like to do it from a package.
Is that even possible in C5742? I've looked through the forums and Google, but couldn't find an answer.
Something like this in the Package on_start doesn't seem to work:
Ideas?
Is that even possible in C5742? I've looked through the forums and Google, but couldn't find an answer.
Something like this in the Package on_start doesn't seem to work:
\Core::bind('\Concrete\Core\Page\Page', function() { exit("test"); });
Ideas?
Ever figure this out?
@mainio posted a trick to override and inherit from anything. Just need to search back through either forum posts or howtos (not sure where he posted it).
Would it happen to be this post?
http://www.concrete5.org/community/forums/customizing_c5/extending-...
Because thats for 5.6
http://www.concrete5.org/community/forums/customizing_c5/extending-...
Because thats for 5.6
No, the post I am thinking of was very 5.7 specific.
Found some helpful stuff on github:
https://github.com/concrete5/concrete5/issues/251...
https://github.com/concrete5/concrete5/issues/251...
Ever figure this out?