I have a module of News
fuel\modules\news\classes\controller\news.php
how to make the admin panel in the module
The module is written in accordance with the documentation
http://fuelphp.com/dev-docs/general/modules.html
example
https://github.com/visavi/rotorcms/tree/master/fuel/modules/news
Now the admin panel is in
https://github.com/visavi/rotorcms/blob/master/fuel/app/classes/controller/admin/news.php
Is there any way to make it available as an admin/news
but in order to avoid conflicts with other pages?
'admin/(:any)/(:any)' => '$1/admin/$2',
admin/news/news
I mean, the path was not admin/news/news/edit/1
but just admin/news/edit/1
can be arranged once the files that it happened, and why not make the identification of ways in the nucleus sanctioned Frameworks
you have written is not working
I have tried to do so
fuel/app/config/routes.php - 'admin/(:any)/(:any)' => '$1/admin/$2',
modules/news/config/routes.php - 'admin/news' => 'admin/news/news',
the documentation says that the modules can have your routing
http://fuelphp.com/docs/general/modules.html#module_routing
but still it does not work
I want to admin panel of the module "news" was available at admin/news
modules/news/classes/controller/admin/news.php
although the path to the admin panel can change the main thing that was available at admin/news
modules may have different names
So far I can not find a solutionI need to admin panel has been available in the controllers and modules in conventional controllers
if you add
'admin/(:segment)/(:any)' => '$1/admin/$2',
fuel/app/classes/controller/admin/users.php it works as /admin/users
fuel/modules/news/classes/controller/admin/news.php but does not work /admin/news
if done well
'admin/(:segment)' => '$1/admin/$1',
'admin/(:segment)/(:any)' => '$1/admin/$1/$2',
on the contrary news work and the users do not
I need to be available towards the controllers and modules, without modules
It looks like you're new here. If you want to get involved, click one of these buttons!