I'm new to laravel4, and there is a problem for the installation of nested controllers. I have an "admin" sub in my controller directory -Directory is where the administrator is the controller. My admin administrators extend "AdminController" to my controller directory. I have admin admin controllers like this
Content = View :: Create ('admin.dashboard'); }} And in my routes. Php file
/ ** Admin path ** / Root :: Groups (array ('domain' = & gt; 'Admin.vigap.local'), function () {// dashboard Root :: Mill ('/', 'Admin \ HomeController @ Index');}); But when I navigate, I get an error by saying "class admin" not found ". What am I doing wrong?
How your administrator works, nothing wrong with the Home Controller you use Admin namespace , Then you call the View class in the index function, but that category is not part of the Admin namespace and therefore you should An error will be found that class admin \ view was not found. Try one of the following two things:
see usage or
$ this-> layout-> content = \ view :: create ('admin.dashboard'); (Note backslash in front of view )
No comments:
Post a Comment