Fixed method name

This commit is contained in:
franck
2013-07-08 13:39:37 +02:00
parent a3f7f53d22
commit a91d0e4c78
2 changed files with 3 additions and 3 deletions

View File

@@ -83,7 +83,7 @@ class BaseAdminController extends ContainerAware
catch (AuthenticationTokenNotFoundException $ex) {
// No auth token -> perform login
return new RedirectResponse($this->generateUrl('/admin/login'));
return new RedirectResponse($this->generateUrl('admin/login'));
}
return $data;
@@ -134,7 +134,7 @@ class BaseAdminController extends ContainerAware
*/
public function generateUrl($route, $parameters = array(), $referenceType = UrlGeneratorInterface::ABSOLUTE_PATH)
{
return "$route";
return "thelia2/$route";
//return $this->container->get('router')->generate($route, $parameters, $referenceType);
}

View File

@@ -55,7 +55,7 @@ class Product extends BaseLoop
/**
* @return ArgumentCollection
*/
protected function defineArgs()
protected function getArgDefinitions()
{
return new ArgumentCollection(
Argument::createIntListTypeArgument('id'),