CodeIgniter Forums
Myth/Auth route_to Problems - 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: Myth/Auth route_to Problems (/showthread.php?tid=75772)



Myth/Auth route_to Problems - InsiteFX - 03-15-2020

Place these route_to in the welcome_message.php view file.

PHP Code:
<p>
    <a href="<?= route_to('login');?>">Login</a>
    <a href="<?= route_to('register');?>">Register</a>
</
p

When you click on either link it just comes back with a reload of the same page.
It doe's not load the login or register views at all.

Seems like something has broken the route_to because I did have it working before.