CodeIgniter Forums
Problem w Wiki: Calling CI models from outside script - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Problem w Wiki: Calling CI models from outside script (/thread-1859.html)



Problem w Wiki: Calling CI models from outside script - El Forum - 07-01-2007

[eluser]Unknown[/eluser]
I’m using the following instructions for using a CI model outside of CI:
http://codeigniter.com/wiki/Calling_CI_models_from_outside_script/

I tried it in a little test script and it works fine.
However when I use with an URI containing blablabla?id=123

I get the error:
The URI you submitted has disallowed characters.

I can prevent this by allowing = and ? ( set in config file ) but, then I get the error:
404 Page Not Found

It seems that the Wiki suggested approach still causes some parsing of the URI.
Can I avoid this?

I simply just would love to have access to all libraries, helpers, models and config values without having to be under the control of a controller.


Problem w Wiki: Calling CI models from outside script - El Forum - 07-04-2007

[eluser]Grahack[/eluser]
I hope you'll find help [url="http://ellislab.com/codeigniter/user-guide/general/urls.html"]in the user guide[/url]. In fact CI doesn't work with the GET queries.
I don't know well [url="http://codeigniter.com/wiki/Calling_CI_models_from_outside_script/"]Calling_CI_models_from_outside_script[/url], but I made [url="http://codeigniter.com/wiki/dip_into_CI/"]this other way to use CI from external apps[/url]. The one I made will remember the GET query while in CI and reconstruct it back when coming back to your external app.
Maybe you could give it a try, or try to tweak Calling_CI_models_from_outside_script for it to play well with the GET array.