I want to integrate another template engine into Kirby. Therefore I need to extend the page and the block class. I tried the way described in the docs:
But I only get the core objects in my templates not the extended.
Thanks for your reply. But that does not help. As I wrote: I also tried to define the class in the index.php without any effect. I get a core page object in my template…
Are you using the default template or a different one? Keep in mind that models are tied to a page by template. So the DefaultPage model would only apply to pages with the default blueprint/template.
Don’t quite know where you are heading, but why are you using a page model here?
I downloaded plain kit. With downloaded version the example works. With composer version it does not.
Any idea, how to fix that? The documentation just refers to autoload topics. As the example only has an index.php, there is no autoloading needed. Or am I wrong?–