Quantcast
Channel:
Viewing all articles
Browse latest Browse all 4235

Re: DataObject never calling init of its ContentController?

$
0
0

A controller's init() function is fired when the controller is instantiated. The controller you created will not be instantiated automatically - that only applies to pagecontrollers - you'd have to take care of that yourself.

There are other ways, but the common way to load requirements into you website is to either add them to your template, or to your pagecontrollers init() function. If you want to load requirements into the admin section, you could use getCMSFields().


Posted to: DataObject never calling init of its ContentController? | Show Thread | Post Reply


Viewing all articles
Browse latest Browse all 4235

Trending Articles