Skip to content
This repository
Browse code

Docs

  • Loading branch information...
commit 3470f7623c4df2bf52c43d6b1d3db81cd217b8ee 1 parent dfcf002
Hugo Dias authored October 09, 2012

Showing 1 changed file with 18 additions and 3 deletions. Show diff stats Hide diff stats

  1. 21  README.md
21  README.md
Source Rendered
... ...
@@ -1,4 +1,4 @@
1  
-# CakeStrap v 0.4
  1
+# CakeStrap v 0.5
2 2
 ---
3 3
 CakeStrap is a simple HTML5 Ready Bootstrap for CakePHP 2.2 Applications.
4 4
 
@@ -16,12 +16,13 @@ CakeStrap is a simple HTML5 Ready Bootstrap for CakePHP 2.2 Applications.
16 16
 4. Modernizr v2.6.1
17 17
 5. Twitter Bootstrap v2.1.0
18 18
 6. Multi-Language ( English and Portuguese )
19  
-7. Custom themes ( Bootswatch )
  19
+7. Custom themes ( Bootswatch ) **(NEW)**
20 20
 
21 21
 ##### Back-end
22 22
 1. CakePHP 2.2 Security Authentication
23 23
 2. Users CRUD
24  
-3. Remember password with email send **(NEW)**
  24
+3. Remember password with email send
  25
+4. Automatic inclusion of  javascript and css files depending of the current controller and action ( Tutorial below ) **(NEW)**
25 26
 
26 27
 
27 28
 ## Quick start
@@ -50,6 +51,20 @@ CakeStrap is a simple HTML5 Ready Bootstrap for CakePHP 2.2 Applications.
50 51
 - Change your SMTP email settings in `app/Config/email.php` at line 66
51 52
 
52 53
 
  54
+## Automatic inclusion of JS and CSS
  55
+CakeStrap has a JS and CSS folder structure allowing to automatic load files for each action of each controller.
  56
+For example, if you have this JS structure folder:
  57
+
  58
+<pre>
  59
+/js
  60
+	/pages
  61
+		/home.js		
  62
+</pre>
  63
+
  64
+This script will be automatic loaded when the user is in controller `pages` and in action `home`
  65
+
  66
+The same structure exists for `CSS` files.
  67
+
53 68
 ## Internationalization
54 69
 
55 70
 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:

0 notes on commit 3470f76

Please sign in to comment.
Something went wrong with that request. Please try again.