Page models - base page model without template

I am using page models for a project and I have a question.
Is it possible to create a page model that does not correspond to any template only to use it as base for other page models?
For example to have a model defined as:

class BasePage extends Page

without a base.php template. And then have:

class CustomPage extends BasePage

with a custom.php template? And so to have all methods of BasePage available at CustomPage.

Yes that works perfectly fine. That was actually the first thing I did after checking out the branch :smiley:

Thank you, I will try it today.

Iā€™m using like that:


class Home extends BasePage{}


class BasePage extends Page{}


It works perfectly both with and without the require_once.