Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/full stack/php/cake 1.2/app/config/core.php b/full stack/php/cake 1.2/app/config/core.php
- index 37d6b07..295eb0a 100644
- --- a/full stack/php/cake 1.2/app/config/core.php
- +++ b/full stack/php/cake 1.2/app/config/core.php
- @@ -79,7 +79,7 @@
- * or in each action using $this->cacheAction = true.
- *
- */
- - //Configure::write('Cache.check', true);
- + Configure::write('Cache.check', true);
- /**
- * Defines the default error type when using the log() function. Used for
- * differentiating error logging and debugging. Currently PHP supports LOG_DEBUG.
- @@ -148,7 +148,7 @@
- * CakePHP session IDs are also regenerated between requests if
- * 'Security.level' is set to 'high'.
- */
- - Configure::write('Security.level', 'high');
- + Configure::write('Security.level', 'medium');
- /**
- * A random string used in security hashing methods.
- */
- @@ -241,5 +241,4 @@
- * ));
- *
- */
- - Cache::config('default', array('engine' => 'File'));
- ?>
- diff --git a/full stack/php/cake 1.2/app/controllers/hellos_controller.php b/full stack/php/cake 1.2/app/controllers/hellos_controller.php
- index b14717d..43b87e3 100644
- --- a/full stack/php/cake 1.2/app/controllers/hellos_controller.php
- +++ b/full stack/php/cake 1.2/app/controllers/hellos_controller.php
- @@ -3,6 +3,8 @@ class HellosController extends AppController {
- var $name = 'Hellos';
- var $uses = 'Hello';
- + var $helpers = array('Cache');
- + var $cacheAction = "5 minutes";
- // index action: default view
- function index() {
- diff --git a/full stack/php/cake 1.3/app/config/core.php b/full stack/php/cake 1.3/app/config/core.php
- index d7d6629..df784a3 100644
- --- a/full stack/php/cake 1.3/app/config/core.php
- +++ b/full stack/php/cake 1.3/app/config/core.php
- @@ -48,7 +48,7 @@
- * Configure::write('log', E_ERROR | E_WARNING);
- * Configure::write('log', E_ALL ^ E_NOTICE);
- */
- - Configure::write('log', true);
- + Configure::write('log', E_ERROR);
- /**
- * Application wide charset encoding
- @@ -102,7 +102,7 @@
- * or in each action using $this->cacheAction = true.
- *
- */
- - //Configure::write('Cache.check', true);
- + Configure::write('Cache.check', true);
- /**
- * Defines the default error type when using the log() function. Used for
- @@ -300,4 +300,4 @@
- * ));
- *
- */
- - Cache::config('default', array('engine' => 'File'));
- +?>
- \ No newline at end of file
- diff --git a/full stack/php/cake 1.3/app/controllers/hellos_controller.php b/full stack/php/cake 1.3/app/controllers/hellos_controller.php
- index b14717d..148905d 100644
- --- a/full stack/php/cake 1.3/app/controllers/hellos_controller.php
- +++ b/full stack/php/cake 1.3/app/controllers/hellos_controller.php
- @@ -3,7 +3,8 @@ class HellosController extends AppController {
- var $name = 'Hellos';
- var $uses = 'Hello';
- -
- + var $helpers = array('Cache');
- + var $cacheAction = "5 minutes";
- // index action: default view
- function index() {
- echo "Hello World!";
Add Comment
Please, Sign In to add comment