Has anyone implemented modules in Sphoof? Is this even possible with the current routing mechanics?
My idea would be something like:
/application
/config
/modules
/news
/blog
/web
Thanks,
Don Pinkster
On 02/28/2011 04:33 PM, Don Pinkster wrote:
> Has anyone implemented modules in Sphoof? Is this even possible with the current routing mechanics?
Yes, that is possible, in fact, I'm doing this in most of my current
projects. Because Sphoof\Controller's routing mechanism is so simple,
and because we have no requirements regarding the structure of your
files, you can decide which module to load simply by implementing map(
$segment ) and passing back the correct controller, regardless of
whether that's in the blog or the news module.
Cheers,
Berry.