I am learning from codeigniter
I want to access the menu to edit it view/layout/menu.php
but when I want to access it from the url it doesn't let me because it doesn't have a controller.
An Error Was Encountered Unable to load your default controller. Please make sure the controller specified in your Routes.php file is valid.
Codeigniter handles the "MVC" so, for security, you could not access that element, without calling it in the controller. The views are not accessible from the url. You have to set it in your controller.
So when you go to www.local.com/index.php/controller_name/ you should see your menu.
for instance:
What I see from the start is that you want to load a view and not call a controller. The error message is caused by the CodeIgniters Router looking for a "view" controller. Inside that controller it is trying to call the "layout" function. This is because codeigniter's default routing scheme is interpreted as follows:
I recommend that you visit this documentation to better understand the routing system.
Now I don't really understand why you are trying to access the menu.php file through the address bar. If you're trying to edit a php file that contains html, you'll need to navigate its directory structure. The following is an example of where you might find the file you are looking for.
Apart from this, it would be helpful if you share some of the code you are working with and try to elaborate more on your question.