![]() |
Unable to load the requested class: Url - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Unable to load the requested class: Url (/showthread.php?tid=78466) |
Unable to load the requested class: Url - chanthy - 01-24-2021 any idea please help me! RE: Unable to load the requested class: Url - php_rocs - 01-25-2021 @chanthy, You need to give us more information. Version of CI? What errors are you seeing? RE: Unable to load the requested class: Url - chanthy - 01-26-2021 (01-25-2021, 10:01 AM)php_rocs Wrote: @chanthy,CI Version: 3.1.11 RE: Unable to load the requested class: Url - Chivinsdev - 01-26-2021 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 RE: Unable to load the requested class: Url - chanthy - 02-14-2021 (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').Thank you for your help. |