A nice addition is the Router so that urls in emails will use our custom routes.
To use the router change the second line in the task to: App::import('Core', array('Router','Controller'));
and add include CONFIGS . 'routes.php';
to the task initialize() method
kabturek posted on 12/03/07 01:18:49 PM
Mariano Where can i worship You ? :D
No seriously man - this behavior rocks! Thanks!
@Adam Kennedy
You would probably have less problems with the svn branch instead of changing the behavior.
kabturek posted on 09/26/07 01:11:03 PM
You can specify a layout for the flash message (second param of Session::setFlash) :)
kabturek posted on 09/23/07 02:00:26 PM
Change DEBUG on line 51 to Configure::read('debug') as we are moving to using Configure class instead of constants :)
also i use this .htaccess file: <IfModule mod_deflate.c>
# compress content with type html, text, and css
AddOutputFilterByType DEFLATE text/css text/javascript application/x-javascript text/js
<ifmodule mod_headers.c>
# properly handle requests coming from behind proxies
Header append Vary User-Agent
</ifmodule>
</IfModule>
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType text/css "access plus 10 years"
ExpiresByType text/js "access plus 10 years"
ExpiresByType text/javascript "access plus 10 years"
ExpiresByType application/x-javascript "access plus 10 years"
ExpiresByType image/png "access plus 10 years"
</IfModule>
A nice addition is the Router so that urls in emails will use our custom routes.
To use the router change the second line in the task to:
and addApp::import('Core', array('Router','Controller'));
to the task initialize() methodinclude CONFIGS . 'routes.php';
No seriously man - this behavior rocks! Thanks!
@Adam Kennedy
You would probably have less problems with the svn branch instead of changing the behavior.
also i use this .htaccess file:
<IfModule mod_deflate.c>
# compress content with type html, text, and css
AddOutputFilterByType DEFLATE text/css text/javascript application/x-javascript text/js
<ifmodule mod_headers.c>
# properly handle requests coming from behind proxies
Header append Vary User-Agent
</ifmodule>
</IfModule>
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType text/css "access plus 10 years"
ExpiresByType text/js "access plus 10 years"
ExpiresByType text/javascript "access plus 10 years"
ExpiresByType application/x-javascript "access plus 10 years"
ExpiresByType image/png "access plus 10 years"
</IfModule>
FileETag none
Great work! thanks