Re: [symfony-users] Re: return view as pdf.

2010-10-24 Thread Gareth McCumskey
You do not need to run php code inside EOF. Just generate HTML into the variable like you do normally with php: $html = ""; $html .= ""; .. foreach ($array as $key=>$value) { $html .= $value; } etc. 2010/10/22 José Regalado > > > On Oct 22, 4:31 pm, Gareth McCumskey wrote: > > http://ww

Re: [symfony-users] perform global logic check in admin rather than in each action

2010-10-24 Thread Gareth McCumskey
In addition, when an import has started set a session variable that the preExecute checks for. If the session variable is set, redirect to page with message that an import is busy. If the session variable is unset, continue with import. Once an import finished unset the session variable. On Mon, O

[symfony-users] SFPropelPager

2010-10-24 Thread Parijat Kalia
Hey guys, running into a cheesy error with sf propel pager... as we know... we can carry out pagination as follows: $pager = new SFPropelPager('Articles', 5); My pagination is fine, what's bugging me is the 2nd argument of SFPropelPager, which is the amount of data that can be seen across a sing

Re: [symfony-users] Re: Symfony2 Security

2010-10-24 Thread Fabien Potencier
On 10/24/10 9:00 PM, Michael wrote: another issue i noticed, when calling "/login_check" or even "/logout" it will only run the FormAuthenticationListener even handler if they are relative.. in this case "/user/logout". maybe when trying to match the request path check special links The listene

Re: [symfony-users] perform global logic check in admin rather than in each action

2010-10-24 Thread Daniel Lohse
Are those all admin-generated modules? If so, you can specify the base class to use. Just create a new class (myActions or so) and specify this base class in all generator.yml files. This base class must inherit from sfActions. You can then provide your own preExecute method and do the logic che

[symfony-users] perform global logic check in admin rather than in each action

2010-10-24 Thread Joshua
I have an admin application with various modules set up. In one of the modules a user can schedule an "import" can often take a considerable amount of time to complete. While the import is running, no changes should be made to the database. I'm looking for a solution to lock down the admin while t

[symfony-users] Re: Symfony2 Security

2010-10-24 Thread Michael
another issue i noticed, when calling "/login_check" or even "/logout" it will only run the FormAuthenticationListener even handler if they are relative.. in this case "/user/logout". maybe when trying to match the request path check special links -- If you want to report a vulnerability issue on

[symfony-users] Re: regarding symfony 1.4

2010-10-24 Thread Richtermeister
Hey Madhur, - what gabriel said, perfect description. I just wanted to add that the whole process is usually very smooth can can be done within an hour. The only manual update I had to do after the upgrade was to rework use of the flash variable, as it was moved from the action to the user.. but s

Re: [symfony-users] doctrine query and not in (select ...) doesnt work

2010-10-24 Thread Stéphane
Perhaps you should add an alias in the subquery for the table ? Regards, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Sun, Oct 24, 2010 at 4:33 PM, axel at wrote: > hello, > > I need the follwing query: >

[symfony-users] doctrine query and not in (select ...) doesnt work

2010-10-24 Thread axel at
hello, I need the follwing query: -> select * from person p where ... and (p.personid not in (select personid form person2building...) where person2building is an m:n relation connecting person and building table via primary keys the following doctrine query $q = Doctrine_Query::create()

Re: [symfony-users] Re: symfony sans base de donnée - symfony without database

2010-10-24 Thread Jérémie
Alors, je ne suis pas sûr de bien comprendre ta requête, mais je ne vois pas ce qui t'empêche d'écrire toi même dans ces fichiers. > l'option sans database dans settings existe bien, mais empèche > simplement l'utilisation d'une base de donnée, mais comment faire pour > lui dire d'utiliser des fi

[symfony-users] Re: regarding symfony 1.4

2010-10-24 Thread pghoratiu
You can migrate only till Symfony 1.3, Symfony 1.4 has a lot of backwards compatibility code removed so your application probably will not work. The procedure is to migrate step by step to 1.1, 1.2, 1.3 and check what the migration script tells you on each stage. If you want to go directly to 1.4 y

[symfony-users] Re: symfony sans base de donnée - s ymfony without database

2010-10-24 Thread pmo
En fait, mon problème est de lire et d'écrire des fichiers dans des fichiers de configuration. J'ai donc l'impression que symfony n'est pas du tout fait pour faire ca. l'option sans database dans settings existe bien, mais empèche simplement l'utilisation d'une base de donnée, mais comment faire p

Re: [symfony-users] Re: Remove column through schema.yml (Doctrine)

2010-10-24 Thread Thomas Ohms
Hi Raphael, thanks for the link. Interesting presentation, but nothing new and I'm afraid no help as there isn't discussed removing columns through schema.yml. :( Bye, Thomas 2010/10/24 Raphael Schumacher > This presentation could be of help to you: > > http://www.slideshare.net/denderello/sym

[symfony-users] Re: Remove column through schema.yml (Doctrine)

2010-10-24 Thread Raphael Schumacher
This presentation could be of help to you: http://www.slideshare.net/denderello/symfony-live-2010-using-doctrine-migrations -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the