2010年1月25日星期一

[fw-mvc] Re: Specifying controller and action names via url param to bootstrap

Back on topic of my original post that wasn't posted even though my
screenshot shows it as having been posted and viewed or something like
that...

The problem I am trying to overcome is implementing a custom 404 page in IIS
7 that resides under in Zend Framework. IIS want's a url to the page, but
the url is not processed with ISAPI_Rewrite, so it's (as far as I can tell)
impossible to have a custom 404 page set up in zend framework. One way to
get around this would be to specify the controller/action in the url query
params, I was thinking...

Thanks,
Adam


Mon Zafra wrote:
>
> I can confirm that your first mail didn't go through.
>
> As for your question, the answer is probably "No" because
> 1. The bootstrap is not accessible to the public in a conventional ZF app.
> 2. Even if it were /index.php?controller=foo&action=bar, it still wouldn't
> work since query parameters would overridden by the path info parameters
> as
> parsed by the router. In this case, the path info is null so it would
> dispatch IndexController::indexAction
>
> Is there something wrong with /index.php/motor/piston?
>
> -- Mon
>
>
--
View this message in context: http://n4.nabble.com/Specifying-controller-and-action-names-via-url-param-to-bootstrap-tp1014179p1289902.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: