2009年3月30日星期一

Re: [fw-mvc] Virtual Directorys

Do you have an example of this or where to implement it. I'm thinking
bootstrap but would this part of the try/catch routine?

Thanks
Lionel


Petre Balau wrote:
> Hi,
>
> You can use a regex route to redirect every requests for virtual
> directories to a specific module/controller/action.
>
> Regards,
> Peter
>
> ------------------------------------------------------------------------
> *From:* Lionel Morrison <lionel@morrison101.com>
> *To:* fw-mvc@lists.zend.com
> *Sent:* Monday, March 30, 2009 7:24:40 PM
> *Subject:* [fw-mvc] Virtual Directorys
>
> I have a website that has virtual directory support via a simple DB
> lookup. The solution is simple. It looks up the folder name if the
> physical folder does not exist. Much like what ZF does for it's
> controllers. I'm converting a site to ZF and I'm clueless on how to
> implement. If I try to access a folder that doesn't exist, ZF throws
> an error telling me the controller do not exist. Which is exactly what
> I expected.
>
> Example link: http://www.website.com/8796589
>
>
> Can anyone point me in the right direction.
>

没有评论: