Over the years, we realized that a large portion of a PHP programmer's time is wasted on repetitive coding of the Database Access Layer of an application simply because different applications require different objects.
Sencha Ext JS is the leading standard for business-grade web application development. With over 100 examples, 1000 APIs, hundreds of components, a full documentation suite and built in themes, Ext JS provides the tools necessary to build robust desktop applications. Ext JS also brings a rich data package that allows developers to use a model-view-controller (MVC) architecture when building their app. The MVC leverages features like Big Data Grids enabling an entirely new level of interactivity in web apps.
Follow the three steps previously. Try it!
Once downloaded, uncompressed file and copy the folder into your www directory.
You must set permissions to the directory to write and to read. (chmod -R 777 /var/www/myapp)
Once uncompressed you'll see something like this:
myapp/ ├── class/ PHP Classes. │ ├── class.database.php │ ├── class.pog_base.php │ └── class.myapp.php ├── controllers/ PHP Controller │ └── controller.myapp.php ├── css/ Style Sheets ├── ExtJS Framework Library NOT INCLUDE! !important ├── images/ Images,icons, logos ├── js/ │ └── myapp.js Extjs File Generated ├── myapp.html HTML File Generated ├── configuration.php You must to edit with server, database and connection information └── readme.txt
<?php . . $configuration['db'] = 'test'; // <- database name $configuration['host'] = 'localhost'; // <- database host $configuration['user'] = 'root'; // <- database user $configuration['pass'] = 'abc123'; // <- database password $configuration['port'] = '3306'; // <- database port . . ?>
<?php /* This SQL query will create the table to store your object. CREATE TABLE `myapp` ( `co_myapp` int(11) NOT NULL auto_increment, `name` VARCHAR(255) NOT NULL, `email` VARCHAR(255) NOT NULL, `age` INT NOT NULL, `address` VARCHAR(255) NOT NULL, PRIMARY KEY (`co_myapp`)) ENGINE=MyISAM; */ ?>
Check ExtJS Framework path.