Welcome Guest, Not a member yet? Register   Sign In
Could I use the model in the view? Who can help me?
#1

[eluser]sexy22[/eluser]
Could I use the model in the view?

I want to use the mothods of model direct in the view,but I do not know do that is right?

for example,

this is a file named test.html


<td>
&lt;input type="text" name="year" size="5" value=&lt;?php

$this-&gt;load->model('hrsModel/projectCl');

$this->projectCl->getYear($project_started);

?&gt;
>
Like this writes may?

<td>


Messages In This Thread
Could I use the model in the view? Who can help me? - by El Forum - 11-22-2007, 07:12 PM
Could I use the model in the view? Who can help me? - by El Forum - 11-22-2007, 07:28 PM
Could I use the model in the view? Who can help me? - by El Forum - 11-22-2007, 07:56 PM
Could I use the model in the view? Who can help me? - by El Forum - 11-22-2007, 08:35 PM
Could I use the model in the view? Who can help me? - by El Forum - 11-23-2007, 01:22 AM
Could I use the model in the view? Who can help me? - by El Forum - 11-23-2007, 01:31 AM
Could I use the model in the view? Who can help me? - by El Forum - 11-23-2007, 02:24 AM
Could I use the model in the view? Who can help me? - by El Forum - 11-23-2007, 02:56 AM
Could I use the model in the view? Who can help me? - by El Forum - 11-23-2007, 03:22 AM
Could I use the model in the view? Who can help me? - by El Forum - 11-23-2007, 03:35 AM
Could I use the model in the view? Who can help me? - by El Forum - 12-03-2007, 09:56 PM
Could I use the model in the view? Who can help me? - by El Forum - 12-03-2007, 11:04 PM



Theme © iAndrew 2016 - Forum software by © MyBB