Welcome Guest, Not a member yet? Register   Sign In
MVC best practices, to display the models
#13

[eluser]Dready[/eluser]
Thanks for that clarification. If I get rid of the model attempt to output itself, then the best is to create a library that takes model and templates and returns model output, for example :

Code:
// somewhere in controller
$tpl = array();
$tpl['main_content'] = $this->crudclass->output_html_edit($ormobject,$view_files);
// error checking, etc...

// output
$this->parser->parse('body',$tpl);


Messages In This Thread
MVC best practices, to display the models - by El Forum - 09-20-2008, 05:06 AM
MVC best practices, to display the models - by El Forum - 09-20-2008, 06:50 AM
MVC best practices, to display the models - by El Forum - 09-20-2008, 10:47 AM
MVC best practices, to display the models - by El Forum - 09-20-2008, 10:56 AM
MVC best practices, to display the models - by El Forum - 09-20-2008, 11:24 PM
MVC best practices, to display the models - by El Forum - 09-20-2008, 11:57 PM
MVC best practices, to display the models - by El Forum - 09-21-2008, 12:22 AM
MVC best practices, to display the models - by El Forum - 09-21-2008, 02:56 AM
MVC best practices, to display the models - by El Forum - 09-21-2008, 03:21 AM
MVC best practices, to display the models - by El Forum - 09-21-2008, 03:25 AM
MVC best practices, to display the models - by El Forum - 09-21-2008, 11:40 AM
MVC best practices, to display the models - by El Forum - 09-21-2008, 12:06 PM
MVC best practices, to display the models - by El Forum - 09-21-2008, 12:23 PM



Theme © iAndrew 2016 - Forum software by © MyBB