Post by mithereal » Tue Jun 04, 2013 3:52 pm

#!/bin/bash
echo "Type the name of the project followed by [ENTER]:"
read projectname

echo "Type the name of the module followed by [ENTER]:"
read modulename

mkdir -p $projectname/upload/catalog/controller/$modulename
mkdir -p $projectname/upload/catalog/model/$modulename
mkdir -p $projectname/upload/catalog/view/theme/default/template/module/$modulename
mkdir -p $projectname/upload/catalog/language/english/module

mkdir -p $projectname/upload/admin/controller/$modulename
mkdir -p $projectname/upload/admin/model/$modulename
mkdir -p $projectname/upload/admin/view/template/module/$modulename
mkdir -p $projectname/upload/admin/language/english/module

User avatar
Newbie

Posts

Joined
Fri Mar 22, 2013 6:16 am

Post by daik01 » Tue Jun 04, 2013 4:08 pm

WOW, thanks.

this is for all Windows users, save it as createproject.cmd in the root of your projectcode :

@echo off
set /p projectname="Type the name of the project followed by [ENTER]:" %=%

mkdir %projectname%\catalog\controller\module
mkdir %projectname%\catalog\model\%projectname%
mkdir %projectname%\catalog\view\module\%projectname%
mkdir %projectname%\catalog\language\english\module
mkdir %projectname%\admin\controller\module
mkdir %projectname%\admin\model\%projectname%
mkdir %projectname%\admin\view\module\%projectname%
mkdir %projectname%\admin\language\english\module

TOP 5 Opencart Extensions:
1:Opencart Reservations
2:Stock Report, import/export stock levels with Excel
3:3D Carousel
4:Product Price Changer by Category
5:Set price Inclusive Taxes
DEMO SHOP


Active Member

Posts

Joined
Sun Oct 21, 2012 3:18 am

Who is online

Users browsing this forum: No registered users and 28 guests