I cant get multi - module application to work
so when i open the page '/' its ok -> i see what i have to see.
If change my url to /admin
I have diffrent view there and stuff isntead i got this error
Service 'view' wasn't found in the dependency injection container
$router->add(
"/admin",
array(
'namespace' => 'backend',
'module' => 'backend',
'controller' => 'Admin',
'action' => 'index'
)
);
$router->add('/', array(
'module' => 'frontend',
'controller' => 'index',
'action' => 'index'
));
$router->removeExtraSlashes(true);
in my backend index controller i got
<?php
namespace Modules\Backend\Controllers;
class AdminController extends ControllerBase
{
public function indexAction()
{
echo "<pre>";
print_r('AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA');
echo "</pre>";
exit;
}
}