Welcome Guest, Not a member yet? Register   Sign In
How to access CI model in a plain php file?

(This post was last modified: 10-16-2018, 09:37 PM by sv3tli0.)

(10-16-2018, 09:45 AM)happyape Wrote: No - It's not a class but just contains very little code. The problem with moving to inside Application folder is I won't be able to access it directly e.g mydomain/star/ratings.php. I can easily duplicate the methods inside my model but that's what I am trying to avoid if possible.

You should not access any class / code directly !! For that you have routes to controllers !

Make your Library where it should be then just add 1 controller / action which will be called it on specific url ...

In other case why the hell you use CI if you don't care of it's structure ?
Best VPS Hosting : Digital Ocean

Messages In This Thread
RE: How to access CI model in a plain php file? - by sv3tli0 - 10-16-2018, 09:36 PM

Theme © iAndrew 2016 - Forum software by © MyBB