Welcome Guest, Not a member yet? Register   Sign In
url problem
#1

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
Reply
#2

@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 )
Reply
#3

(This post was last modified: 01-28-2020, 10:03 AM by kulfik.)

i found : https://codeigniter.com/user_guide/gener...ry-strings
but it is ci3 is there a way to do this in ci4?
Reply
#4

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 )
Reply
#5

it is not a problem get query string. problem is force ci4 to use it for route.
Reply
#6

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 )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB