Could anyone give me some general guidance on getting components to work in 1.1? or maybe even check my code below? I just can't seem to figure out what I am doing wrong here. Why is cake not recognising the call to:
$this->PhpGacl->checkAcl() Any help extremely gratefully received, dan :-) On 30/10/2007, Dan Ballance <[EMAIL PROTECTED]> wrote: > > Hi folks, > > I have been scouring google and this email list for any help with this, > but no joy after several hours. Think I'm going to have to cry for help. > Here goes: > > I have PhpGacl successfully installed in my application (ie i can go to > /phpgacl/ and access the admin control panel). From there I can add users > and groups and so forth. > > The problem I am having, is trying to access the PhpGacl functionality > from my code. I have a login controller here: > > http://localhost:800/cms/login/verify/ > > In the login controller, I am specifying: > > var $components = array('PhpGacl'); > > Then in the verify function I am trying to connect with the component > methods like this: > > function verify () > { > $this->$PhpGacl->checkAcl($aroSection, $aroValue, $acoSection, > $acoValue, $axoSection, $axoValue); > } > > But I get this error in my browser: > > * > > > > Notice: Undefined variable: PhpGacl in > > C:\xampp\htdocs\cms\app\controllers\login_controller.php > > on line 22 > > > > Fatal error: Cannot access empty property in > > C:\xampp\htdocs\cms\app\controllers\login_controller.php on line 22 > > * > ** > I have checked Nate's excellent cheat sheet and am failry sure my naming > conventions are correct, ie: > > component file = php_gacl.php (and held in /controllers/components) > > > > > Does anyone have any idea what I might be doing wrong here? I'm kinda > stuck, > > dan :-) > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
