I can use the core helpers from CakePHP - but I can not get my own
helper to function.
To test my helper installation I do this :
<?php
/* /app/views/helpers/threadlist.php */
class ThreadlistHelper extends AppHelper {
function check()
{
return 1;
}
}
In my controller file I have this :
public $helpers = array('Threadlist');
function checkGetListHelper() {
echo $this->Threadlist->check();
}
In my view I do :
echo "Checking for checkGetListHelper(): ". $this-
>requestAction('threads/checkGetListHelper');
Which result in...
Notice (8): Undefined property: ThreadsController::$Threadlist [APP/
controllers/threads_controller.php, line 68]
Fatal error: Call to a member function check() on a non-object in /
www_root/my_server_removed/app/controllers/threads_controller.php on
line 68
Any idea of what I am doing wrong?
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php