Part of the EllisLab Network
   
 
Problem w Wiki: Calling CI models from outside script
Posted: 01 July 2007 03:33 PM   [ Ignore ]  
Summer Student
Total Posts:  7
Joined  01-05-2007

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.

Profile
 
 
Posted: 04 July 2007 01:30 AM   [ Ignore ]   [ # 1 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  493
Joined  02-21-2007

I hope you’ll find help in the user guide. In fact CI doesn’t work with the GET queries.
I don’t know well Calling_CI_models_from_outside_script, but I made this other way to use CI from external apps. 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.

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 819, on March 11, 2010 11:15 AM
Total Registered Members: 120604 Total Logged-in Users: 46
Total Topics: 126642 Total Anonymous Users: 3
Total Replies: 665701 Total Guests: 474
Total Posts: 792343    
Members ( View Memberlist )
Newest Members:  bell143paololukDarleneChadbourneRashadSargIvar89lhumphris18aHonschowmtRetliff