Fixed method name
This commit is contained in:
@@ -83,7 +83,7 @@ class BaseAdminController extends ContainerAware
|
|||||||
catch (AuthenticationTokenNotFoundException $ex) {
|
catch (AuthenticationTokenNotFoundException $ex) {
|
||||||
|
|
||||||
// No auth token -> perform login
|
// No auth token -> perform login
|
||||||
return new RedirectResponse($this->generateUrl('/admin/login'));
|
return new RedirectResponse($this->generateUrl('admin/login'));
|
||||||
}
|
}
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
@@ -134,7 +134,7 @@ class BaseAdminController extends ContainerAware
|
|||||||
*/
|
*/
|
||||||
public function generateUrl($route, $parameters = array(), $referenceType = UrlGeneratorInterface::ABSOLUTE_PATH)
|
public function generateUrl($route, $parameters = array(), $referenceType = UrlGeneratorInterface::ABSOLUTE_PATH)
|
||||||
{
|
{
|
||||||
return "$route";
|
return "thelia2/$route";
|
||||||
|
|
||||||
//return $this->container->get('router')->generate($route, $parameters, $referenceType);
|
//return $this->container->get('router')->generate($route, $parameters, $referenceType);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ class Product extends BaseLoop
|
|||||||
/**
|
/**
|
||||||
* @return ArgumentCollection
|
* @return ArgumentCollection
|
||||||
*/
|
*/
|
||||||
protected function defineArgs()
|
protected function getArgDefinitions()
|
||||||
{
|
{
|
||||||
return new ArgumentCollection(
|
return new ArgumentCollection(
|
||||||
Argument::createIntListTypeArgument('id'),
|
Argument::createIntListTypeArgument('id'),
|
||||||
|
|||||||
Reference in New Issue
Block a user