Advanced Module URI

edited March 2014 in Modules
In the Blog Module config file (../blog/config/blog.php) I see a config item/setting for the uri:
$config['blog']['uri'] = 'blog'; $config['blog']['settings']['uri'] = array('value' => 'blog');
I see that it is used to generate links within the module.

How do you set the module to be accessed by that URI?
Does the URI setting need to be set in conjunction with a custom route?

Comments

  • edited 4:45AM
    Yes. You'll need to set a route as well:
    $route['myblog] = 'blog'; $route['myblog/(:any)'] = 'blog/$1';
Sign In or Register to comment.