[symfony-users] Re: Recommended distibution for Symfony

2009-02-28 Thread Eno
On Fri, 20 Feb 2009, Paolo Mainardi wrote: > Why ? Too slow for security updates. Too slow for releases. In some cases, some packages remain broken for a long time or not fixed. So then you end up building from source anyway. The other problem for me is the lack of customization with binary

[symfony-users] Re: Symfony Deployment

2009-02-28 Thread Eno
On Wed, 25 Feb 2009, Lawrence Krubner wrote: > We gave up on FTP No one should be using FTP anyway, not secure! -- --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group,

[symfony-users] Re: a blank white screen

2009-02-28 Thread Brian Racer
There is sfErrorLogger and sfDoctrineErrorLogger . However when I was testing sfErrorLogger with Propel(Symfony 1.2 and Propel 1.3), it would break with database exc

[symfony-users] Re: Plugins inside of a plugin

2009-02-28 Thread Bernhard Schussek
Hi Jon, I already thought about that matter as well, but I don't know of any way how this can be achieved. I guess this could be a nice addition for symfony 1.3, together with a few other plugin enhancements such as better supported plugin unit&functional testing. Bernhard --~--~-~--~-

[symfony-users] Re: how to set the date for sfWidgetFormDateTime?

2009-02-28 Thread Lawrence Krubner
I also tried this: $dateWidget =new sfWidgetFormDateTime(); $dateWidget->setDefault(date('Y/m/d H:m')); Again, the same fatal error. On Feb 28, 7:23 am, Tomasz Ignatiuk wrote: > Try to use setDefault method. I had the same problem. > > On 28 Lut, 10:02, Lawrence Krubner wrote: >

[symfony-users] Re: how to set the date for sfWidgetFormDateTime?

2009-02-28 Thread Lawrence Krubner
Tomasz, I tried this: $this->widgetSchema['date']->setDefault(date('Y/m/d H:m')); but got this: Fatal error: Call to undefined method sfWidgetFormDateTime::setDefault () in /home/lawrence/public_html/bocahoops/lib/form/ NewNewsForm.class.php on line 38 On Feb 28, 7:23 am, Tomasz Igna

[symfony-users] Re: Plugins inside of a plugin

2009-02-28 Thread Jonathan Wage
I know I could automate the installing by using dependencies but I am trying to make the sfSympalPlugin all inclusive in svn. The core of sfSympalPlugin consists of multiple plugins and I don't want to have multiple repositories for each core plugin and for the users to have to install each individ

[symfony-users] Re: Plugins inside of a plugin

2009-02-28 Thread Lee Bolding
On 28 Feb 2009, at 19:57, Jonathan Wage wrote: > The problem I ran in to was that at the time that > sfSympalPluginConfiguration is loaded, obviously plugins have > already been loaded and registered so I am not able to have a plugin > load more plugins. Anyone have any ideas? Currently yo

[symfony-users] Plugins inside of a plugin

2009-02-28 Thread Jonathan Wage
I have a desire to have a plugin which has plugins inside of it. I have the following "main" plugin, sfSympalPlugin. It is a core extension of symfony that adds a cmf layer on top of everything. That core plugin implements the hooks and tools for other "sfSympal*" plugins to tie into. I want to inc

[symfony-users] Re: Adding a custom column via addAsColumn to WHERE clause

2009-02-28 Thread Joshua
Yay I figured it out on my own $c->addHaving($c->getNewCriterion(MlVideoPeer::ID, 'votecount<=10', Criteria::CUSTOM)); On Feb 28, 1:06 pm, Joshua wrote: > Sorry above example should be > > while($video = $videos->fetch(PDO::FETCH_ASSOC)) > > On Feb 28, 1:05 pm, Joshua wrote: > > > Propel 1.3 s

[symfony-users] Re: Adding a custom column via addAsColumn to WHERE clause

2009-02-28 Thread Joshua
Sorry above example should be while($video = $videos->fetch(PDO::FETCH_ASSOC)) On Feb 28, 1:05 pm, Joshua wrote: > Propel 1.3 symfony 1.2.2 > > I have gotten this far with custom columns > > $c= new Criteria(); > $c->addAsColumn('votecount', 'COUNT > ('.MlVideoVotesPeer::ML_VIDEO_ID.')'); > $vi

[symfony-users] Adding a custom column via addAsColumn to WHERE clause

