News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

AskAboutPHP.com:
Codeigniter Mixing segment-based URL with querystrings
March 10, 2009 @ 11:10:54

The Ask About PHP blog has a tutorial offering CodeIgniter users an alternative to the "no normal GET variables allowed" restriction the framework puts on its URLs - a hack to add those GET values back in as a configuration item.

Codeigniter does allow you to turn on the querystring capability, but that would mean you have to use a pure querystring approach, foregoing the segment-based approached. So, is it possible to mix segments and querystring?

Because of how the segmenting URLs are handled, the order of the parameters is very important as they're passed directly into the controller that way. By bypassing this structure and grabbing the GET variables out of a constant in one of the configuration files in one of two ways - mixing them globally and mixing them locally.

0 comments voice your opinion now!
codeigniter framework query string get variable order


blog comments powered by Disqus

Similar Posts

DevShed: Building a Database-Driven Application with the Code Igniter PHP Framework

Brandon Savage: Frameworks DO matter.

NETTUTS.com: CodeIgniter From Scratch: Day 5 ‚Äď CRUD

Chris Hartjes' Blog: The Devilís In The Details (or, Handling Sequences in Postgres in CakePHP)

The Bakery: Five New Posts - Custom Views, CSS, ViewInFile, ActsAs and Email Validation


Community Events





Don't see your event here?
Let us know!


series interview laravel community framework unittest language symfony2 developer release testing refactor api list threedevsandamaybe introduction install code podcast opinion

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework