I want to add components in an component.
I've found this on the cake
$this->OneTimer = $this->Components->load('OneTimer');
$this->OneTimer->getTime();
(in the fly-mehtod)
But, when I try it in my controller i get the following:
Fatal error: Call to a member function load() on a non-object
What am I doing wrong? Maybe the in the fly-method is only for controllers, and not for components?
Thanks!