How use a function (Model) from another application |
[eluser]napster3000[/eluser]
i've two application (frontend and backend) /system/application/frontend /system/application/backend Now, in the backend application i have to use a function write in application/frontend/models/functions.php how?
[eluser]imn.codeartist[/eluser]
why do u have to create two different folder at system/application
[eluser]napster3000[/eluser]
because i read it in CI wiki pages. It's best solution to create frontend and backend
[eluser]napster3000[/eluser]
no, i want use only one file! In PHP code how i access to a function wrote in other application?
[eluser]imn.codeartist[/eluser]
[quote author="napster3000" date="1254502829"]because i read it in CI wiki pages. It's best solution to create frontend and backend[/quote] can you paste the link of the wiki here
[eluser]napster3000[/eluser]
http://codeigniter.com/wiki/Multiple_Applications/
[eluser]Colin Williams[/eluser]
Frontend + Backend applications seem dumb and counter-productive to me, and the main argument against it is the very problem you have run into. I would just do a symlink (maybe close your eyes and turn your head as you do it..) or include() the "core" model file from whatever application needs it. |
Welcome Guest, Not a member yet? Register Sign In |