Welcome Guest, Not a member yet? Register   Sign In
How to organize applications ?
#9

You need to create a Config/Routes.php in your Admin folder like above.

This is how I started my Routes this is still a work in progress.

Just an Example below.

PHP Code:
<?php

/**
 * Insitefx/Admin: routes file.
 */

$routes->group('', ['namespace' => 'Insitefx\Admin\Controllers'], function($routes)
{
    $routes->get('admin''Admin::index');
    $routes->get('admin/(:any)''Admin::view/$1');

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

}); 

In the route group above change to your namespace.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
How to organize applications ? - by jocm.aguiar - 12-15-2019, 06:25 AM
RE: How to organize applications ? - by InsiteFX - 12-15-2019, 09:19 AM
RE: How to organize applications ? - by InsiteFX - 12-17-2019, 12:21 PM
RE: How to organize applications ? - by InsiteFX - 12-22-2019, 12:59 PM
RE: How to organize applications ? - by ZoeF - 04-14-2020, 12:10 PM
RE: How to organize applications ? - by InsiteFX - 04-14-2020, 12:44 PM
RE: How to organize applications ? - by InsiteFX - 04-25-2020, 07:57 AM
RE: How to organize applications ? - by jreklund - 05-21-2020, 07:45 AM
RE: How to organize applications ? - by InsiteFX - 05-21-2020, 08:40 AM
RE: How to organize applications ? - by jreklund - 05-22-2020, 09:56 AM
RE: How to organize applications ? - by InsiteFX - 11-28-2020, 12:47 AM
RE: How to organize applications ? - by isoftzone - 02-13-2021, 04:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB