why cakephp doesn't support pure MVC
if we declare a variable inside a model then we are unable to fetch its value in controller
e.g.
Model M code:
class M extends AppModel
{
var $x;
function setX(){
$this->x = "hello";
}
function getX(){
return $this->x;
}
}
controller M code
class M_controller extends AppController{
$this->M->setM();
$c = $this->M->getX();
}
when i check the $c in view page its blank
can anybody explain what is happening over here
-- Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
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.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home