Thanks Thomas
DOH! I missed a simple thing in the solution I had - a semicolon! BUGGER :-)
Ady
---
Adrian Gould
Lecturer in IT / Network Engineering / Multimedia
Business Finance & Computing [Midland Campus]
Swan TAFE
PO BOX 1336, Midland WA 6936
Phone: (08) 9267
eMail: [EMAIL PROTECTED]
Hi,
you can access the Post model inside any module using the PostPeer
class.
In your controller action :
$c = new Criteria();
$c->addDescendingOrderByColumn(PostPeer::ID);
$c->setLimit(5);
$this->posts = PostPeer::doSelect($c);
and you'll have access to the $po