I looked the whole day for a solution but I could't find one!
My Problem:
I have a Model (ModelOne), Behavoir( BehaveOne). and of course a
Controller (ControllerOne)
So, now I call a BahaveOne-Function form ModelOne and I set a
variable to (let's say) "dog"!
But when I now try to read the variable from the Controller the old
variable-value is set to the variable ( not "dog")
my function looks similar like this
function setNewValue(&$model,$value) {
$model->variable = $value
}
in the controller i do this:
function index(){
$this->ModelOne->setNewValue('dog');
....
echo $this->ModelOne->variable;
...
}
I hope I made my point clear
thanx for help
...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment