Please correct me if I am wrong...
I think Cakephp breaks the mvc pattern
If I call a controller action, lets say /post/add
And I have to do a lot of logical stuff including sending an email, i
think the controller action would be this:
function add() {
if ($this->Post->myModelFunction){
$this->flash() .....
}
}
and in Post model....
function myModelFunction() {
// 20 lines of code....
}
But in real life I would have to use a component within the
controller... Wouldn't it better to have such functionalities from the
model??
I really don't like to write logic in controller (or at least more
than in the model)
What do you have to say? Do you think Cakephp does not break MVC
pattern?
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
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