Modules in Sphoof

5 views
Skip to first unread message

Don Pinkster

unread,
Feb 28, 2011, 10:33:13 AM2/28/11
to sph...@googlegroups.com
Hi all,

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

Berry Langerak

unread,
Mar 1, 2011, 3:58:42 AM3/1/11
to sph...@googlegroups.com
Hi Don.

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.

Reply all
Reply to author
Forward
0 new messages