I have model News. I would like to build independent module with forms
and queries inside because then I would like to send it to my friend.
So I have module with name 'fresh_news'. Inside module 'fresh_news' I
created folder 'lib' and there file 'test.class.php' with code (I
think I should extends Doctrine_Table):

class test extends Doctrine_Table
{
  public function getNews()
  {
        $q = Doctrine_Query::create()
          ->from('News');

        return $q->execute();
  }
}

In actions.class.php I have:
$this->nevs = Doctrine::getTable('test')->getNews();

But I have an error:
Catchable fatal error: Argument 2 passed to
Doctrine_Table::__construct() must be an instance of
Doctrine_Connection, none given.......

what can I do ?

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

To unsubscribe, reply using "remove me" as the subject.

Reply via email to