Note that there are some explanatory texts on larger screens.

plurals
  1. POMagento module controller not working
    primarykey
    data
    text
    <p>Tyring to create a module where i can create a product dynamically using catalog->products model, and redirect control to the product's review page. Need only single controller with single action. No blocks, helpers, templates.... nothing required.</p> <p>But it seems like controller action is not properly routed, there is some mistake in code or configuration ... getting 404 not found error</p> <p><strong>Trying this url:</strong> </p> <pre><code>http://localhost/magento_test/dynamicproduct/index/index </code></pre> <p>Namespace: Waqasalieee</p> <p>Module name: Dynamicproduct</p> <p><strong>Magento version:</strong> 1.7.0.2</p> <p><strong>Here are the file contents:</strong></p> <p>local/Waqasalieee/Dynamicproduct/controllers/IndexController.php</p> <pre><code>&lt;?php class Waqasalieee_Dynamicproduct_IndexController extends Mage_Core_Controller_Front_Action { public function indexAction() { die('working in index'); } } ?&gt; </code></pre> <p>local/Waqasalieee/Dynamicproduct/etc/config.xml</p> <pre><code>&lt;?xml version="1.0"?&gt; &lt;config&gt; &lt;modules&gt; &lt;Waqasalieee_Dynamicproduct&gt; &lt;version&gt;1.0&lt;/version&gt; &lt;/Waqasalieee_Dynamicproduct&gt; &lt;/modules&gt; &lt;frontend&gt; &lt;routers&gt; &lt;dynamicproduct&gt; &lt;use&gt;standard&lt;/use&gt; &lt;args&gt; &lt;module&gt;Waqasalieee_Dynamicproduct&lt;/module&gt; &lt;frontName&gt;dynamicproduct&lt;/frontName&gt; &lt;/args&gt; &lt;/dynamicproduct&gt; &lt;/routers&gt; &lt;/frontend&gt; &lt;/config&gt; </code></pre> <p>app/etc/modules/Waqasalieee_Dynamicproduct.xml</p> <pre><code>&lt;?xml version='1.0'?&gt; &lt;config&gt; &lt;modules&gt; &lt;Waqasalieee_Dynamicproduct&gt; &lt;codepool&gt;local&lt;/codepool&gt; &lt;active&gt;true&lt;/active&gt; &lt;/Waqasalieee_Dynamicproduct&gt; &lt;/modules&gt; &lt;/config&gt; </code></pre> <p>It should show some error or 'working in index' (string) <strong>but its giving 404 not found error.</strong></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload