php-mvc-project/php-mvc

Remove controller name when building url

meet-aleksey opened this issue · 0 comments

When building an address for an action method, if the action name is the default name, it is not specified in the final url.

However, the controller name is still used. This needs to be corrected.

For example:

echo Html::action('index', 'home');

// expected:   /
//   actual:   /home