Welcome Guest, Not a member yet? Register   Sign In
How use a function (Model) from another application
#1

[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?
#2

[eluser]imn.codeartist[/eluser]
why do u have to create two different folder at system/application
#3

[eluser]napster3000[/eluser]
because i read it in CI wiki pages. It's best solution to create frontend and backend
#4

[eluser]n0xie[/eluser]
copy it ?
#5

[eluser]napster3000[/eluser]
no, i want use only one file!
In PHP code how i access to a function wrote in other application?
#6

[eluser]n0xie[/eluser]
symlink?
#7

[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
#8

[eluser]napster3000[/eluser]
http://codeigniter.com/wiki/Multiple_Applications/
#9

[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.




Theme © iAndrew 2016 - Forum software by © MyBB