Welcome Guest, Not a member yet? Register   Sign In
auto load header menu data to each page
#3

thanks, your mean is:

In BaseController.php:

PHP Code:
$model = new ArticleModel();
$this->data['header'] = $model->yourFunction(); 


and in Home.php or another controller:

PHP Code:
return view('foo'$this->data); 
Reply


Messages In This Thread
RE: auto load header menu data to each page - by cilux - 07-20-2020, 06:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB