Hi,
I have the following questions, How can I write the rules in urlManager for a particular URL
E.g. Consider my URLs are like
<domain>/<controller>/<action> - standard
<domain>/<controller>/<param1>/<param2>/.../<action> - action will be at the end of the URL
<domain>/<controller>/<sub-controller><action> - sub-controller basically a controller and I wanted to use that as a controller so call this way <domain>/<sub-controller>/<action>
<domain>/<controller>/<sub-controller>/<param1>/<param2>/.../<action> - action will be at the end of the URL and need to call the sub-controller as the controller (in the URL the controller is only for identifying the user to a particular link)
These rules were written in the old version of Yii and it works perfectly.
In old version
[i]‘rules’=>array(
‘<controller:\w+>/<subcontroller:\w+>’ => ‘<subcontroller>/site’,
‘<controller:\w+>/<param1:\w+>/<param2:\w+>/<param3:\w+>/<action:\w+>’=>’<controller>/<action>/<param1>/<param2>/<param3>’ ‘<controller:\w+>/<subcontroller:\w+>/<param1:\w+>/<param2:\w+>/<param3:\w+>/<action:\w+>’=>’<subcontroller>/<action>/<param1>/<param2>/<param3>’,
),[/i]
In Yii 2.0 I am facing URL issue
How can I resolve the issue, please help
Please note : I cannot change the url structure
Thanks in advance