**Different class methods/functions can be called instead of one corresponding to the URL**Ĭreate a new controller in application/controller Parameter for the route is optional as it depends upon the parameters passed while making methods/functions. Method which is defined inside the controller is invoked and bound to respond to the requested URL. controller defined in the controllers' folder, which then binds the controller name to the URL for the response. In the browser URL, routing structure looks something like this: domain_/Controller/Method/Parameter/Ĭontroller points to the name of the controller (class) made during the development i.e. Routes are set after the base_url or the index_url with the controller and method crated for routing to a specific page. It simplifies the URL associated with the content. A route gives back the response to the URL requested by the user. ![]() The functionality of routes in Codeigniter is to simplify the URL and respond with the content associated with the route and make complex URL short. So how to create Codeigniter routes learn here below with examples. A user should get an idea about the page content via its URL. It should make more sense to the visitors. ![]() URLs in CodeIgniter are all made to be short and search engine friendly.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |