Welcome Guest, Not a member yet? Register   Sign In
How to call model function in view file?
#1

[eluser]makkal[/eluser]
Hi all,

I am new to CI. I like to know the way to access the model function in view file.

While processing the FOR loop in view file, i should call database to fetch some more values for the particular value executing in the LOOP.

Code:
foreach($navlist as $parent => $menuid) {
  
   [with this $menuid, i need to call its relevant values from the database]  

}

Please advise me on this. Thanks a lot.

-Mak


Messages In This Thread
How to call model function in view file? - by El Forum - 07-27-2010, 02:53 PM
How to call model function in view file? - by El Forum - 07-27-2010, 02:58 PM
How to call model function in view file? - by El Forum - 07-28-2010, 01:23 AM
How to call model function in view file? - by El Forum - 07-28-2010, 03:13 AM
How to call model function in view file? - by El Forum - 07-28-2010, 05:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB