Smarty + CodeIgniter - proper way to use a model
问题 First off: I do realize that using models in a view is against the MVC hierarchy - but that's the smoothest solution I've found so far. I've integrated Smarty into my CodeIgniter CMS application. One of its features is the usage of templates along with minifying static content such as CSS and JavaScript. Hence, I'm trying to do something like this in the template file: //Adding the static content <?php $this->content->css( array('my.css', 'style.css') ); ?> <html> <head> //Displaying the now