Jump to content

Recommended Posts

Posted

I see the pageClass property of Template, and I see how both Pages and PagesType support using it to instantiate objects, but I don't see where it's managable in the UI. Am I missing it, or do I need to add it myself to the admin UI module?

Posted

I found the $this->config->advanced line, but can't figure out where to set that intelligently. I'm setting it in init right now, and that shows the System tab, but I realize there's likely a more intelligent way to show this.

Posted

This is where it's usually set: /site/config.php - most of these options are meant for system/core development (some not that safe for everyday), so remember to turn it back off when done. For the most part I prefer to extend Page via autoload modules or delegation rather than by inheritance, but the pageClass option is there when you need to enforce a type derived from Page. Examples are User, Role, Permission types.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...