Welcome Guest, Not a member yet? Register   Sign In
[Solved] Problem with ci4-adminlte
#6

WOW - Solved ...
I moved the breadcrumbs code from 'Routes' to the
controller and set a traditional address in 'Routes'.

So 'Routes' becomes:
$routes->get('crud/index', 'Users::index');

and the controller:
    public function index()
    {
        $data = [];
        $data['users']=$this->uModel->findAll();

        $data['title']="AdminLTE 3 | Dashboard 4";
        $data['breadcrumb_title']="User List";
        $breadcrumb=array(
            array(
                'title' => 'Home',
                'link' => 'dashboard'
            ),
            array(
                'title' => 'User list',
                'link' => null
            )
        );
        $data['breadcrumb']=$breadcrumb;

        return view('crud/index',$data);
    }

now I have the answer from the database and in the 'subheader' the breadcrumbs work
Reply


Messages In This Thread
[Solved] Problem with ci4-adminlte - by chiabgigi - 02-01-2021, 04:54 AM
RE: Problem with ci4-adminlte - by InsiteFX - 02-01-2021, 12:38 PM
RE: Problem with ci4-adminlte - by chiabgigi - 02-01-2021, 02:07 PM
RE: Problem with ci4-adminlte - by InsiteFX - 02-01-2021, 09:47 PM
RE: Problem with ci4-adminlte - by chiabgigi - 02-01-2021, 11:49 PM
RE: Problem with ci4-adminlte - by chiabgigi - 02-02-2021, 02:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB