Re: mod rewrite google apps question

2011-10-24 Thread Andrey Puhalevich
RewriteRule ^$ app/webroot/[L] RewriteCond %{REQUEST_URI} !^/?(idevaffiliate|phpmyadmin|google).*$ RewriteCond %{REQUEST_URI} !^/?(crossdomain.xml|robots.txt|favicon.ico| sitemap.xml)$ RewriteRule (.*) app/webroot/$1 [L] -- Our newest site for the community: CakePHP Video Tutorials http://tv

Re: Validate date from model

2011-10-24 Thread Andrey Puhalevich
var $validate = array( 'end_date' => array( 'comparison' => array('rule'=>array('field_comparison', '>', 'start_date'), 'allowEmpty'=>true), ), ); function field_comparison($check1, $operator, $field2) { foreach($check1 as $key=>$value1) {