[symfony-users] Re: Conditional forward404 performance

2009-06-24 Thread Fabian Lange
Hello, Yes PHP will process the whole instruction, because it needs to gather all information before making the method call. You need to split this yourself if you have expensive calculations in the second argument. if ( $action-getUser()-getProviderId() != $action-reservProvider-getProviderId()

[symfony-users] How to handle async. background-tasks initiated by the frontend..

2009-06-24 Thread Christian Weyand
Hello everyone, we've built a feature where we need to perform a bunch of external operations (reading rss-feeds) when a user triggers a certain action. This is an asynchronus process, so the user has not to be bugged while we import/parse the data - and it might take some time until all feeds

[symfony-users] Shopping Cart Plugin - 1.2 - Doctrine

2009-06-24 Thread Duendon
Hi all, Does anyone know if you can use the Shopping Cart plugin, available for Symfony 1.2, with Doctrine - and how to do this? Cheers, Duendon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group.

[symfony-users] Admin generator: the model class does not exist?

2009-06-24 Thread Gustavo
Hi, I have a symfony project with two applications: core and manager. They share a simple model with 8 tables, one of which is called im_client. This table maps to two classes called Client and ClientPeer. I'm trying to use the admin generator to build a simple admin inside manager for this

[symfony-users] Re: mime type detection

2009-06-24 Thread Juampy72
Hi Joshi, I have not installed fileinfo on Ubuntu but these instalation instructions should help you through: http://pecl.php.net/package/Fileinfo Cheers, Juan On Jun 23, 2:31 pm, Johannes Heinen johannes.hei...@googlemail.com wrote: Hi Juan, I think i'll follow your advice, i actually

[symfony-users] Re: mime type detection

2009-06-24 Thread Jonathan Wage
Forgive me if someone already suggested this but you should look at the code built in to symfony. lib/validator/sfValidatorFile.class.php It has some nice code for guessing mime types several different ways. Including fileinfo, guessing from binary info, extension, etc. - Jon On Wed, Jun 24,

[symfony-users] Re: custom filter with admin generator

2009-06-24 Thread Gabriel D
Well i did this to add a text search for a foreign key column: in apps/backend/modules/postulanteOferta/config/generator.yml list: table_method: retrievePendientesList filter: display: [postulante] in /lib/filter/doctrine/PostulanteOfertaFormFilter.class.php class

[symfony-users] Re: Conditional forward404 performance

2009-06-24 Thread Steve the Canuck
Thanks. Yes it looks like I'll want to refactor this stuff. I use this code on almost every call. On Jun 24, 4:41 am, Fabian Lange fabian.la...@symfony-project.com wrote: Hello, Yes PHP will process the whole instruction, because it needs to gather all information before making the method

[symfony-users] Re: mime type detection

2009-06-24 Thread Johannes Heinen
Hi Jon, sure i had already taken a look at the file validator and borrowed some inspiration from there *cough* ;) - to not to use the word theft. And indeed, most interesting for me was this little system call for guessing the mime type from its binary, this was the only approach i did not know

[symfony-users] Re: Image Upload safety help

2009-06-24 Thread kevinkevin
oh yes, I do remember that about the session sharring. We had to do something like that before, but I didn't work on it so I will have to look at it. I think they ended up sharing a cookie or something to improve security. Thanks for the reminder tip. K- On Jun 23, 11:33 pm, Johannes Heinen

[symfony-users] Re: How to handle async. background-tasks initiated by the frontend..

2009-06-24 Thread Stefan Koopmanschap
Hi Christian, The best option for this would be some kind of jobqueue system. There are several options for this, which might or might not fit your solution: There is an (old) plugin that I personally have no experience with but might fit your needs which is the sfJobQueuePlugin[1]. The plugin

[symfony-users] Re: Shopping Cart Plugin - 1.2 - Doctrine

2009-06-24 Thread Stefan Koopmanschap
Hi, A quick check in the sourcecode ( http://trac.symfony-project.org/browser/plugins/sfShoppingCartPlugin/lib/sfShoppingCart.class.php, for instance from line 338) reveals hardcoded Propel code, however if I understand the code correctly (I have never used this plugin so far) this code (the

[symfony-users] Customizing sfGuardAuth signin

2009-06-24 Thread justin_davis
Hey ya'll - I'm trying to extend the sfGuardAuth signin action, and am having trouble. What I want to do is log the number of times a user has logged in since registering. I've added a column to the user's profile called sess_ct for logging this number. Right now, I've got this set up like

[symfony-users] Re: Shopping Cart Plugin - 1.2 - Doctrine

2009-06-24 Thread Sergey Osipov
Hello Stefan, If you don't mind I'll pay your attention to the fact that the plugin seems to be developed for Symfony 1.0 So I believe Duendon also asked about the Symfony versions compatibility regarding this plugin... Sergey Wednesday, June 24, 2009, 11:14:26 PM, you wrote: Hi, A quick

[symfony-users] GUAU! eclipse galileo. PDT2.1

2009-06-24 Thread roberto german puentes diaz
http://www.eclipse.org/pdt/release-notes/pdt2_1.php increible -- Cr. Puentes Diaz MP 10.12726.9 Córdoba - Argentina www.puentesdiaz.com.ar/blog/ www.puentesdiaz.com.ar/blog/novedades www.puentesdiaz.com.ar/blog/curriculum-vitae Linux User n° 441474 Ubuntu/Symfony/Eclipse Rocks!

[symfony-users] Re: GUAU! eclipse galileo. PDT2.1

2009-06-24 Thread Marius Rugan
i see they've finally fixed code assist @var problem. 257481 normal g...@zend.com Code Assist Code Assist dropdown does not populate the data types of PHP Doc ( @var) except the fact that eclipse+PDT it's a memory eating hog when developing up from a medium sized project and trying to remote

[symfony-users] Handling embedded forms that are embedded

2009-06-24 Thread juro
Hi, I have a (simplified) model Template: columns: id: [ integer, primary, autoincrement ] name: [ varchar(40) ] relations: Exercises: class: Exercise local: id foreign: template_id type: many foreignAlias: Exercises Exercise: columns: id: [

[symfony-users] Re: Status of PayPal plugin(s)

2009-06-24 Thread Marijn
On Jun 19, 7:43 am, Antoine Leclercq antoine.lecle...@gmail.com wrote: Hi back, Alright, I'm back to Beirut and ready for real stuff. Symfony Live conferences were awesome and there were lots of nice level talks. @Marijn : Nice approach. We'll definitely go for wider solution in order to

[symfony-users] Can a form post to a component ?

2009-06-24 Thread Patrick Fong
Hi all, I've done a bit of searching but have not been able to dig up any information. Does anyone know if it is possible for form post data to be handled by a component rather than an action ? I have quite a few component forms in my app that are using ajax to update and it would be great

[symfony-users] Re: Customizing sfGuardAuth signin

2009-06-24 Thread Nickolas Daskalou
Does the [parent::executeSignin($request)] line redirect maybe? This would mean no code after it would get executed. 2009/6/25 justin_davis jdavis1...@gmail.com Hey ya'll - I'm trying to extend the sfGuardAuth signin action, and am having trouble. What I want to do is log the number of

[symfony-users] Re: Can a form post to a component ?

2009-06-24 Thread Sid Bachtiar
As far as I know, the answer is no. You have to use action for that, but the action can call components, so you can still reuse your components. On Thu, Jun 25, 2009 at 12:51 PM, Patrick Fongpatr...@ddns.com.au wrote: Hi all, I've done a bit of searching but have not been able to dig up any