We are developing an eCommerce store using CodeIgniter framework.
We need category management module, is it possible? And I have one query example below:
www.xyz.com/jewelry/ring
This is default URL, we can update this URL like
www.xyz.com/jewelry/ring-for-man
Is it possible using CodeIgniter framework or MVC in PHP?
2
Answers
You can use this route in your
/application/config/routes.php
fileSo, your final url will be
jewelry/ring
withproduct
controller class andjewelry
function with parameterring
called.Yes,
codeigniter provide url routing url routing for codeigniter 3.x and url routing for codeigniter 2.x
Both are almost same.
You need something like this