laravel - Unable to load the requested file: home.php -


in codeigniter message :

unable load requested file: home.php 

controller :

cp/     login  

enter image description here


views :

cp/     home.blade.php 

address :

http://www.vitrinsaz1.ir/mobile/vitrinsaz/pannel/cp/login

routes :

$route['default_controller'] = 'index'; $route['pages/(:any)']       = "page/get/$1";  $controllers = array('bank','basecontroller','contact','cron','faq','inbox','index','livescore', 'msg','news','odds','page','profile','poll','rss','setting','traction','user' ,'shop' , 'product' , 'ad'  ,     'comment','home','login');  foreach($controllers $controller) {     $route[$controller] = $controller."/index";     $route[$controller."/(:any)"] = $controller."/$1"; } 

as folder structure, home.php inside view/cp/.

so in code should be

$this->load->view('home',''); 

change this

$this->load->view('cp/home',''); # or cp/home.blade 

Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -