Blog over OpenSource,Web en ICT in het algemeen

Pyrocms – the structure of an module

If you are an codeigniter developer and use Pyrocms you could have great use of my bash script. This script will ask you for the module directory, a module naam and if it has it’s own menu structure. After answering these questions the script will create all the default folders and files for you to start developing immediately.

Here is an example of the script in action, write your own module base files script:

1. Setting the path to your modules folder:
read folder

2. Give your module an name:
module name

3. Select the admin menu header:
menu

If all went well you see this message and you can start editing the files in your favorite editor.

ok

If you want the shell script, download it from github. Make sure to do an chmod +x on it and run it as a user that has write permissions in the modules folder of your webfolder.

Download: Github MakeModule.sh

Lees ook deze:

Leave a Reply

Comment moderation is enabled. Your comment may take some time to appear.

Spam protection by WP Captcha-Free