Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with Controller's Router #310

Closed
SKovbel opened this issue Jun 11, 2013 · 2 comments
Closed

Problems with Controller's Router #310

SKovbel opened this issue Jun 11, 2013 · 2 comments

Comments

@SKovbel
Copy link

SKovbel commented Jun 11, 2013

There are some problems with controllers

  1. Can't create Controller Instance (in 1.7.0.2 works fine)

class My_Module_Controller_Router extends Mage_Core_Controller_Varien_Router_Abstract {
...
public function match(Mage_Core_Controller_Request_Http $request)
{ ...
return $this->_controllerFactory->createController('My_Module_NameController', array('request' => $request);
}
...
}

error:
Class My_Module_NameController does not exist";i:1;s:1799:"#0 /lib/Magento/Code/Generator/Class.php(52): ReflectionClass->__construct('My_Module_NameController...')

  1. Cant route to own Controller (step 1 in another way, in 1.6.2.0 works fine)

public function match(Mage_Core_Controller_Request_Http $request)
{
$request->setModuleName('My_Module')
->setControllerName('name')
->setActionName('index');
}

error:
PAGE NOT FOUND

  1. Cant extend My_Module_AbstractController (it would be good to load)

class My_Module_NameController extends My_Module_AbstractController

error:
Fatal error: Class 'My_Module_AbstractController' not found in .........

@magento-team
Copy link
Contributor

Hello. Unfortunately we are not able to help here with customization issues. I suggest you ask this question on Magento forums or Magento stackexchange site http://magento.stackexchange.com/

@MattDunbar
Copy link
Member

It sounds like this is an error with the way the extension system works more so than his code from the bug report.

magento-team pushed a commit that referenced this issue May 22, 2015
MAGETWO-37705: Exception in setup wizard after Magento is installed
okorshenko pushed a commit that referenced this issue Jan 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants