http://manual.cakephp.org/chapter/request_handler
This is a component, and it shows an example of how to load it. The
API provides no contextual information for how functions and methods
are used. If you're a beginner with Cake, you should probably start at
the manual.
--~--~-~--~
It should work if you've got var $components = array( 'Places' ) in
your controller - I haven't used "loadComponent" directly before so I'm
not sure how it works.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Ca
i'm working with php5.
and nope, it still doesn't work..
function startup(&$controller) {
$this->controller = &$controller;
}
and in the component's function:
var_dump($this->controller);
either shows a bool TRUE if i set it up, or a null if i don't set it
up.
i
what you do works on php5, not php4
to make it work on both, you have to write the assignment like this:
function startup(&$controller)
{
$this->controller = &$controller;
}
--~--~-~--~~~---~--~~
You received this message because you are subscrib
i think i'm missing something in my component, .. i can't seem to
access the controller from the component.
here's the component's code:
class PlacesComponent extends Object {
var $controller = true;
function startup(&$controller) {
$this->controller = $controlle