url problem |
hi,
i am trying to use codeigniter to write directadmin module. direct admin url looks : http://domain:2222/CMD_PLUGINS/myplugin/...1=1&var2=2 index.html working as php ofcourse. but i have problem(do not know) how to tell CI to use routing like http://domain:2222/CMD_PLUGINS/myplugin/index.html?controller=home&method=index&var=test
@kulfik,
I never like to assume. What version of CI are you using? Have you read the documentation that explains how routing works in CI? (CI3: https://codeigniter.com/user_guide/gener...ri-routing ) (CI4: https://codeigniter4.github.io/userguide...ri-routing )
i found : https://codeigniter.com/user_guide/gener...ry-strings
but it is ci3 is there a way to do this in ci4?
Not sure if this will help but look at it.
The Request URL PHP Code: echo $uri->getQuery(); // foo=bar&bar=baz What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
it is not a problem get query string. problem is force ci4 to use it for route.
The only other thing that I found in the documentation was this.
URI Strings You may need to ask Lonnie about this because I searched the documentation and found nothing on the old way of doing it. It may be doing it automatically in one of the classes. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |