Welcome Guest, Not a member yet? Register   Sign In
Model Access
#1

(This post was last modified: 06-14-2017, 01:22 AM by nilam.dhok. Edit Reason: Found Some Alternative Solution )

Hello Everyone,

I'm auto loading some model classes and unable to access it from admin controller.

Admin controllers are not directly inside application/controllers structure. It's structure is like application/controllers/admin/<controller_name>

Where as models are on default path application/models/<model_name>

Please refer attached screenshot and suggest me a solution how can i access model inside this kind of controller folder structure?

-----------------------------------------------------------------------------------------------------------------------------------------------------------------

EDIT : Right now Instead of loading model, I created object of the model & I was able to access model class methods in admin controller.
But my question remains same, If I want to use loaded models then how can I access it without creating any object?

Attached Files Thumbnail(s)
   
Reply


Messages In This Thread
Model Access - by nilam.dhok - 06-13-2017, 11:52 PM
RE: Model Access - by InsiteFX - 06-14-2017, 02:54 AM
RE: Model Access - by nilam.dhok - 06-14-2017, 03:07 AM
RE: Model Access - by nilam.dhok - 06-14-2017, 06:53 AM
RE: Model Access - by Martin7483 - 06-15-2017, 03:27 AM
RE: Model Access - by nilam.dhok - 06-19-2017, 04:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB