Im currently using codeigniter to build a messaging system and im trying to stay within the MVC guidelines, however I can't seem to find a way to easily update dynamic page content without having the HTML dynamically generated in the controller; which I believe is frowned upon when using an MVC framework.
Currently I am using ajax to refresh the content of a frame by using what is basically a "view" stored in the controller. This chunk of html is generated dynamically and then passed along to the ajax.
Im looking get around this because although it does work, it seems sloppy.