[symfony-users] Re: dbFinder problem
Did clearing the cache, as Sid suggested in another thread, solve your problem? François 2008/9/24 Reynier Perez Mira <[EMAIL PROTECTED]>: > > I think that is from a Propel ORM because I have none Doctrine plugin > installed. I'm using the latest from SVN (maybe is not the latest because I > update my plugin when you fix the PostgreSQL problem. I'm the ticket guy). > What you mean with initialization line? This one: > > $this->pag = > DbFinder::from('Autores')->paginate($request->getParameter('pag', 1), > sfConfig::get('app_paginado')); > > Cheers and thanks > Ing. Reynier Pérez Mira > Grupo de Soporte al Desarrollo - Dirección Técnica IP > >> -Original Message- >> From: symfony-users@googlegroups.com [mailto:[EMAIL PROTECTED] >> On Behalf Of Francois Zaninotto >> Sent: Wednesday, September 24, 2008 4:07 PM >> To: symfony-users@googlegroups.com >> Subject: [symfony-users] Re: dbFinder problem >> >> >> Are you creating a finder object from a Propel class or from a >> Doctrine class? Which version of the plugin are you using? Can you >> paste the finder initialization line? >> >> François >> >> 2008/9/24 Reynier Perez Mira <[EMAIL PROTECTED]>: >> > >> > Hi every: >> > Recently I start a new project with Symfony 1.1.2. After created all model >> > classes >> I'm trying to use dbFinder plugin but I get this error: >> > >> > Notice: Undefined variable: finder in >> D:\Development\WWW\gestion.local\plugins\DbFinderPlugin\lib\DbFinder.php on >> line >> 171 >> > >> > Fatal error: Call to a member function paginate() on a non-object in >> D:\Development\WWW\gestion.local\plugins\DbFinderPlugin\lib\DbFinder.php on >> line >> 390 >> > >> > Can any help me with this? >> > PS: With Symfony 1.0.17 I not have this problem is only with Symfony 1.1.2 >> > >> > Cheers and thanks in advance >> > Ing. Reynier Pérez Mira >> > Grupo de Soporte al Desarrollo - Dirección Técnica IP >> > >> > > >> > >> >> > > > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: structure advices
Thank you both of you for your answer. I did it the way Tom suggested as the frontend will stay quite simple. On Sep 24, 3:04 pm, Tom Haskins-Vaughan <[EMAIL PROTECTED]> wrote: > For the backend, I'd definitely agree: one module per section. > > For the frontend, in my opinion, it depends on the complexity of the > section. If there's likely to be more than one page per section, use a > separate module. But if each section is just one page, I'd be tempted to > keep it simple and just use one module with a different action/template > for each. > > Hope that helps. > > Tom > > > > Bruno Reis wrote: > > one module per section > > > 2008/9/23 julien Bessiere <[EMAIL PROTECTED]>: > >> Hi, > >> I'm new to symfony and I wonder how I should structure the website I'm > >> working on. > >> I plan to have to apps: frontend and backend. > >> But within this apps, should I create one module per section (i.e. home, > >> publications, news, research, team) or create just one module and different > >> templates for each? > >> If I understood correctly, the structure of the backend is the same? > > >> thanks > > >> Julien > > -- > Tom Haskins-Vaughan > Temple Street Media: Design and Development for the Web > [EMAIL PROTECTED] |www.templestreetmedia.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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Fatal Error [Uncaught exception 'PropelException' with message 'Unable to open PDO connection]
Hi, I think it means Propel is unable to access mysql database using username 'www-data' on 'localhost' without password. Make sure there is a username 'www-data' in your mysql database and that it has access to the database you intend to use. On Thu, Sep 25, 2008 at 2:12 AM, Rabe'e Nabil <[EMAIL PROTECTED]> wrote: > > hi there , i am new to propel , already set it up well but still got > this problem that i am stuck in for the last 3 days , please HELP! > > ERROR : > Fatal error: Uncaught exception 'PropelException' with message 'Unable > to open PDO connection [wrapped: SQLSTATE[28000] [1045] Access denied > for user 'www-data'@'localhost' (using password: NO)]' in /usr/share/ > php/propel/Propel.php:610 Stack trace: #0 > -- > > > RUNTIME-CONF.XML : > > > > > >mysql >2 > mysql://rob:[EMAIL PROTECTED]/pool > > > > > > -- > > > BUILD.PROPERTIES : > propel.project = pool > propel.database = mysql > propel.database.url = mysql://rob:[EMAIL PROTECTED]/pool > #propel.database.user = rob > #propel.database.password = dashizza > > > > -- Visit my website: http://onlinesid.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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Logging configuration confusion
Hello, I've recently started a new project based on symfony 1.1.2. However, I'm not sure if my logging configuration is correct since I'm not seeing the right behavior. Basically I want to log only 'err' level errors in prod environment. This is what I have in factories.yml: prod: logger: param: level: err I'm only changing the level param - everything else should stay the same. However, nothing is logged. For example, I tried loading a wrong URL to generate an sfError404Exception but no error was logged. Doing the same in dev env logs the error fine. Any ideas what could be wrong? Btw, logging_enabled is on by default in settings.yml and thus applies to prod. -- Regards, Rytis --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Fatal Error [Uncaught exception 'PropelException' with message 'Unable to open PDO connection]
hi there , i am new to propel , already set it up well but still got this problem that i am stuck in for the last 3 days , please HELP! ERROR : Fatal error: Uncaught exception 'PropelException' with message 'Unable to open PDO connection [wrapped: SQLSTATE[28000] [1045] Access denied for user 'www-data'@'localhost' (using password: NO)]' in /usr/share/ php/propel/Propel.php:610 Stack trace: #0 -- RUNTIME-CONF.XML : mysql 2 mysql://rob:[EMAIL PROTECTED]/pool -- BUILD.PROPERTIES : propel.project = pool propel.database = mysql propel.database.url = mysql://rob:[EMAIL PROTECTED]/pool #propel.database.user = rob #propel.database.password = dashizza --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] cant autoloading a task from a plugin with sf1.2
hello with sf1.2, a task declared in a plugin is not autoloaded. (blablaTask.class.php under myPlugin/lib/task). When copying this file under the lib/task directory I can access to this task. Is there any change in sf1.2 about autoloading or plugin structure ? thanks Olivier -- Olivier Mansour [EMAIL PROTECTED] http://www.glagla.org --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Symfony Forms
are you usingthe CRUD generator? i think the default output is verbose which means it doesnt just use 'echo $form' it actually writes out the view like My Label So if this is the case youll have to manually go in and change all these. You can always generate the the shorter form with an option... check the help for generate:crud. Atif Khan wrote: > I am using propel Integration for my forms. > > Where and how can I change the labels in the configure function > > I tried > > $this->widgetSchema->setLabel('lname', 'Last Name'); > > but it does not reflect on the page. > > Thank you > Atif > > > -- Ant Cunningham Graphic Designer | Web Developer Vector Based Design --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Symfony Forms
er propel:generate-crud. Ant Cunningham wrote: > are you usingthe CRUD generator? i think the default output is verbose > which means it doesnt just use 'echo $form' it actually writes out the > view like My Label > > So if this is the case youll have to manually go in and change all > these. You can always generate the the shorter form with an option... > check the help for generate:crud. > > > Atif Khan wrote: >> I am using propel Integration for my forms. >> >> Where and how can I change the labels in the configure function >> >> I tried >> >> $this->widgetSchema->setLabel('lname', 'Last Name'); >> >> but it does not reflect on the page. >> >> Thank you >> Atif >> > > -- Ant Cunningham Graphic Designer | Web Developer Vector Based Design --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Symfony Forms
I am using propel Integration for my forms. Where and how can I change the labels in the configure function I tried $this->widgetSchema->setLabel('lname', 'Last Name'); but it does not reflect on the page. Thank you Atif --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: [symfony-users]
> Try to execute "symfony cc" Thanks, this solve the problem Ing. Reynier Pérez Mira Grupo de Soporte al Desarrollo - Dirección Técnica IP --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: [symfony-users]
Try to execute "symfony cc" On Thu, Sep 25, 2008 at 1:57 PM, Reynier Perez Mira <[EMAIL PROTECTED]> wrote: > > Hi: > I'm developing a new Project with Symfony 1.1.x and I want to use the new > Form Framework. When I build the project I generated also the model using > propel:build-model and then the respective forms using propel:build-forms. > Then I have this method: > > public function executeAdicionarAutor($request) { >if (sfRequest::POST == $this->getRequest()->getMethod()) { >$autor = new Autores(); >$autor->setNombreAutor($request->getParameter('nombre')); >$autor->save(); >$this->redirect('@listar_autores'); >} else { >$this->formulario_autores = new AutoresForm(); >return sfView::SUCCESS; >} > } > > When I try to access to > http://gestion.local/backend_dev.php/geslicsoft/AdicionarAutor Symfony show > me this error: > > Fatal error: Class 'AutoresForm' not found in > D:\Development\WWW\gestion.local\apps\backend\modules\geslicsoft\actions\actions.class.php > on line 61 > > I check that this class exists and it exists in /lib/form directory.¿What's > wrong here? ¿I miss something? ¿Can any send me a functional sample to see > how it Works and also understand how the new form Framework work? > > Cheers and thanks in advance > Ing. Reynier Pérez Mira > Grupo de Soporte al Desarrollo - Dirección Técnica IP > > > > > -- Visit my website: http://onlinesid.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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users]
Hi: I'm developing a new Project with Symfony 1.1.x and I want to use the new Form Framework. When I build the project I generated also the model using propel:build-model and then the respective forms using propel:build-forms. Then I have this method: public function executeAdicionarAutor($request) { if (sfRequest::POST == $this->getRequest()->getMethod()) { $autor = new Autores(); $autor->setNombreAutor($request->getParameter('nombre')); $autor->save(); $this->redirect('@listar_autores'); } else { $this->formulario_autores = new AutoresForm(); return sfView::SUCCESS; } } When I try to access to http://gestion.local/backend_dev.php/geslicsoft/AdicionarAutor Symfony show me this error: Fatal error: Class 'AutoresForm' not found in D:\Development\WWW\gestion.local\apps\backend\modules\geslicsoft\actions\actions.class.php on line 61 I check that this class exists and it exists in /lib/form directory.¿What's wrong here? ¿I miss something? ¿Can any send me a functional sample to see how it Works and also understand how the new form Framework work? Cheers and thanks in advance Ing. Reynier Pérez Mira Grupo de Soporte al Desarrollo - Dirección Técnica IP --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: spawn process which outlives request, to avoid timeouts
> You can use the PHP shared memory message system. Wow, PHP never ceases to amaze me. Didn't know that there even are native functions for dealing with message queues, semaphores and shared memories! On Wed, Sep 24, 2008 at 10:57 PM, Jonathan Wage <[EMAIL PROTECTED]> wrote: > http://us2.php.net/manual/en/ref.sem.php > > You can use the PHP shared memory message system. It is not the best in the > world but it will do what you want. You can basically have a listener which > runs to process the messages and your frontend web application will add > messages to the queue. > > - Jon > > On Wed, Sep 24, 2008 at 3:43 PM, jukea <[EMAIL PROTECTED]> wrote: >> >> I read very quickly, but did you look into php's set_time_limit ? >> >> On Sep 24, 3:48 pm, Jack Bates <[EMAIL PROTECTED]> wrote: >> > I am using symfony to develop a web interface which runs certain jobs >> > (deploying sites to a shared host, updating deployed sites, etc.) >> > >> > The trouble is that these jobs can take up to 30 minutes to run, so I >> > am naturally encountering timeout problems, not to mention what >> > happens if the user quits the browser, or the HTTP connection closes. >> > >> > Currently I am using a simple symfony action which performs the job >> > and sends output to the browser when done. I think what I need to do, >> > is spawn a new process which outlives the web request. This will avoid >> > timeouts because the web request will complete almost immediately, but >> > the spawned process will continue to run the job up to 30 minutes. >> > Ideally, the spawned process would also update a database with the >> > status of the job as it runs. This would enable me to display progress >> > to the user, perhaps using Ajax to periodically poll the database, >> > even if the user quit the browser and then returned to my web >> > application. The web application could use the database to inform the >> > user how much of the job had been completed, and perhaps use the PID >> > to check that it was still running. >> > >> > Does anyone have any input? Is this a viable solution? Are there any >> > facilities for this in symfony? How do I spawn a process which >> > outlives the web request, but is able to communicate with subsequent >> > web requests using the database? >> > > > > -- > Jonathan H. Wage > Open Source Software Developer & Evangelist > http://www.jwage.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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: spawn process which outlives request, to avoid timeouts
http://us2.php.net/manual/en/ref.sem.php You can use the PHP shared memory message system. It is not the best in the world but it will do what you want. You can basically have a listener which runs to process the messages and your frontend web application will add messages to the queue. - Jon On Wed, Sep 24, 2008 at 3:43 PM, jukea <[EMAIL PROTECTED]> wrote: > > I read very quickly, but did you look into php's set_time_limit ? > > On Sep 24, 3:48 pm, Jack Bates <[EMAIL PROTECTED]> wrote: > > I am using symfony to develop a web interface which runs certain jobs > > (deploying sites to a shared host, updating deployed sites, etc.) > > > > The trouble is that these jobs can take up to 30 minutes to run, so I > > am naturally encountering timeout problems, not to mention what > > happens if the user quits the browser, or the HTTP connection closes. > > > > Currently I am using a simple symfony action which performs the job > > and sends output to the browser when done. I think what I need to do, > > is spawn a new process which outlives the web request. This will avoid > > timeouts because the web request will complete almost immediately, but > > the spawned process will continue to run the job up to 30 minutes. > > Ideally, the spawned process would also update a database with the > > status of the job as it runs. This would enable me to display progress > > to the user, perhaps using Ajax to periodically poll the database, > > even if the user quit the browser and then returned to my web > > application. The web application could use the database to inform the > > user how much of the job had been completed, and perhaps use the PID > > to check that it was still running. > > > > Does anyone have any input? Is this a viable solution? Are there any > > facilities for this in symfony? How do I spawn a process which > > outlives the web request, but is able to communicate with subsequent > > web requests using the database? > > > -- Jonathan H. Wage Open Source Software Developer & Evangelist http://www.jwage.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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: dbFinder problem
I think that is from a Propel ORM because I have none Doctrine plugin installed. I'm using the latest from SVN (maybe is not the latest because I update my plugin when you fix the PostgreSQL problem. I'm the ticket guy). What you mean with initialization line? This one: $this->pag = DbFinder::from('Autores')->paginate($request->getParameter('pag', 1), sfConfig::get('app_paginado')); Cheers and thanks Ing. Reynier Pérez Mira Grupo de Soporte al Desarrollo - Dirección Técnica IP > -Original Message- > From: symfony-users@googlegroups.com [mailto:[EMAIL PROTECTED] > On Behalf Of Francois Zaninotto > Sent: Wednesday, September 24, 2008 4:07 PM > To: symfony-users@googlegroups.com > Subject: [symfony-users] Re: dbFinder problem > > > Are you creating a finder object from a Propel class or from a > Doctrine class? Which version of the plugin are you using? Can you > paste the finder initialization line? > > François > > 2008/9/24 Reynier Perez Mira <[EMAIL PROTECTED]>: > > > > Hi every: > > Recently I start a new project with Symfony 1.1.2. After created all model > > classes > I'm trying to use dbFinder plugin but I get this error: > > > > Notice: Undefined variable: finder in > D:\Development\WWW\gestion.local\plugins\DbFinderPlugin\lib\DbFinder.php on > line > 171 > > > > Fatal error: Call to a member function paginate() on a non-object in > D:\Development\WWW\gestion.local\plugins\DbFinderPlugin\lib\DbFinder.php on > line > 390 > > > > Can any help me with this? > > PS: With Symfony 1.0.17 I not have this problem is only with Symfony 1.1.2 > > > > Cheers and thanks in advance > > Ing. Reynier Pérez Mira > > Grupo de Soporte al Desarrollo - Dirección Técnica IP > > > > > > > > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: spawn process which outlives request, to avoid timeouts
I read very quickly, but did you look into php's set_time_limit ? On Sep 24, 3:48 pm, Jack Bates <[EMAIL PROTECTED]> wrote: > I am using symfony to develop a web interface which runs certain jobs > (deploying sites to a shared host, updating deployed sites, etc.) > > The trouble is that these jobs can take up to 30 minutes to run, so I > am naturally encountering timeout problems, not to mention what > happens if the user quits the browser, or the HTTP connection closes. > > Currently I am using a simple symfony action which performs the job > and sends output to the browser when done. I think what I need to do, > is spawn a new process which outlives the web request. This will avoid > timeouts because the web request will complete almost immediately, but > the spawned process will continue to run the job up to 30 minutes. > Ideally, the spawned process would also update a database with the > status of the job as it runs. This would enable me to display progress > to the user, perhaps using Ajax to periodically poll the database, > even if the user quit the browser and then returned to my web > application. The web application could use the database to inform the > user how much of the job had been completed, and perhaps use the PID > to check that it was still running. > > Does anyone have any input? Is this a viable solution? Are there any > facilities for this in symfony? How do I spawn a process which > outlives the web request, but is able to communicate with subsequent > web requests using the database? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: dbFinder problem
Are you creating a finder object from a Propel class or from a Doctrine class? Which version of the plugin are you using? Can you paste the finder initialization line? François 2008/9/24 Reynier Perez Mira <[EMAIL PROTECTED]>: > > Hi every: > Recently I start a new project with Symfony 1.1.2. After created all model > classes I'm trying to use dbFinder plugin but I get this error: > > Notice: Undefined variable: finder in > D:\Development\WWW\gestion.local\plugins\DbFinderPlugin\lib\DbFinder.php on > line 171 > > Fatal error: Call to a member function paginate() on a non-object in > D:\Development\WWW\gestion.local\plugins\DbFinderPlugin\lib\DbFinder.php on > line 390 > > Can any help me with this? > PS: With Symfony 1.0.17 I not have this problem is only with Symfony 1.1.2 > > Cheers and thanks in advance > Ing. Reynier Pérez Mira > Grupo de Soporte al Desarrollo - Dirección Técnica IP > > > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] spawn process which outlives request, to avoid timeouts
I am using symfony to develop a web interface which runs certain jobs (deploying sites to a shared host, updating deployed sites, etc.) The trouble is that these jobs can take up to 30 minutes to run, so I am naturally encountering timeout problems, not to mention what happens if the user quits the browser, or the HTTP connection closes. Currently I am using a simple symfony action which performs the job and sends output to the browser when done. I think what I need to do, is spawn a new process which outlives the web request. This will avoid timeouts because the web request will complete almost immediately, but the spawned process will continue to run the job up to 30 minutes. Ideally, the spawned process would also update a database with the status of the job as it runs. This would enable me to display progress to the user, perhaps using Ajax to periodically poll the database, even if the user quit the browser and then returned to my web application. The web application could use the database to inform the user how much of the job had been completed, and perhaps use the PID to check that it was still running. Does anyone have any input? Is this a viable solution? Are there any facilities for this in symfony? How do I spawn a process which outlives the web request, but is able to communicate with subsequent web requests using the database? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] dbFinder problem
Hi every: Recently I start a new project with Symfony 1.1.2. After created all model classes I'm trying to use dbFinder plugin but I get this error: Notice: Undefined variable: finder in D:\Development\WWW\gestion.local\plugins\DbFinderPlugin\lib\DbFinder.php on line 171 Fatal error: Call to a member function paginate() on a non-object in D:\Development\WWW\gestion.local\plugins\DbFinderPlugin\lib\DbFinder.php on line 390 Can any help me with this? PS: With Symfony 1.0.17 I not have this problem is only with Symfony 1.1.2 Cheers and thanks in advance Ing. Reynier Pérez Mira Grupo de Soporte al Desarrollo - Dirección Técnica IP --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Tutorial: How migrate/change a website in producction
On Wed, Sep 24, 2008 at 7:04 PM, Thomas Rabaix <[EMAIL PROTECTED]> wrote: > with sfPropelMigrationLight you can do data manipulation. maybe you > should define what is "data manipulation" Split the data in your old "name" column into your brand new "first_name" and "last_name" columns. ++ -- Nicolas Perriault http://prendreuncafe.com - http://symfonians.net - http://sensiolabs.com Phone: +33 660 92 08 67 --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Tutorial: How migrate/change a website in producction
with sfPropelMigrationLight you can do data manipulation. maybe you should define what is "data manipulation" On Wed, Sep 24, 2008 at 6:42 PM, Puentes Diaz, Roberto G. ([EMAIL PROTECTED]) <[EMAIL PROTECTED]> wrote: > > On 24 sep, 04:59, "Nicolas Perriault" <[EMAIL PROTECTED]> wrote: > >> I used the sfPropelMigrationLight plugin for a while, it works nicely. >> But as far as when you alter your schema, you have also to migrate >> data, and sometimes this implies some processing and transformation, >> I've now ended up with doing migration tasks by hand. But I'd love >> having a "standard" way for doing this. > > Well, i lookinf for a solution, that no have do some dump of data or > DDBB. > When you have several MB in your table, can't dump to YML > > > -- Thomas Rabaix Internet Consultant --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Tutorial: How migrate/change a website in producction
On 24 sep, 04:59, "Nicolas Perriault" <[EMAIL PROTECTED]> wrote: > I used the sfPropelMigrationLight plugin for a while, it works nicely. > But as far as when you alter your schema, you have also to migrate > data, and sometimes this implies some processing and transformation, > I've now ended up with doing migration tasks by hand. But I'd love > having a "standard" way for doing this. Well, i lookinf for a solution, that no have do some dump of data or DDBB. When you have several MB in your table, can't dump to YML --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: sfEasyGMapPlugin: a new plugin to quickly add a Google Map to a symfony project
sweet.. Does it handle boundingBoxes? On Sep 22, 9:14 pm, Fabrice B <[EMAIL PROTECTED]> wrote: > Hello, > > following a conversation on the French symfony group, I worked to > release my pernosal Google Maps plugin. I tried to make it as simple > as possible while leaving most of the functionalities I have developed > for my personal needs. > > Here is the link:http://www.symfony-project.org/plugins/sfEasyGMapPlugin > > And here is a very quick implementation of > it:http://apps.facebook.com/my-friends-map/ > > A basic sample looks like this: > > In the action: > $this->gMap = new GMap(); > $this->gMap->addMarker(new GMapMarker(51.245475,6.821373)); > $this->gMap->addMarker(new GMapMarker(48.718952,2.219180)); > > In the template: > > include_map($gMap,array('width'=>'512px','height'=>'400px')); ?> > > > Other available functionalities: > - geocoding > - customising marker's icons > - a helper for a "search for a location" form > - an easy function for the famous Google Info bubble > - ability to add listeners on markers for google and dom > events"Google" et dom sur les markers > - hidden functionality: the static map, which means without > javascript, intended for mobile apps for example. But this last > functionality is not tested and documented. > > More infos available in the readme, where I wrote three samples. I > hope this helps anybody interested get started. > > There is already a sfGMapsPlugin, but it was not very practical since > its first purpose was to geocode addresses and save them in a table > using Doctrine, and it has not been updated since June 2007. Globally, > I think it did not satisfy the need for a quick and easy integration > of a Google Maps in a symfony project, that is why I released this > plugin. > > The first feedback I got was positive but I am looking forward to all > criticisms ! :-) > > Cheers, > > Fabrice Bernhard > fabriceb <> allomatch.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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: structure advices
For the backend, I'd definitely agree: one module per section. For the frontend, in my opinion, it depends on the complexity of the section. If there's likely to be more than one page per section, use a separate module. But if each section is just one page, I'd be tempted to keep it simple and just use one module with a different action/template for each. Hope that helps. Tom Bruno Reis wrote: > one module per section > > 2008/9/23 julien Bessiere <[EMAIL PROTECTED]>: >> Hi, >> I'm new to symfony and I wonder how I should structure the website I'm >> working on. >> I plan to have to apps: frontend and backend. >> But within this apps, should I create one module per section (i.e. home, >> publications, news, research, team) or create just one module and different >> templates for each? >> If I understood correctly, the structure of the backend is the same? >> >> thanks >> >> Julien >> > > > > -- Tom Haskins-Vaughan Temple Street Media: Design and Development for the Web [EMAIL PROTECTED] | www.templestreetmedia.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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] unit testing : propel objects combined with dbFinder
Because we are replacing/porting a huge amount of *Peer classes to use dbFinder power, we are creating unit tests to compare the results (to make sure we didn't make mistakes during the 'port'). Now for that i am using a snippet (found here : http://www.symfony-project.org/snippets/snippet/215) to tell the test environment to load initialise propel & autoload my classes. Untill there everything is fine. Now when debugging a wrong test, i tried to use the $dbfinder- >getLatestQuery(). This throws the exception : [RuntimeException] sfPropelFinder::getLatestQuery() only works when debug mode is enabled So apparently you need to make sure propel is being run in 'debug' mode. After looking around i found propel is using a wrapper to store the executed queries, that class goes by the name of sfDebugConnection. Now the question, how can i tell propel (when being loaded) or the environment to make sure propel debugging is enabled ? This is the code i am using in the beginning of the unit-test script (environment : dev, sf_debug = true). Note that the ->getLatestQuery method is using in frontend_dev.php where my environment is dev too. Any thoughts ? if ([EMAIL PROTECTED]('SF_APP')) { // Only load constants in not done before (group tests) define('SF_APP', 'frontend'); define('SF_ENVIRONMENT', 'dev'); define('SF_DEBUG', TRUE); } if ([EMAIL PROTECTED]('SF_ROOT_DIR')) { // Only load constants in not done before (group tests) include(dirname(__FILE__).'/../bootstrap/unit.php'); } sfCore::initSimpleAutoload(array(SF_ROOT_DIR.'/lib/model' // DB model classes ,SF_ROOT_DIR . '/apps/' . SF_APP . "/ lib" // Symfony itself ,$sf_symfony_lib_dir // Symfony itself ,dirname(__FILE__).'/../../lib' // Location class to be tested ,dirname(__FILE__).'/../../apps/ stageselect/lib' // Location myapp application ,SF_ROOT_DIR.'/plugins')); // Location plugins set_include_path($sf_symfony_lib_dir . '/vendor' . PATH_SEPARATOR . SF_ROOT_DIR . PATH_SEPARATOR . get_include_path()); /* * Start database connection and Symfony core */ sfCore::bootstrap($sf_symfony_lib_dir, $sf_symfony_data_dir); sfContext::getInstance(); Propel::setConfiguration(sfPropelDatabase::getConfiguration()); Propel::initialize(); --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: dbFinder : sum()
yes i did, it didn't work because i need to group it by that same column. I created a custom method that groups & returns the totals. Something like this public function sumUserTotal() { $result = $this->withColumn('SUM(dbTimeBlock.Total)', 'Total','Int')->groupBy('dbTimeBlock.ProfileId')->findOne(); return $result ? $result->getColumn('Total') : 0; } that works, tnx francois, it's a great plugin ! On Sep 23, 11:06 pm, "Francois Zaninotto" <[EMAIL PROTECTED] project.com> wrote: > Hi, > > Did you try: > > $article = sfPropelFinder::from('dbTimeBlock')-> > withColumn('sum(dbTimeBlock.Total)', 'total')-> > findOne(); > $sum = article->getColumn('total'); > > François > > 2008/9/23 DigitalBase <[EMAIL PROTECTED]>: > > > > > Hi, we are using propel addSelectColumn functionality to do a SUM on > > database level without object hydratation like this : > > > $c = new Criteria(); > > $c->addSelectColumn('sum('.dbTimeBlockPeer::TOTAL.') as total'); > > > $rs = dbTimeBlockPeer::doSelectRS($c); > > while ($rs->next()) { $total = $rs->getInt(1); } > > > return $total; > > > Now i am cleaning all my *Peer custom methods by dbFinder ones, but i > > haven't figured out howto do a sum() and returning a non-hydrated > > resultset. > > > would be nice to have something like : > > $article = sfPropelFinder::from('dbTimeBlock')-> > > getSum(dbTimeBlock.total) > > > Is there anyway i could do this with dbFinder ? > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Handling n:m relation with autho generated forms in symfony 1.1
Hello, I have two objects (tables) - categories and banners. Each category can have 2 baners - small and big. To assign a banner to a category I use third object (table) category_to_banner (category_id, banner_id, banner_type), where banner_type is use to distinguish big/small banners. I want to display one form for category creation/update but I'm not sure if it is possible with auto generated xxxForm classes. The problem is that this form have to work with 3 related tables (4 if I count category i18n table :-) ) I'm playing with CategoryForm::configure() { $bannerForm = new BannerForm(); $this->embedFormForEach('banners',$bannerForm, 2); // unset some fields } and In my form I have 2 fields for banners. Just for the tests I left them pure input fields. When I populate the fields the record in categories table is created, but there are no records in banners table (I use $form->save()). Which is correct way to use embed forms and if it is possible to meet my requirements with them ? May be I'll have to create manually this form and it's save() method. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: structure advices
one module per section 2008/9/23 julien Bessiere <[EMAIL PROTECTED]>: > Hi, > I'm new to symfony and I wonder how I should structure the website I'm > working on. > I plan to have to apps: frontend and backend. > But within this apps, should I create one module per section (i.e. home, > publications, news, research, team) or create just one module and different > templates for each? > If I understood correctly, the structure of the backend is the same? > > thanks > > Julien > > > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] sfSimpleBlog in 1.1
Francois, Carl Plugins page is reporting that sfSimpleBlog is supported by 1.1, but it's not. There are calls to quite a few depracated methods. Carl, I understand you have a patch[1] but this was never submitted. Any chance of sharing as would like to use this on a new project. Thanks Jamie [1] http://trac.symfony-project.org/ticket/3369 --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Tutorial: How migrate/change a website in producction
On Tue, Sep 23, 2008 at 9:02 PM, roberto german puentes diaz <[EMAIL PROTECTED]> wrote: > Since i start with symfony, and participate at forums, a lot of people are > asking a solution o how-to about "How migrate/change a website in > producction". It's mean, How can we change the model of our system, and it's > code, and it`s DDBB schema, without lose any data. I used the sfPropelMigrationLight plugin for a while, it works nicely. But as far as when you alter your schema, you have also to migrate data, and sometimes this implies some processing and transformation, I've now ended up with doing migration tasks by hand. But I'd love having a "standard" way for doing this. ++ -- Nicolas Perriault http://prendreuncafe.com - http://symfonians.net - http://sensiolabs.com Phone: +33 660 92 08 67 --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---