I have a list of projects, where I can click on and it (needs to) show the project name, and the list of the projects\' tasks (ToDo application)
But when I click on a ce
$project->tasks is an array and you cant call count() on the array. So try with -
$project->tasks
count()
count($project->tasks)