php - Simple controller with Magento 1.8.0 -


i newbie in magento world, , want create simple controller described here. when put browser getting 404 error. try find solution in web didn't. can me please? if need peace of code me. thanks!

p.s. module active, check in admin dashboard.

directory structure should follows:

app/code/local/magentotutorial/helloworld/controllers/indexcontroller.php app/code/local/magentotutorial/helloworld/etc/config.xml

app/code/local/magentotutorial/helloworld/etc/config.xml):

<?xml version="1.0"?> <config>         <modules>         <magentotutorial_helloworld>             <version>0.1.0</version>         </magentotutorial_helloworld>     </modules>     <frontend>         <routers>             <helloworld>                 <use>standard</use>                 <args>                     <module>magentotutorial_helloworld</module>                     <frontname>helloworld</frontname>                 </args>             </helloworld>         </routers>       </frontend> </config> 

then create file activate module (at path app/etc/modules/magentotutorial_helloworld.xml):

<?xml version="1.0"?> <config>     <modules>         <magentotutorial_helloworld>             <active>true</active>             <codepool>local</codepool>         </magentotutorial_helloworld>     </modules> </config> 

create file @

app/code/local/magentotutorial/helloworld/controllers/indexcontroller.php

public function indexaction() {          echo 'hello index!';      } } 

browse in browser

 http://example.com/index.php/helloworld 

that's it.


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -