如何将数据从控制器发送到其他视图?
function index()
{
if(!empty($this->data))
{
$projects = $this->Hour->getProjectsByDate($this->data);
**//here I have to redirect $projects to another view.**
}
$this->set('projects', $this->Project->find('list', array('conditions' =>
array('Project.active' => true))));
}
谢谢!:)