2009-02-28 Thread Joshua
Propel 1.3 symfony 1.2.2 I have gotten this far with custom columns $c= new Criteria(); $c->addAsColumn('votecount', 'COUNT ('.MlVideoVotesPeer::ML_VIDEO_ID.')'); $videos = MlVideoPeer::doSelectStmt($c); while($route = $featuredRoutes->fetch(PDO::FETCH_ASSOC)) { } This allows me to access vote

[symfony-users] Re: How to access a custom added column in propel?

2009-02-28 Thread Joshua
Oh nevermind that is my symfony version, Propel is 1.3 I suppose On Feb 28, 10:59 am, Joshua wrote: > OMG it works! THANK YOU. All I needed was ->fetch(PDO::FETCH_NUM) > > I am actually using 1.2.2, couldn't tell you either way about why what > wasn't working. So much difference between small ve

[symfony-users] Re: Playing wmv Files in Firefox

2009-02-28 Thread DEEPAK BHATIA
Hi, Thanks for your help. The problem was with https. Regards Deepak Bhatia On 2/28/09, Eno wrote: > > > On Sat, 28 Feb 2009, DeepakBhatia wrote: > > > When I specify the following line, then this movie plays fine in > > Firefox > > > > > height="480"/> > > > > But when I specify the symfon

[symfony-users] Re: a blank white screen

2009-02-28 Thread Schorsch
I had a white screen too. My problem was a too old PHP-Version. Did you run that lib\vendor\symfony\data\bin\check_configuration.php script. It's good to see, if your server is ready for symfony. --~--~-~--~~~---~--~~ You received this message because you are subscr

[symfony-users] Re: How to access a custom added column in propel?

2009-02-28 Thread Joshua
OMG it works! THANK YOU. All I needed was ->fetch(PDO::FETCH_NUM) I am actually using 1.2.2, couldn't tell you either way about why what wasn't working. So much difference between small version numbers, oy vey. On Feb 28, 7:13 am, vadim wrote: > Yeah, but read an error he's facing: > > PHP Fat

[symfony-users] Re: Playing wmv Files in Firefox

2009-02-28 Thread DEEPAK BHATIA
I don't get an error message but the files plays well on IE but not on Firefox. Btu if I specify the file path as C:\, then it plays well on both IE and Firefox. Why the file doesn't play on firefox when I specify the Symfony path ? I am getting the same problem in the php file below =

[symfony-users] Re: Playing wmv Files in Firefox

2009-02-28 Thread Eno
On Sat, 28 Feb 2009, DeepakBhatia wrote: > When I specify the following line, then this movie plays fine in > Firefox > > height="480"/> > > But when I specify the symfony path, then it doesn't play in Firefox. > > https://10.0.2.6/sample/web/images/ > caves_320_240_512kbps.wmv" width="640" h

[symfony-users] Re: sfParseException with config handlers and testing using test/fixtures/project of a plugin

2009-02-28 Thread Matthias N.
On 28 Feb., 16:10, "Matthias N." wrote: > Hi, > > I have a plugin "myPlugin" created by the task from sfTaskExtraPlugin. > This contains a test project in test/fixtures/project. > > I created a config handler but when I configure it in myPlugin/config/ > config_handlers.yml I get the following ex

[symfony-users] Path to the wmv file

2009-02-28 Thread DeepakBhatia
Hi, I have put the wmv file in the following path on the windows. C:\Program Files\xampp\htdocs\sample\web\images But the below file plays on IE and doesn't play on Firefox. Please let me know if I have correctly specified the wmv file location in the template file below =

[symfony-users] sfParseException with config handlers and testing using test/fixtures/project of a plugin

2009-02-28 Thread Matthias N.
Hi, I have a plugin "myPlugin" created by the task from sfTaskExtraPlugin. This contains a test project in test/fixtures/project. I created a config handler but when I configure it in myPlugin/config/ config_handlers.yml I get the following exception: sfParseException: Configuration file "m

[symfony-users] Re: How to access a custom added column in propel?

2009-02-28 Thread michael.pie...@googlemail.com
Damn, "Call to undefined method RoutesPeer::doselectrs()" and "PDOStatement Object", i didn't see (read) that. This point goes to you ;o) It's definitively "doSelectStmt" time! Michael On 28 Feb., 13:13, vadim wrote: > Yeah, but read an error he's facing: > > PHP Fatal error:  Call to undefin

[symfony-users] Re: how to set the date for sfWidgetFormDateTime?

