I am making a custom helper that needs access to session data and to the Html helper. Following the manual's instructions I am including
var $helpers in my new helper like this: class SecureHtmlHelper extends Helper { var $helpers = array('Html', 'Session'); function link($title, $url) { $actionAcoList = $session->read('ActionAcoList'); if (in_array($url, $actionAcoList)) { return $html->link($title, $url); } } } I also have Session and Html helpers included in the parent controller along with my new helper. When I call my new helper I get the following error: Fatal error: Call to a member function on a non-object in /home/web_servers/prototype/dev/app/views/helpers/secure_html.php on line 5 If I remove the Session related code then I get a similar error for the Html helper. Having followed the manual's instructions I am at a bit of a loss. There is a thread in the group on the same topic, but without a clear resolution: http://groups.google.com/group/cake-php/browse_thread/thread/72fc5c592d40fe7e/ Does anyone have a suggestion as to why this may be happening? Regards, Langdon --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---