ikkez / fabulog

the new F3-powered awesome fabulous blog-ware
GNU General Public License v3.0
62 stars 22 forks source link

db using #8

Closed hmartinh closed 9 years ago

hmartinh commented 9 years ago

why for comments u use $comment = new \Model\Comment(); if ($comment->addToPost($this->resource->_id)) { and after in model use cortex foreach.

but in resource script u use cortex foreach from controller. what is the right way of editing db? with set_ in model or with side function in model that used by controller? sorry for my english :)

ikkez commented 9 years ago

well i think it's best in controller, but the validation part should probably rest in the model. I wasn't consistently when i wrote that. I will see if i can improve that when refactoring some more things.

ikkez commented 9 years ago

this is now gone after refactoring the whole thing.