[symfony-users] Re: Accessing a "foreign" model from a different module/controller - SOLVED

2008-05-01 Thread Gould, Adrian
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]

[symfony-users] Re: Accessing a "foreign" model from a different module/controller

2008-05-01 Thread Thomas Dedericks
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