A
A
AlexWasHere2015-01-04 13:46:29
Yii
AlexWasHere, 2015-01-04 13:46:29

How to setup a route to change controller name yii 1.1.7?

There is a TestCont controller
How to set up a route so that the /TestCont/ address is processed at the /Tc/ link, and a 404 error is issued at the /TestCont/ address (tc instead of TestCont)
It is also important to keep links to the /TestCont/view/id/1 subsections working, new variant /tc/view/id/1

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
index0h, 2015-01-04
@index0h

Вы можете в TestContTontroller::actionIndex добавить условие проверки урла, если он равен /TestCont/ - выбрасывать 404

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question