[fw-general] Ajax and direct access to controller deny

2008-10-10 Thread maxarbos
Hello, we have a site that is heavily using ajax calls. The layout is to remain constant but just the info that is being called should be the only content refreshing or changing on the page. In each controller we have: public function preDispatch() {

Re: [fw-general] Ajax and direct access to controller deny

2008-10-10 Thread keith Pope
Sounds like maybe ACL could do that for you?? 2008/10/10 maxarbos [EMAIL PROTECTED]: Hello, we have a site that is heavily using ajax calls. The layout is to remain constant but just the info that is being called should be the only content refreshing or changing on the page. In each

Re: [fw-general] Ajax and direct access to controller deny

2008-10-10 Thread maxarbos
Well this seems pretty simple enough. Dont understadn why i couldnt find it earlier. (yes i looked :) You can check if the request is an ajax call or not by: if($this-_request-isXmlHttpRequest()) { $this-getHelper('layout')-disableLayout(); } and then determine what to do.

Re: [fw-general] Ajax and direct access to controller deny

2008-10-10 Thread maxarbos
I am not sure how that would work. We are using the ACL to control who can go where, but in order for userA to be able to access www.mysite.com/module1/controller1/action2 through an ajax request, the acl would have to allow access to it anyway. What I need is some check or method that, maybe