-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 or, you could make it a plugin. You'd have the yml schema, the routing, the actions, the forms, the model ... Alecs
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Use GnuPG with Firefox : http://getfiregpg.org (Version: 0.7.10) iEYEARECAAYFAku27fIACgkQIdlZQSANiubCwwCeOf8/3HW4A/+LXlyKjWZLjkrV L4oAoI6zl1DA+ZpnTuohP1Q8ku9gO78d =DqRV -----END PGP SIGNATURE----- On Sat, Apr 3, 2010 at 9:58 AM, Andrzej <[email protected]> wrote: > so I don't need to extends Doctrine_Table - so this is normal class > without inheritance - ok - You could write that at the beginning :) > But thx :) > > On 3 Kwi, 01:24, Rodrigo <[email protected]> wrote: >> Use static public function to declare it. >> >> 2010/4/2 Andrzej <[email protected]> >> >> >> >> > But now I have error: >> > Non-static method Test::getNews() should not be called statically, >> > assuming $this from incompatible context >> >> > On 2 Kwi, 19:52, Rodrigo <[email protected]> wrote: >> > > Hi Andrzej. >> > > Try with $this->nevs = test::getNews(); >> >> > > I suggest you to call class with Caps... 'class Test extends >> > > Doctrine_Table', same with filename, Test.class.php, just following >> > > standars. >> >> > > Blesses.- >> >> > > 2010/4/2 Andrzej <[email protected]> >> >> > > > 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 [email protected] >> > > > To unsubscribe from this group, send email to >> > > > [email protected]<symfony-users%2bunsubscr...@goog >> > > > legroups.com> >> > <symfony-users%2bunsubscr...@goog legroups.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. >> >> > -- >> > 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 [email protected] >> > To unsubscribe from this group, send email to >> > [email protected]<symfony-users%2bunsubscr...@goog >> > legroups.com> >> > For more options, visit this group at >> >http://groups.google.com/group/symfony-users?hl=en > > -- > 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 [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > -- Have a nice day! Alecs Certified ScrumMaster There are no cannibals alive! I have ate the last one yesterday ... I am on web: http://www.alecslupu.ro/ I am on twitter: http://twitter.com/alecslupu I am on linkedIn: http://www.linkedin.com/in/alecslupu Tel: (+4)0722 621 280 -- 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
