Hi,
Can I attach the action from one module to controller in another module or controller in main project?
For example:
I have Module: [size=2]/protected/modules/example/ExampleModule.php[/size]
And there is ApiController in: /protected/modules/examples/controllers/ApiController.php
And I want to attach this controller or only actions from this controller to Controller in: /protected/controllers/ApiController.php
Why I want do this?
I want have URLs like:
example.com/api/action_only_for_api
example.com/example/controller/action - for users
I don’t want have API from module with URL like: example.com/example/api/something