GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - abawany/Magento1xModuleStarter: This is a simple PHP script that enables you to automate the initial steps to create a Magento 1.x local module.

This repository was archived by the owner on Jul 13, 2022. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitignore
.gitignore
 
 
Magento1xModuleStarter.php
Magento1xModuleStarter.php
 
 
README.md
README.md
 
 

Repository files navigation

Simple Magento 1.x Module Starter

by Ali Bawany

Summary:

This simple PHP script, run from a command line, will enable you to create the basic directory structure for a Magento 1.x module within a running Magento instance. If things work well, your running Magento instance will show the module as follows:

  • Go to Magento Admin
  • Navigate to System -> Configuration -> Advanced
  • Expand "Disable Modules Output" table and search for your defined module within the list

Instructions:

  • Usage is as follows:
# php -f Magento1xModuleStarter.php
usage: Magento1xModuleStarter.php <mage basedir> <namespace> <mod_name> 
  • In the above, you can see that the script requires a base directory where Magento is installed, a namespace, and the name of the module that you want to create. For example:
# php -f Magento1xModuleStarter.php /var/www/magento_1.7.2 Bagsof Monet
  • Once the basic directories and initial config files are created, you should be all set to customize away and begin building the module of your choice.

Caveats:

  • Don't re-run the script before deleting your module directories (i.e. <mage basedir>/app/code/local/<namespace>/<mod_name>. The script is currently naive and does not overwrite/delete existing directories. It also exits when it encounters an error instead of continuing to the next step.

References:

  • http://coding.smashingmagazine.com/2012/03/01/basics-creating-magento-module/
  • http://alanstorm.com/magento_controller_hello_world

About

This is a simple PHP script that enables you to automate the initial steps to create a Magento 1.x local module.

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.