I try to create notification system
function add_script() {
if (!empty($this->data)) {
$this->Script->create();
$this->Ring->bindUp();
$this->data['Script']['script_catagories_id'] =
$this->data['Script']['scriptCatagories'];
$this->data['Script']['user_id'] = $this->Auth->user('id');
if ($this->Script->save($this->data)) {
$id = $this->Auth->user('id');
$follow =
$this->Follow->find('all',array('conditions'=>array('leader_id'=>$id)));
$this->Session->setFlash(__('The script has been saved', true));
$this->redirect(array('action' => 'script_index'));
} else {
$this->Session->setFlash(__('The script could not be
saved. Please, try again.', true));
}
}
when data save check follows table if have leader_id read data and
send to dashboard controller
I don,t know how to send data controller to other controller if
possible please guide me
best regard
taqman
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php