News Feed
Jobs Feed
Sections




Recent Jobs

News Archive
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



Similar Posts

H3rald.com: Rails-inspired PHP frameworks

Felix Geisendorfer's Blog: Validating the cleaned output of HtmlHelper::dateTimeOptionTag()

Chris Hartjes' Blog: Namespaces in PHP? Why *wouldn't* you want them?

CodeIgniter Blog: CodeIgniter Community Voice - Elliot Haughin

Alexander Netkachev's Blog: Create Ajax Login page with Dojo toolkit and Zend Framework


Community Events









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


windows opinion symfony apache job framework zendframework podcast performance microsoft sqlserver codeigniter feature release conference wordpress developer extension drupal facebook

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