R
R
Roman2015-08-31 13:21:21
Yii
Roman, 2015-08-31 13:21:21

Change site routing in yii2?

The question is how to do routing is an old site with static pages. For example, there is an old address argoncredit.com/whyargon (we installed yii2 and we need to make this address open via the same link, but roughly speaking on yii2).
How can I make it so that, for example, a request to /whyargon opens the Controller "site" Page name

public function actionWhyargon   ()
    {

    }

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lomoson, 2015-08-31
@Lomoson

'/<controller:\w+>/<action:[a-z0-9-]+>' => '<controller>/<action>'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question