CodeIgniter Forums
Modular Extensions and enable_query_strings = TRUE doesnt work - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Modular Extensions and enable_query_strings = TRUE doesnt work (/showthread.php?tid=10051)



Modular Extensions and enable_query_strings = TRUE doesnt work - El Forum - 07-17-2008

[eluser]ckissi[/eluser]
Hello,

I want to use modular extensions with enable_query_strings = TRUE.
Here is the example of link:

Code:
index.php?c=program&m=program_detail&id;=$1

when I try to run this link with modular extensions enabled I receive this error:

Code:
Unable to load your default controller. Please make sure the controller specified in your Routes.php file is valid.

Controller is placed in: \application\modules\program\controllers\program.php

So there are several questions ... How can I tell HMVC the module name if I'm using query string ??

URL is : index.php?c=program&m=program_detail&id;=$1
c = program (controller)
m = program_detail (method)
??? module ??? -> how to specify it in query string ??


Please do not suggest me to use Search engine friendly links because query string is a must for me as the site is already running for more than 5 years and we cannot change our linking structure.

Thank you in advance.


Modular Extensions and enable_query_strings = TRUE doesnt work - El Forum - 07-17-2008

[eluser]wiredesignz[/eluser]
You are not forced to use query_strings to specify controller and method, you can still use URL segments as normal and use query_stings for data only.
Code:
http://domain.tld/module/controller/method?code=1234&more=5678

EDIT:
I have just tested query_strings with Modular Extensions and it works as it should. I suggest you look deeper into your configuration.


Modular Extensions and enable_query_strings = TRUE doesnt work - El Forum - 07-17-2008

[eluser]sikkle[/eluser]
That work for me withouth any problem.

Just make query string work first and work with module after.

seem debugging have to be done.

good luck !