On 18 Dec 2010, at 15:18, Steve Mallett wrote:
> So I added that to the tasks_controller.php:
> function index() {
> $this->Task->recursive = 1;
> $this->set('tasks', $this->paginate());
> $projects = $this->Task->Project->find('list'); // HERE
> }
>
> To test I added <?php debug($projects); ?> to views/task/index.ctp
> but get error:
>
> Notice (8): Undefined variable: projects [APP/views/tasks/index.ctp, line 5]
you will do unless you set this data to the view
$this->set('projects',$projects);
--
Mike Karthäuser
Managing Director - Brightstorm Ltd
Email: [email protected]
Web: http://www.brightstorm.co.uk
Tel: 07939 252144
Address: 1 Brewery Court, North Street, Bristol, BS3 1JS
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
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