[symfony-users] problem when display rows with Doctrine_Query

2009-10-15 Thread Martin Ibarra Cervantes
hi, guys i have this Sql with doctrine on my controller public function executeIndex(sfWebRequest $request) { $this-mr_album_imagen_list = Doctrine::getTable('MrAlbumImagen')-getImagenesAlbum($this-getUser()-getAttribute('id_usuario'));

[symfony-users] Re: Performance tricks for Symfony

2009-10-15 Thread David Herrmann
ffrey schrieb: Total madness ! $v = (float) ((0.7 + 0.1) * 10);echo $v; = 8, as expected $v = (int) ((0.7 + 0.1) * 10);echo $v; = 7, as totally unexpected !!! Can you explain why ? A php bug ? Thanks for that thought-provoking post ;-) Just never cast floats to integers directly, use

[symfony-users] Re: Component cache and authenticated user

2009-10-15 Thread Grégoire
Perfect, it's just what I need, and it works :) Thanks a lot Eno! On 14 oct, 18:12, Eno symb...@gmail.com wrote: On Wed, 14 Oct 2009, Greg wrote: It sounds perfect, but I can't find how to set this key... Is it in my cache.yml file? If you are caching a partial, then you can include the

[symfony-users] Re: Database Views with Symfony Doctrine

2009-10-15 Thread ridcully
Hi, when you created the tables this way, what is the best practice to drop this tables and create Views? I want to do this in a Symfony Task, but is this the best practice? And how can I drop tables and views in a Symfony Task? On Oct 9, 11:14 am, E_lexy alexk...@gmail.com wrote: @david I

[symfony-users] Re: sfDoctrineGuard : backend login ILOD

2009-10-15 Thread aymeric
Yes, it is the first route in /backend/config/routing.yml : homepage: url: / param: { module: article, action: index } I am really lost here, I checked all my error logs and they all are 4 to 10 days old, no clue in there. On 14 oct, 22:40, Casey casey.cam...@gmail.com wrote: do you

[symfony-users] Re: sfDoctrineGuard : backend login ILOD

2009-10-15 Thread Alexandre SALOME
Maybe a problem with your application security. Disable all is_secure: true from your security.yml and re-enable them one by one to understand. Alexandre 2009/10/15 aymeric elag...@gmail.com Yes, it is the first route in /backend/config/routing.yml : homepage: url: / param: { module:

[symfony-users] Re: [Solved by computer magic]: sfDoctrineGuard : backend login ILOD

2009-10-15 Thread Alexandre SALOME
No, it was due to fact that sfGuard redirect you to your referer after logging. Alexandre 2009/10/15 aymeric elag...@gmail.com There is only one is_secure: true for the entire backend (in / backend/config/security.yml). The problem has solved itself during the night. The first thing I did

[symfony-users] sf1.3 ANSI color on the command line....

2009-10-15 Thread Jonathan Franks
is there a way to make this the default? instead of typing --color every time --~--~-~--~~~---~--~~ 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] [Solved by computer magic]: sfDoctrineGuard : backend login ILOD

2009-10-15 Thread aymeric
There is only one is_secure: true for the entire backend (in / backend/config/security.yml). The problem has solved itself during the night. The first thing I did this morning was to answer to Casey (upper in the discussion) and then I tried to log in my backend and it miraculously worked. The

[symfony-users] Re: Additional URL values

2009-10-15 Thread Gábor Fási
You should send those values via post, instead of get. Try it that way. On Wed, Oct 14, 2009 at 11:04, enim ogainam enim.ogai...@gmail.com wrote: Hello! I am Enim and i am new to SYMFONY so please be kind.  i am having trouble with the build query that causes the returned values to

[symfony-users] Re: jobbet using sf 1.3

2009-10-15 Thread Fabian Lange
Hi, there is http://www.symfony-project.org/jobeet/1_3/Doctrine/en/ which is the 1.3 version of the tutorial. Changes will be made to that if required, but at the moment i think it is identical. Fabian On Thu, Oct 15, 2009 at 1:30 AM, Nei Rauni Santos nra...@gmail.com wrote: There is any

[symfony-users] Re: sf1.3 ANSI color on the command line....

2009-10-15 Thread Lee Bolding
Make an alias in your shell On 15 Oct 2009, at 09:24, Jonathan Franks wrote: is there a way to make this the default? instead of typing --color every time --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[symfony-users] How to use sync with cron?

2009-10-15 Thread Sid Bachtiar
Hi, How can I set the symfony sync for cron? E.g.: specifying the user's password so that it won't require manually entering password. Cheers, Sid --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users

[symfony-users] Re: How to use sync with cron?

2009-10-15 Thread Gábor Fási
You can use ssh keys to login without a password. This tutorial uses rsync over ssh to backup, scheduled via cron: http://troy.jdmz.net/rsync/index.html On Thu, Oct 15, 2009 at 12:42, Sid Bachtiar sid.bacht...@gmail.com wrote: Hi, How can I set the symfony sync for cron? E.g.: specifying the

[symfony-users] Re: How to use sync with cron?

2009-10-15 Thread Sid Bachtiar
Thanks, exactly what I was thinking! I followed it and it works really well :) On Thu, Oct 15, 2009 at 11:48 PM, Gábor Fási maerl...@gmail.com wrote: You can use ssh keys to login without a password. This tutorial uses rsync over ssh to backup, scheduled via cron:

[symfony-users] Re: sf1.3 ANSI color on the command line....

