Quote:
Originally Posted by boodito
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?