[Solar-talk] Somehow nested controllers / Support for multiple applications
Paul M Jones
pmjones at ciaweb.net
Wed Jun 6 09:27:44 PDT 2007
On Jun 6, 2007, at 11:16 AM, Antti Holvikari wrote:
> How do you see a flexible front controller should work? Any ideas?
> Right now, *I* don't have any other needs. Didn't Paul add some static
> routing mechanism a while ago?
I did, but it's first-path-element specific. You can have a
'routing' config key like this ...
$this->_config['routing'] = array(
'foo' => 'Vendor_App_Bar',
'baz' => 'Some_Other_Class',
);
... which maps "http://example.com/foo" to the Vendor_App_Bar page
controller, and 'baz' to the Some_Other_Class page controller. But
it's not smart enough right now to map anything after the first path
element.
--
Paul M. Jones <http://paul-m-jones.com>
Solar: Simple Object Library and Application Repository
for PHP5. <http://solarphp.com>
Join the Solar community wiki! <http://solarphp.org>
Savant: The simple, elegant, and powerful solution for
templates in PHP. <http://phpsavant.com>
More information about the solar-talk
mailing list