![]() |
How use a function (Model) from another application - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: How use a function (Model) from another application (/showthread.php?tid=23140) |
How use a function (Model) from another application - El Forum - 10-01-2009 [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? How use a function (Model) from another application - El Forum - 10-01-2009 [eluser]imn.codeartist[/eluser] why do u have to create two different folder at system/application How use a function (Model) from another application - El Forum - 10-02-2009 [eluser]napster3000[/eluser] because i read it in CI wiki pages. It's best solution to create frontend and backend How use a function (Model) from another application - El Forum - 10-02-2009 [eluser]n0xie[/eluser] copy it ? How use a function (Model) from another application - El Forum - 10-02-2009 [eluser]napster3000[/eluser] no, i want use only one file! In PHP code how i access to a function wrote in other application? How use a function (Model) from another application - El Forum - 10-02-2009 [eluser]n0xie[/eluser] symlink? How use a function (Model) from another application - El Forum - 10-02-2009 [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 How use a function (Model) from another application - El Forum - 10-02-2009 [eluser]napster3000[/eluser] http://codeigniter.com/wiki/Multiple_Applications/ How use a function (Model) from another application - El Forum - 10-02-2009 [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. |