2009-10-15 Thread Matthew Penrice
make an ass in your bell On Thu, Oct 15, 2009 at 11:18 AM, Lee Bolding l...@leesbian.net wrote: Make an alias in your shell On 15 Oct 2009, at 09:24, Jonathan Franks wrote: is there a way to make this the default? instead of typing --color every time

[symfony-users] Re: Specify connection parameters (databases.yml) in PHP

2009-10-15 Thread Gareth McCumskey
Create a connection in databases.yml per domain with the name of the connection being the domain itself. In your Propel model classes (not used Doctrine yet) you can override the doSelect(), retrieveByPk() etc methods to take the domain into account:

[symfony-users] Re: Specify connection parameters (databases.yml) in PHP

2009-10-15 Thread Gareth McCumskey
So for a fuller example: databases.yml: all: propel: class: sfPropelDatabase param: dsn: 'mysql://pinpoint:p1np0...@196.37.40.73/pinpoint' somedomain.org: class: sfPropelDatabase param: dsn: 'mysql://pinpoint:p1np0...@localhost/pinpoint' somedomain.com:

[symfony-users] Page state

2009-10-15 Thread Mark Smith
Does symfony provide any mechanisms for managing page state? Thanks --~--~-~--~~~---~--~~ 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

[symfony-users] Re: [Solved by computer magic]: sfDoctrineGuard : backend login ILOD

2009-10-15 Thread aymeric
So you say it was normal that I had this scheme before rebooting : - try to access localhost/backend.php (or backend_dev.php) - get login form - enter valid username and password, click submit -get login form ?? On 15 oct, 10:14, Alexandre SALOME alexandre.sal...@gmail.com wrote: No, it was due

[symfony-users] testing routes

2009-10-15 Thread Jonathan Franks
I have a very long, complicated routing.yml and I want to make sure that when I add a new route, it doesn't conflict with any of the existing ones. So, I wanna write a test which does something like this... $routing = new sfPatternRouting(new sfEventDispatcher()); ... some code to load the

[symfony-users] Re: : sfDoctrineGuard : backend login ILOD

2009-10-15 Thread aymeric
And do you know why the online version of my backend open a popup Authentication required -- The server server.com:80 require a username and a password that is useless (it loops on itself) and give me the login form only if I cancel the popup ? Is there some kind of authentication type setting ?

[symfony-users] Re: testing routes

2009-10-15 Thread Thomas Rabaix
http://trac.symfony-project.org/browser/plugins/swOptimizeRoutesPlugin/trunk/test/lib/swOptimizeHelper.php http://trac.symfony-project.org/browser/plugins/swOptimizeRoutesPlugin/trunk/test/performance/load_data.php ;) On Thu, Oct 15, 2009 at 5:17 PM, Jonathan Franks jonat...@ifranks.comwrote:

[symfony-users] Re: spl support: undefined function spl_autoload_register()

2009-10-15 Thread lorenx
sorry, it was my fault. recompiling worked as expected and yes, from the command line i got spl support... but the error raised again from the browser cause i carelessly forgot to restart apache! :P thank you all. On Oct 2, 11:07 am, Davide Borsatto lloy...@gmail.com wrote: SPL should can not

[symfony-users] How to custom frontend for sfguarduser

2009-10-15 Thread g0d br
Hi, I just want to customize the labels username, password and password_again so far i created the module user php symfony propel:generate-module frontend user sfGuardUser but how do i proceed to cutomize the label if the lib/form class do not existe. Thank you celso

[symfony-users] Re: How to custom frontend for sfguarduser

2009-10-15 Thread Alexandru-Emil Lupu
you don't need to do that ... in your / plugins/sfGuard/modules/sfGuardAuth/actions/actions.class.php writhe this: public function theExtendedMethod($request){ parent::theExtendedMethod($request); $this-form-setLabels(array( 'username'= 'foo', 'password'= 'moo', 'password_again' = 'boo' )); }

[symfony-users] Re: Page state

2009-10-15 Thread Alexandru-Emil Lupu
what do you mean by sstate page ? maybe Static pages? if yes, then it supports ... method 1: you write those pages as partials (see the doc) and set a custom layout method 2: you instruct your apache modRewrite to serve statc content for some custom urls maybe other might come with other

[symfony-users] sf1.2 routes fail in sf1.3

2009-10-15 Thread Jonathan Franks
in sf1.2, i could write a route like this... url: /books-by-:author.html param: { module: books, action: list } options: segment_separators: [/, ., -] and it would match... /books-by-jon.html /books-by-jon-franks.html but in sf1.3, it only matches... /books-by-jon.html

[symfony-users] Re: testing routes

2009-10-15 Thread Jonathan Franks
Thanks Thomas! that's perfect! ;-) On 15 Oct 2009, at 17:04, Thomas Rabaix wrote: http://trac.symfony-project.org/browser/plugins/swOptimizeRoutesPlugin/trunk/test/lib/swOptimizeHelper.php

[symfony-users] Doctrine alterntive for sfWidgetFormPropelJQueryAutocompleter?

2009-10-15 Thread Lukas Kahwe Smith
Hey, Just wondering if anyone has looked into porting sfWidgetFormPropelJQueryAutocompleter to Doctrine or if there is a widget that makes it easy to replace a standard drop down inside the admin generator with a livesearch while using Doctrine as the ORM. regards, Lukas Kahwe Smith

[symfony-users] issue with form action from admin generator

2009-10-15 Thread MrGlass
I am working on a site based on the jobeet tutorial but heavily modified. I recently started encountering an issue with my backend. I get a routing error when I submit a form. the error: The /post/:id/edit.:sf_format route has some missing mandatory parameters (:id). the form action url: