Create Simple CRUD ( Laravel 4.1 ) using LCRUD
Before you create module , you have to create table for module you will created . this app doest have feature to create table database , so you need phpmyadmin or other mysql tools for creating table
Lets create new table using following table :
CREATE TABLE `customers` ( `CustomerID` int(11) NOT NULL AUTO_INCREMENT, `Name` varchar(100) DEFAULT NULL, `Contact` varchar(100) DEFAULT NULL, `Address` text, `Phone1` char(20) DEFAULT NULL, `Phone2` char(20) DEFAULT NULL, `Fax` char(20) DEFAULT NULL, `Email` varchar(100) DEFAULT NULL, `Website` varchar(255) DEFAULT NULL, `foto` varchar(100) DEFAULT NULL, PRIMARY KEY (`CustomerID`) ) ENGINE=MyISAM AUTO_INCREMENT=12 DEFAULT CHARSET=utf8
Go To : Tools > Module & Builder > Create Module
Fill all forms with following item :
- Module Name / Title : Customers
- Class Controller :
customers.
- Table Master : customers.
- Module Note : View All Customer Data
- Select you SQL statement: Check Auto SQL
- Click Button " Create Module "
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment