ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

URL with ?

March 01, 2011 2:12pm

Subscribe [1]
  • #1 / Mar 01, 2011 2:12pm

    Kevin Gerich

    213 posts

    Hello,

    Ref this thread: http://ellislab.com/forums/viewthread/180565/

    I have a url:  directory/suggest_names?query=wy

    suggest_names is a blind template which just feeds data back to an auto complete list via ajax.  I did it this way so I could use the API
    I read the value with:

    $q = $IN->GBL('query', 'GET');

    Works like a charm in EE1.7!!

    In EE2.1.3, It will not read using:

    $q = $this->EE->input->get('query');

    The profiler shows:
    $_GET[‘directory/suggest_names’] with no value.

    I set enable_query_strings to true and tried setting uri_protocol to PATH_INFO with no luck.
    Changing uri_protocol only forced the system to kick everything to the home page.

    Any ideas?

    Many thanks.

    Regards,

    Jim

  • #2 / Mar 02, 2011 8:52am

    Kevin Gerich

    213 posts

    I solved this, tracking it down to a “?” in the .htaccess file and making the adjustments to config.php changing uri_protocol from AUTO to PATH_INFO.

    Thanks,

    Jim

  • #3 / Mar 02, 2011 3:30pm

    Ingmar

    29245 posts

    Very glad to hear it. Please don’t hesitate to post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases