How to access CI model in a plain php file? |
(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 |
How to access CI model in a plain php file? - by happyape - 10-16-2018, 07:27 AM
RE: How to access CI model in a plain php file? - by InsiteFX - 10-16-2018, 08:30 AM
RE: How to access CI model in a plain php file? - by happyape - 10-16-2018, 09:40 AM
RE: How to access CI model in a plain php file? - by donpwinston - 10-16-2018, 09:26 AM
RE: How to access CI model in a plain php file? - by happyape - 10-16-2018, 09:45 AM
RE: How to access CI model in a plain php file? - by sv3tli0 - 10-16-2018, 09:36 PM
|