thanx a lot..it really helped. i have one more prob with the same
project but now it is in my task model and task controller. the
problem here is that validation in task doesnot works.
here is my task model:
<?php
class Task extends AppModel {
var $validate = array(
'details'=> array('rule'=> array('minlength',1),
'message'=> 'tasks details required'),
'start_date'=> array('rule'=> 'date',
'message'=> 'valid date required'),
'end_date'=> array('rule'=> 'date',
'message'=> 'valid date required'),
);
}
?>
and tasks_controller is :
<?php
class TasksController extends AppController {
var $uses = array('Task');
function add() {
if(!empty($this->data)) {
if($this->Task->save($this->data)) {
$this->Session->setFlash("Task Saved!");
}
}
}
}
?>
it is connected to above user model n controller. but the task
validation is not working
On Jan 9, 5:00 am, Miles J <[email protected]> wrote:
> Leave your login() action empty and remove allow('*'). Do not allow
> the login action.
>
> http://www.milesj.me/blog/read/5/using-cakephps-auth-component/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---