Welcome Guest, Not a member yet? Register   Sign In
With use controller and models through a file external?
#1

[eluser]Spectruman[/eluser]
I have a file outside the application in this sense I wanted to reuse the controls, models and view the file that is outside.
#2

[eluser]Bart Mebane[/eluser]
I'm not sure I understand your question, but in your index.php file you can set the path to your application folder. It can be outside your public html folder.
#3

[eluser]Spectruman[/eluser]
[quote author="Bart Mebane" date="1291140880"]I'm not sure I understand your question, but in your index.php file you can set the path to your application folder. It can be outside your public html folder.[/quote]

I’m access need in access ci controller and models from by script external PHP. Calling CI sample $ci = &get;_instance (how does a library for example) and i get the object ci.
#4

[eluser]Bart Mebane[/eluser]
CI is initialized through www.example.com/index.php. If you bypass index.php and execute a different script like www.example.com/myscript.php then CI won't be running.
#5

[eluser]Spectruman[/eluser]
[quote author="Bart Mebane" date="1291153487"]CI is initialized through www.example.com/index.php. If you bypass index.php and execute a different script like www.example.com/myscript.php then CI won't be running.[/quote]

What I need is like this example.
http://codeigniter.com/wiki/Calling_CI_m...ide_script
I do not get it to work by example, but I need to do.
#6

[eluser]Bart Mebane[/eluser]
Now I understand what you're trying to do, but it involves a significant modification to CI itself and I don't have any experience with it. Some of the other forum members may be able to help you. When you ask questions, try to provide the exact error messages that you're seeing, and post enough of your code so that people will be able to follow what you're trying to do. Sorry I can't be of more help.




Theme © iAndrew 2016 - Forum software by © MyBB