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

[eluser]Sumon[/eluser]
thanks Colin,
lets say s_model have 3 methods member_list(), blog_list(), total_post()
Code:
$this->load->view('some_view', array('s_model' => $this->s_model));
does the above line mean: from my view file (some_view.php) i am able to access member_list() method by
Code:
$s_model->member_list();
i think i am wrong. please let me know correct one and if you have a complete short example(MVC) that will be so nice for me Smile
Thanks in advance.


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