Answer the question
In order to leave comments, you need to log in
Why doesn't Magento 1.9 routing work?
I am writing a module for version 1.9;
Magenta sees my module (in the admin panel);
But at the url " query.com/someapi/product/last " I see 404 WHOOPS, OUR BAD... The
log is empty, the cache was cleared, chmod 777 -R enabled;
app/code/local/Some/Api/etc/config.xml
<?xml version="1.0"?>
<config>
<modules>
<Some_Api>
<version>1.0</version>
</Some_Api>
</modules>
<frontend>
<routers>
<Some_Api>
<use>standart</use>
<args>
<module>Some_Api</module>
<frontName>someapi</frontName>
</args>
</Some_Api>
</routers>
</frontend>
</config>
<?php
class Some_Api_ProductController extends Mage_Core_Controller_Front_Action
{
public function lastAction()
{
die('PRODUCTS!');
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question