0

I create a controller function home/index . calling vai url it is showing me html design.

I want to call the view of home/index via custom urls.

If I type

www.example.com/home_new  // it will open view of home/index

www.example.com/home_new1  // it will open view of home/index

Also i want to save the custum urls in database so that admin can change.

Please advise how to do this via routes or another method.

Vipul sharma
  • 1,245
  • 1
  • 13
  • 33

1 Answers1

0

Add this code to inside route.php file:

$route['home_new'] = 'home/index';
$route['home_new1'] = 'home/index';

This will solve your problem. For database it will not help you. You can take reference from this link.

Community
  • 1
  • 1
Yash
  • 1,446
  • 1
  • 13
  • 26