Part of the EllisLab Network
   
2 of 2
2
IMPLEMENTED: get() method from input class, better routing without mod_rewrite, bug fix for CI_Input methods
Posted: 02 February 2007 02:11 PM   [ Ignore ]   [ # 16 ]  
Lab Assistant
RankRank
Total Posts:  201
Joined  08-28-2006

I agree there should be a way to handle GET requests in CI .

For example I am building some kind of affiliate program at the moment. Customers paste some code in an iframe on their webseite and this code passes parameters to CI. It is very handy to pass those parameters as “GET parameters”. It seems like the most simple and clear solution cause the customer himself can tweak the code (which in my case is a good thing).

I don’t want to use GET all the time. Just where it really makes sense.

Profile
 
 
Posted: 02 February 2007 02:16 PM   [ Ignore ]   [ # 17 ]  
Administrator
Avatar
RankRankRankRankRankRank
Total Posts:  6762
Joined  03-23-2006

I’m not arguing about get, and I don’t want to debate it on this thread, but could you just use an affiliate link like this

http://www.shockis-site.com/affiliate/123

 Signature 

DerekAllard.com - CodeIgniter, ExpressionEngine, and the World of Web Design
BambooInvoice - Open Source, CodeIgniter powered invoicing.

Profile
MSG
 
 
Posted: 02 February 2007 02:25 PM   [ Ignore ]   [ # 18 ]  
Lab Assistant
RankRank
Total Posts:  201
Joined  08-28-2006

Derek,

I am afraid you could be right wink

Profile
 
 
Posted: 02 February 2007 02:50 PM   [ Ignore ]   [ # 19 ]  
Administrator
Avatar
RankRankRankRankRankRank
Total Posts:  6762
Joined  03-23-2006
shocki - 02 February 2007 02:25 PM

Derek,

I am afraid you could be right wink

Woohoo!

First time for everything!

A round for the house!!!!

 Signature 

DerekAllard.com - CodeIgniter, ExpressionEngine, and the World of Web Design
BambooInvoice - Open Source, CodeIgniter powered invoicing.

Profile
MSG
 
 
Posted: 02 February 2007 04:49 PM   [ Ignore ]   [ # 20 ]  
Research Assistant
RankRankRank
Total Posts:  970
Joined  04-13-2006

Derek “could be right”, says fellow Igniter.

In a sensational development earlier today, Code Igniter Shocki claimed that Derek Allard could be right. The claim was a total surprise to other Igniters, some of whom were quick to express their disbelief. Allard himself was unavailable for comment, but a spokesperson said “This doesn’t sound like Derek. We are prepared to refute Shocki’s claim subject to legal advice”. Several Igniters are thought to be seeking solace in their favourite refreshments while recovering from the news.

Profile
 
 
Posted: 02 February 2007 04:56 PM   [ Ignore ]   [ # 21 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  886
Joined  03-06-2006
Martin Hall - 02 February 2007 04:49 PM

Derek “could be right”, says fellow Igniter.

+1, Funny

wink

 Signature 

Corozal, Belize | Linux.bz | Using Kubuntu Linux 7.10 | CodeIgniter 1.5.3

Profile
 
 
Posted: 05 February 2007 02:56 AM   [ Ignore ]   [ # 22 ]  
Lab Assistant
RankRank
Total Posts:  109
Joined  05-25-2006
Derek Allard - 02 February 2007 02:16 PM

I’m not arguing about get, and I don’t want to debate it on this thread, but could you just use an affiliate link like this

http://www.shockis-site.com/affiliate/123

I am using GET paramaters for integration too.
Sometimes you can not define the URL. Some systems need to know callback URL. The foreign system adds GET parameters to callback URL. It would be very stupid to insist that my web can not accept GET parameters in callback URL.
GET is standard. CI should accept standards.
Think about it please.

 Signature 

CI 1.5 on WAMP (W2k Pro, Apache 2, MySQL 4.1, PHP 4.4)

Profile
 
 
Posted: 09 February 2007 05:07 PM   [ Ignore ]   [ # 23 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  187
Joined  06-25-2006

An Input::get() feature is something that’s been requested… many times.  If this isn’t the thread to debate its merits, it can only be because there is no debate, and it’s obviously a glaring omission.  You can use uri_to_assoc() instead, but frankly, I think it’s reinventing the wheel, and I don’t know that it can handle input arrays.

 Signature 

Join us in #codeigniter on irc.freenode.net

Profile
 
 
Posted: 09 February 2007 05:17 PM   [ Ignore ]   [ # 24 ]  
Administrator
Avatar
RankRankRankRankRankRank
Total Posts:  6762
Joined  03-23-2006

If this isn’t the thread to debate its merits…

Champs, c’mon, don’t turn my words against me.

I said I didn’t want to debate it on this thread.  If you want to debate it, then this thread is absolutely the place.  You should feel free to continue expressing this as much you want to.  I for one am staying out of it (as I always have on the issue of get) - I was only trying to offer support to a member of the CI community. 

I know you didn’t suggest otherwise, but I want to be clear - my writing was a specific solution in response to a specific problem - not a general statement on the relative merits of CI supporting a get library.

 Signature 

DerekAllard.com - CodeIgniter, ExpressionEngine, and the World of Web Design
BambooInvoice - Open Source, CodeIgniter powered invoicing.

Profile
MSG
 
 
Posted: 09 February 2007 05:20 PM   [ Ignore ]   [ # 25 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  187
Joined  06-25-2006

Ah, emphasis on the I, not the don’t.

 Signature 

Join us in #codeigniter on irc.freenode.net

Profile
 
 
Posted: 16 February 2007 04:15 AM   [ Ignore ]   [ # 26 ]  
Lab Assistant
RankRank
Total Posts:  109
Joined  05-25-2006

@champs: Is your code compatible with new CI 1.5.2 ? Can i upgrade to new CI and use your classes?

 Signature 

CI 1.5 on WAMP (W2k Pro, Apache 2, MySQL 4.1, PHP 4.4)

Profile
 
 
Posted: 16 February 2007 10:14 AM   [ Ignore ]   [ # 27 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  187
Joined  06-25-2006

The extensions to those classes don’t touch anything that’s been noted in the changelog, but I haven’t tested them yet.

 Signature 

Join us in #codeigniter on irc.freenode.net

Profile
 
 
Posted: 23 July 2008 03:49 AM   [ Ignore ]   [ # 28 ]  
Summer Student
Total Posts:  9
Joined  06-18-2007

Having used Champs’s classes successfully last year on a CI 1.5.4 project I am just trying to get them working with CI 1.6.3 and thought I’d share my findings. Basically It would only work for me if I set

$config['uri_protocol'] = "PATH_INFO";

in config.php.

So anyway, it seems to work just fine now, but if anybody knows of any negative effects I might have just introduced by this change please shout!

Profile
 
 
Posted: 25 July 2008 02:08 PM   [ Ignore ]   [ # 29 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  168
Joined  08-22-2006

As Oliver mentioned, setting the uri_protocol to “PATH_INFO” will do, but you can also have it working without any hacks or extension by enabling query strings in config.php.

$config['enable_query_strings'] = TRUE;
$config['uri_protocol']         = "PATH_INFO";

Seriously, this tip should be stickied somewhere, it’s the fifth time I’ve post it.

 Signature 

Don’t argue with an idiot, people watching may not be able to tell the difference.


marcoss
http://defmay.com
http://fenix.st

Profile
 
 
Posted: 26 November 2008 08:46 AM   [ Ignore ]   [ # 30 ]  
Summer Student
Total Posts:  1
Joined  03-10-2008
marcoss - 25 July 2008 02:08 PM

As Oliver mentioned, setting the uri_protocol to “PATH_INFO” will do, but you can also have it working without any hacks or extension by enabling query strings in config.php.

$config['enable_query_strings'] = TRUE;
$config['uri_protocol']         = "PATH_INFO";

Seriously, this tip should be stickied somewhere, it’s the fifth time I’ve post it.

marcoss - Thank you so much for this simple fix, I’ve been itching to get query strings working with segmented URLs for over a year now.  Personally I vote for this to be the default configuration, but I agree, it should at least be made very clear how to accomplish this behavior in the documentation.  Thanks!!

Profile
 
 
   
2 of 2
2
 
‹‹ Customizing Helpers      paypal paymant ››
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 719, on June 06, 2008 10:16 AM
Total Registered Members: 66412 Total Logged-in Users: 27
Total Topics: 84752 Total Anonymous Users: 0
Total Replies: 454812 Total Guests: 220
Total Posts: 539564    
Members ( View Memberlist )
Newest Members:  NirCalexmuellerkizerdrixcaptainredmuffquinodligtharttechsivamDjordjesammozzazodman23