[eluser]bEz[/eluser]
The first comment shows where you had "$countries = $country->all;"
The second comment shows where to place it.
but I just setup a method using your original code, and it worked...
So check your model setup.
Code:
function test()
{
$pt = new Pool_team();
$pt->get();
$pteams = $pt->all;
echo $pt->count();
$i=0;
foreach ($pteams as $p)
{
$i++;
}
echo br().$i;
}
both gave me the same numbers.
but try the version using the extensions, it's more cleaner and along the lines of what you may be needing in your project.