hi all,
i'm new to cake so, if you think that a better place exists for my too
simple questions... just let me know.
following the blog tutorial i did some tests to better understand how
cakephp works;
in the following code:
[code]
function view($id = null) {
$this-MyObj>id = $id;
$this->set('myobj', $this->MyObj->read());
}
[/code]
i commented out the passed $id parameter and the $this-MyObj>id = $id;
assignment but... it still seems to work as before.
i also print_r MyObj, before and after the assignment and... no
change.
so, what exactly the $this-MyObj>id = $id; assignment do?
and passing the $id parameter is facultative...?
thanks to all!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---