What is the default URL pattern used in Codeigniter framework?

by bailey_conroy , in category: Technology , 3 years ago

What is the default URL pattern used in Codeigniter framework?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by trycia.jones , 3 years ago

In CodeIgniter, URLs are designed to be search-engine and human-friendly.CodeIgniter uses a segment-based approach rather than using “query string” based approach.

1
example.com/controller/your_method/1

The default URL pattern in CodeIgniter consists of 4 main components. They are :

  1. A server name (example.com)
  2. A Controller (controller)
  3. An Action or method (your_method)
  4. An optional action parameter (1)