CodeIgniter URLs routing
CodeIgniter By default designed to be search-engine and human friendly url. CodeIgniter uses a segment-based approach.
example.com/news/article/my_article
The first segment signifies the controller class that should be raised.
The second segment signifies the class function, or method, that would be called.
The third, and any extra segments, signifies the ID and any variables that will be accepted to the controller.
The URI Class and the URL Helper hold functions that type it easy to work with your URI data. In addition, your URLs can be remapped using the URI Steering feature for more litheness.
CodeIgniter By default designed to be search-engine and human friendly url. CodeIgniter uses a segment-based approach.
example.com/news/article/my_article
The first segment signifies the controller class that should be raised.
The second segment signifies the class function, or method, that would be called.
The third, and any extra segments, signifies the ID and any variables that will be accepted to the controller.
The URI Class and the URL Helper hold functions that type it easy to work with your URI data. In addition, your URLs can be remapped using the URI Steering feature for more litheness.
No comments:
Post a Comment