[Solar-talk] Method-Based Actions

Antti Holvikari anttih at gmail.com
Mon Jun 26 14:59:25 PDT 2006


On 6/25/06, Antti Holvikari <anttih at gmail.com> wrote:
> Now the question is, how would do this with Solar? Matthew, could you
> share an example with CGI::Application :-)? With Solar, the base class
> (like Bookmarks.php) needs to be instantiated by the front controller,
> otherwise the config keys wont work. That is, you can't extend the
> base class and have those config keys for the base class to apply to
> the child classes. You could call child classes (which perform the
> extended functionality) from the base class but then you have another
> controller right there. Paul, correct me if I'm wrong.

Aha! I see the new version will also use the parent's config keys and
locale files. It seems to work really well. I have created a few
Vendor_App_Example_* classes which the front controller is triggering.
The sub-classes use the Vendor_App_Example's configs, and it works
like a charm. Paul, is this the intended way of doing this?


-- 
Antti Holvikari <http://antti.dotgeek.org/blog>
Zend Certified Engineer (ZCE)


More information about the solar-talk mailing list