View Single Post
  #2 (permalink)  
Old 07-23-2008, 01:56 AM
dele454's Avatar
dele454 dele454 is offline
Member
 
Join Date: Jun 2008
Posts: 48
Default

Quote:
Originally Posted by boodito View Post
I need to know how to access a model from a layout registered with the application to display data retrieved from the database.. any example would be great
Any reason why you would want to access your models directly from your layout or view? Why not create an instance of your model in your controller action. Then send the result of your logic from your action controller to the layout?

Last edited by dele454 : 07-23-2008 at 12:29 PM.
Reply With Quote