Get image url from model good practice? |
This should fix it cuz I return the view as data:
PHP Code: public function get_block_caracteristics(){ Yes you told me that to load views in controller but I need different view for each item from the object, and in this case I need to make a foreach to the object like this: PHP Code: $object = $this->model->get_from_db(); Then my controller will get a mess. This view have only few lines of html from the entire page I made that explode because $class returned Proprietati_model. The Proprietati model file was proprietati_model.php with class Proprietati_model. And also how can I pass a param on the constructor's class? |
Welcome Guest, Not a member yet? Register Sign In |