Welcome Guest, Not a member yet? Register   Sign In
Using QUERY_STRING on CI4
#1

How can I make CI 4 to use URLs like this:

http://mysite.com/index.php?page=home
[font=Tahoma, Verdana, Arial, sans-serif][font=Tahoma, Verdana, Arial, sans-serif]http://mysite.com/index.php?page=mail[/font][/font]
[font=Tahoma, Verdana, Arial, sans-serif][font=Tahoma, Verdana, Arial, sans-serif][font=Tahoma, Verdana, Arial, sans-serif]http://mysite.com/index.php?page=register[/font][/font][/font]
[font=Tahoma, Verdana, Arial, sans-serif][font=Tahoma, Verdana, Arial, sans-serif]http://mysite.com/admin/index.php?page=users[/font][/font]
[font=Tahoma, Verdana, Arial, sans-serif][font=Tahoma, Verdana, Arial, sans-serif][font=Tahoma, Verdana, Arial, sans-serif]http://mysite.com/admin/[/font]index.php?page=permissions[/font][/font]
[font=Tahoma, Verdana, Arial, sans-serif][font=Tahoma, Verdana, Arial, sans-serif][font=Tahoma, Verdana, Arial, sans-serif][font=Tahoma, Verdana, Arial, sans-serif][font=Tahoma, Verdana, Arial, sans-serif]http://mysite.com/admin/[/font][/font][/font][font=Tahoma, Verdana, Arial, sans-serif]index.php?page=[/font][font=Tahoma, Verdana, Arial, sans-serif]permissions&c=1&t=5[/font][/font][/font]

I've tried setting on app/Config/App.php the following:

PHP Code:
public $uriProtocol 'QUERY_STRING'

But I was not able to make this work. The url structure is not the same as CI 3

Before you could do something like this

http://mysite.com?c=controller&m=method&param1=x&param2=y

Is there any way to do this?
Reply


Messages In This Thread
Using QUERY_STRING on CI4 - by lucky - 11-14-2020, 04:44 AM
RE: Using QUERY_STRING on CI4 - by includebeer - 11-14-2020, 05:31 AM
RE: Using QUERY_STRING on CI4 - by lucky - 11-14-2020, 07:22 AM
RE: Using QUERY_STRING on CI4 - by includebeer - 11-14-2020, 10:07 AM
RE: Using QUERY_STRING on CI4 - by lucky - 11-14-2020, 10:20 AM
RE: Using QUERY_STRING on CI4 - by InsiteFX - 11-20-2020, 05:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB