/codeigniter-crud-generator

This script works on codeigniter hmvc.Acces yourdomani/crud,select your database and a module will be generated.The module will contain a controllers,a model and 4 views(index,add,edit and view)All you have to do is:-setup a db connection config/databse.php-set a encryption key in config.php($config['encryption_key'] = ‘whatever’;)

Primary LanguagePHP

Crud generator

This is a module that will create a crud for your table in Codeigniter hmvc.

All you need to do is:

- Setup your database(config/database.php),
- Set an encryption key(config/config.php)->['encryption_key'] ='Whatever';.
- Copy the folder "crud" into "modules" folder. 
- Point your browser to yourdoain/crud.

The script checks if the fields in your table are int or varchar and sets the specific validations. It also sets a "valid_email" validation if the field is named "email". If you have a created or a modified column(int type). it will automaticly add the timestamp when created and modified on add and edit and it will display them in a date format on index. Other features will come.

This script will work only in HMVC CODEIGNITER It will create a module with the following structure and populate the files with the required code based on you sql table selection.

	tablename
		controllers
			tablename.php
		models
			tablename_model.php
		views
			add.php
			edit.php
			index.php
			view.php

Donations-paypal mainerici.angel@gmail.com