Welcome Guest, Not a member yet? Register   Sign In
Unable to load the requested class: Url
#1

any idea please help me!
Reply
#2

@chanthy,

You need to give us more information. Version of CI? What errors are you seeing?
Reply
#3

(01-25-2021, 10:01 AM)php_rocs Wrote: @chanthy,

You need to give us more information.  Version of CI? What errors are you seeing?
CI Version: 3.1.11
Reply
#4

I am not sure if codeigniter have a class called url. If you want to use the url helper in codeigniter 4 use helper('url') and in codeigniter 3 use in your controller $this->load->helper('url') and in your liberay use $this->ci->load->helper('url').

If you want to work with the codeigniter 4 url class as you said, just use


PHP Code:
$uri = \Config\Services::request()->uri

I think this will help you work with the usrl class or functions
Reply
#5

(01-26-2021, 03:01 AM)Chivinsdev Wrote: I am not sure if codeigniter have a class called url. If you want to use the url helper in codeigniter 4 use helper('url') and in codeigniter 3 use in your controller $this->load->helper('url') and in your liberay use $this->ci->load->helper('url').

If you want to work with the codeigniter 4 url class as you said, just use


PHP Code:
$uri = \Config\Services::request()->uri

I think this will help you work with the usrl class or functions
Thank you for your help.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB