How Can I use ACL component in my view?

I use $this->set('acl', $this->Acl); in my controller to send acl
object to my view , but I found some problem .
Thai is when My cakephp program doesn't have controller's action()
that I call from url or some times my cakephp program doesn't have
page of any action(), I found some warning:

Fatal error: Call to a member function check() on a non-object in /opt/
lampp/htdocs/icake/sabaayblog/views/themed/Matrix/layouts/default.ctp
on line 26

So in the line 26 I use $acl variable to check something.

Please explain me and tell me another solution if available.

Thank you for advance.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to