Welcome Guest, Not a member yet? Register   Sign In
myth: links in views are displayed wrong
#3

(This post was last modified: 03-12-2020, 05:08 AM by InsiteFX.)

The route_to uses a named route.

See my route for dashboard below, ['as' => 'dashboard']

PHP Code:
$routes->get('dashboard''Admin::dashboard', ['as' => 'dashboard']); 

So my route_to would be in html like below.

PHP Code:
<?= route_to('dashboard'?>
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: myth: links in views are displayed wrong - by InsiteFX - 03-12-2020, 05:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB