CakeStrap is a simple HTML5 Ready Bootstrap for CakePHP 2.4.1 Applications.
[http://youtu.be/m4FtYIS3Rm8][] [http://youtu.be/m4FtYIS3Rm8]: http://youtu.be/m4FtYIS3Rm8
- Responsive Web Design
- jQuery 1.10.2 Stable (NEW)
- Modernizr
- Twitter Bootstrap v3.0.0 (NEW)
- Multi-Language ( English and Portuguese )
- CakePHP 2.4.1 Security Authentication (NEW)
- Users CRUD
- Remember password with email send
- Automatic inclusion of javascript and css files depending of the current controller and action ( Tutorial below )
- Create a table named
usersin your database with the following structure:
CREATE TABLE `users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(255) NOT NULL, `password` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `name` varchar(255) NOT NULL, `role` varchar(20) NOT NULL, `created` datetime NOT NULL, `modified` datetime NOT NULL, `hash_change_password` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
- Open the file
app/Config/database.phpand change the database information - Change the permissions of the folder
app/tmpto 777 ( and all the folders inside of it ) - Change your app name and email in
app/Config/bootstrap.phpat line 149 - Change your SMTP email settings in
app/Config/email.phpat line 66
CakeStrap has a JS and CSS folder structure allowing to automatic load files for each action of each controller. For example, if you have this JS structure folder:
/js /pages /home.js
This script will be automatic loaded when the user is in controller pages and in action home
The same structure exists for CSS files.
Currently cakeStrap supports two languages, English and Portuguese. To enable the Portuguese language as the main just add the following line in your app/Controllers/AppController.php at beforeFilter action:
Configure::write('Config.language', 'por');
Lee Graham created a easy way do deploy CakeStrap to OpenShift, check it out: cakeStrap Openshift
Have a question or found a bug? Please create an issue [here][] on GitHub! [here]: https://github.com/hugodias/cakestrap/issues