How to update the url correctly - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Addins (https://forum.codeigniter.com/forumdisplay.php?fid=34) +--- Thread: How to update the url correctly (/showthread.php?tid=78402) |
How to update the url correctly - heli-sangueve - 01-14-2021 Hi there, i've been using CodeIgniter for at least 5 months. When i use the view function, it loads a new file correctly. But the url text does not change, unless i do it through a link that loads a new path. For example, if i have a Login controller with a method login the url would look like: http://my_project_path/Login/login If i click in the submit button with the above url, and in the controller i use the view function to load the view("index"), it still reamains the same text in the url. It is pretty annoying for me, could any one help me please? RE: How to update the url correctly - demyr - 01-14-2021 Have you ever checked Routing ? You can even find some basic tutorials online. Or you should copy and paste some of your codes here, including: Route and Controller. |