2009-02-28 Thread Tomasz Ignatiuk
Try to use setDefault method. I had the same problem. On 28 Lut, 10:02, Lawrence Krubner wrote: > This is strange. I look here: > > http://fabien.potencier.org/chapter_10.html > > To set a default value for sfWidgetFormDateTime it offers this > example: > > $form->setWidget('end', new sfWidgetFo

[symfony-users] Re: How to access a custom added column in propel?

2009-02-28 Thread vadim
Yeah, but read an error he's facing: PHP Fatal error: Call to undefined method RoutesPeer::doselectrs() in /apps/frontend/modules/route/actions/actions.class.php on line 39 So I've made the conclusion that he uses Propel 1.3. Joshua, 1 000 000 dollars question to you: What Propel version do y

[symfony-users] Re: How to access a custom added column in propel?

2009-02-28 Thread michael.pie...@googlemail.com
Yes i'm aware of that and i know the difference between 1.2 and 1.3. But Joshua mentioned doSelectRS in his second post, so i assume he's using propel 1.2 For propel 1.3 it is doSelectStmt, you're right. Michael On 28 Feb., 10:34, vadim wrote: > Michael, I guess the code you wrote wouldn't w

[symfony-users] Re: How to access a custom added column in propel?

2009-02-28 Thread vadim
Michael, I guess the code you wrote wouldn't work in Propel1.3. As far as I'm concerned doSelectRS is not a case in Propel 1.3 anymore. One should use doSelectStmt instead. If I were you I would try right that: $c = new Criteria(); $c->clearSelectColumns(); $c->addSelectColumn( '((A

[symfony-users] Re: FusionCharts generate errors of headers already sent

2009-02-28 Thread Tomasz Ignatiuk
No erros :| Content headers sent as text/xml 2009/2/28 Eno > > On Fri, 27 Feb 2009, Tomasz Ignatiuk wrote: > > > I think this is connected with this that FusionCharts change data for > > xml. A tried to set content to text/xml but it didn't change anything. > > Any guess what could it be? Of cou

[symfony-users] Re: how to set the date for sfWidgetFormDateTime?

2009-02-28 Thread Lawrence Krubner
This is strange. I look here: http://fabien.potencier.org/chapter_10.html To set a default value for sfWidgetFormDateTime it offers this example: $form->setWidget('end', new sfWidgetFormDateTime(array('default' => '01/01/2008 12:00'))); I am copying that fairly closely: 'date'=>

[symfony-users] how to set the date for sfWidgetFormDateTime?

2009-02-28 Thread Lawrence Krubner
How do I set a default value for sfWidgetFormDateTime? I looked here: http://www.tig12.net/downloads/apidocs/symfony/widget/sfWidgetFormDateTime.class.html Which made me think I could get away with this: $this->widgetSchema['date']->setAttribute('time', time()); But apparently that doesn

[symfony-users] Playing wmv Files in Firefox

2009-02-28 Thread DeepakBhatia
Hi, When I specify the following line, then this movie plays fine in Firefox But when I specify the symfony path, then it doesn't play in Firefox. https://10.0.2.6/sample/web/images/ caves_320_240_512kbps.wmv" width="640" height="480"/> But in internet explorer it play fine. Please help me

[symfony-users] Re: there is no default values for auto-generated checkboxes

2009-02-28 Thread Lawrence Krubner
Also, can anyone tell me why this: 'comments'=> new sfWidgetFormInputCheckbox(array ('value_attribute_value', 1), array('class' => 'single_choice')), Would trigger this error: sfWidgetFormInputCheckbox does not support the following options: '0', '1'. stack trace at () in SF_SYMFONY

[symfony-users] Re: How to access a custom added column in propel?

2009-02-28 Thread michael.pie...@googlemail.com
doSelectRS is the right way to access an array. Example from propel docs: $rs = AuthorPeer::doSelectRS(new Criteria()); $names = array(); while($rs->next()) { $names[] = $rs->getString(2); } Michael On 28 Feb., 02:23, Joshua wrote: > On Feb 27, 6:51 pm, Eno wrote: > > > > > On Fri, 27 Feb

[symfony-users] there is no default values for auto-generated checkboxes

2009-02-28 Thread Lawrence Krubner
This is crazy: That's the HTML being generated by this: 'active' => new sfWidgetFormInputCheckbox(), There is no value in this checkbox so nothing gets sent to the server. Shouldn't there be some default value? I think "1" would be a good default. --~--~-~--~~~