[symfony-users] Re: Extend pake tasks?

2007-07-01 Thread gestadieu
the easiest way is probably to look at some of the plugins extending pake. You can have a look to the tarBall plugin for example. If you make it as a plugin, it will be easier to share it with other if it is usefull. On Jun 28, 4:51 am, Eno <[EMAIL PROTECTED]> wrote: > On Jun 27, 11:10 am, Eno <[

[symfony-users] Re: Extend pake tasks?

2007-07-01 Thread Scott Meves
Although I don't know of any docs for extending pake tasks, here are a few tips to get you started: 1. In your project's data directory, create a "tasks" directory. Then, create a file with a name like "myPakeTaskName.php", that follows the name structure myPake*.php. This file should cont

[symfony-users] Re: accessing user from the peer

2007-07-01 Thread Kiril Angov
scube, First of all this function getLeftCredits() should not be in CreditsPeer class but rather in your Member.php class (whichever is your class holding member information for site) Once you put the function there you can do: class Member { public function getLeftCredits()

[symfony-users] Re: Extend pake tasks?

2007-07-01 Thread Eno
On Jun 28, 3:43 am, "Tristan Rivoallan" <[EMAIL PROTECTED]> wrote: > it's in no way extendable but it's fairly easy write your own tasks. Any pointers for docs and examples? (The pake project has overwhelming documentation . NOT ;-) --~--~-~--~~~---~--~~ Yo

[symfony-users] Re: Best way to check if a variable exists in a template

2007-07-01 Thread Nicolas Perriault
Greg Freeman a écrit : > getcategory()->getName() ?> > > And the content does not have a category (i.e category_id in the > content table is null) it causes an error. Now of course you could use > php like isset etc but wouldn't that be breaking separation of logic > etc. If your content can ha

[symfony-users] Re: accessing user from the peer

2007-07-01 Thread Steve Lianoglou
Hi, > I have an action class where i try to get the amount of left credits. > so i'll try to make a function for that in the CreditsPeer.php file > which is generated by propel. I call this function with this: "$this- > > >creditsLeft = CreditsPeer::getLeftCredits();" > > that function looks like

[symfony-users] accessing user from the peer

2007-07-01 Thread scube
Hi folks, I have an action class where i try to get the amount of left credits. so i'll try to make a function for that in the CreditsPeer.php file which is generated by propel. I call this function with this: "$this- >creditsLeft = CreditsPeer::getLeftCredits();" that function looks like this:

[symfony-users] Re: Format date

2007-07-01 Thread Mat
Thanks that worked a treat :) would never have spotted that. Thanks again, Mat -Original Message- From: Scott Meves [mailto:[EMAIL PROTECTED] Sent: 01 July 2007 16:06 To: symfony-users@googlegroups.com Subject: [symfony-users] Re: Format date Try this: getCreatedAt(null) ?> passing

[symfony-users] Re: Format date

2007-07-01 Thread Scott Meves
Try this: getCreatedAt(null) ?> passing the explicit "null" value should do the trick. -Scott On Jul 1, 2007, at 8:27 AM, Mat wrote: > > Hey all, > I'm probably being particularly stupid here, but i'm struggling to > find an > easy way to display a created_at field in Epoch Seconds, > > My

[symfony-users] Format date

2007-07-01 Thread Mat
Hey all, I'm probably being particularly stupid here, but i'm struggling to find an easy way to display a created_at field in Epoch Seconds, My current attempt is as follows getCreatedAt(), 'U') ?> This is output the correct date/time but in the wrong format, is there a list of the different f

[symfony-users] Re: Propel Subquery

2007-07-01 Thread Martin Kreidenweis
Hi. > Does Propel support subqueries or do you need to do a raw query? It kind of supports it through Criteria::CUSTOM. You don't have to write SQL code for the main query, just for the subselect. See http://www.symfony-project.com/snippets/snippet/75 Martin --~--~-~--~~--