You can allow unauthorized access to action if your action is requested
with requestAction method.
For example:
public function beforeFilter() {
parent::beforeFilter();
if ($this->request->is('requested') && $this->request->params['action']
== 'index') {
$this->Auth->allow(arra
You should also post the code where you allow this action.
Am Freitag, 21. Juni 2013 20:41:22 UTC+2 schrieb Eric Haskins:
>
> Yes it is an element
>
> On Friday, June 21, 2013 2:23:34 PM UTC-4, euromark wrote:
>>
>> where do you run this statement?
>> in the view ctp?
>>
>>
>> Am Freitag, 21. Jun
Yes it is an element
On Friday, June 21, 2013 2:23:34 PM UTC-4, euromark wrote:
>
> where do you run this statement?
> in the view ctp?
>
>
> Am Freitag, 21. Juni 2013 18:31:07 UTC+2 schrieb Eric Haskins:
>>
>> Hey All,
>>
>> I am running cakePhp latest and I just ran into an issue with
>>
where do you run this statement?
in the view ctp?
Am Freitag, 21. Juni 2013 18:31:07 UTC+2 schrieb Eric Haskins:
>
> Hey All,
>
> I am running cakePhp latest and I just ran into an issue with
> requestAction and my auth. It seems like even though I allow index action
> in my NewsControl
Hey All,
I am running cakePhp latest and I just ran into an issue with
requestAction and my auth. It seems like even though I allow index action
in my NewsController
$latest_news = $this -> requestAction(array('controller' => 'news','action'
=> 'index'),array('named'=>array('limit'=>1