Re: [symfony-users] Re: which is the correct way to deliver binary content?

2011-05-31 Thread Romain
Hello, by the way, if anyone uses Nginx, there's nearly the same with X-Accel-redirect headers http://wiki.nginx.org/XSendfile Romain On Thu, May 26, 2011 at 7:08 PM, Bart van Wissen wrote: > On 11 mei, 11:24, David Buchmann wrote: > > hi, > > > > i have bin

Re: [symfony-users] render template inside template

2011-05-29 Thread Romain
Hello, On Sun, May 29, 2011 at 11:30 AM, mrok wrote: > Hi > > Is there any way to render twig template inside template? > I keep twig template code in DB (I need show something for customer > fast so it is a baypass) and now have a problem how render template > passed to template as variable (I

Re: [symfony-users] Non existent model 'Blogpost'

2010-08-24 Thread Romain Pouclet
Why exactly are you using Symfony 1.1 considering it's no longer maintained? 2010/8/24 tek123 : > Hi, > > I have just started symfony 1.1 but I have ran into this complete > blockade. I seem to be stuck on the create an application part on > here: > > http://www.symfony-project.org/tutorial/1_1/en

[symfony-users] Update password form

2010-04-13 Thread Romain Pouclet
?> Problem is,I want : - my user to HAVE to write his old password so I can check if it's valid before updating - my new_password and confirmation fields not to be required, so the user does not have to change his password every single time (this work w/ required = false) - my sfValidato

[symfony-users] Re: Use event dispatcher on asynchronous mode

2010-04-09 Thread romain godefroy
adapted from this about asynchronous http post : http://petewarden.typepad.com/searchbrowser/2008/06/how-to-post-an.html &$val) { if (is_array($val)) $val = implode(',', $val); $post_params[] = $key.'='.urlencode($val); } if($post_params) $post_string = implode('&',

[symfony-users] Re: How to implement a basic filter on frontend with Doctrine sf1.4??

2010-03-26 Thread romain godefroy
You need to add the form filter in your template : then modify your action: public function executeIndex(sfWebRequest $request) { $this->formFilter = new myModelFilter(); if($request->isMethod('post')) { $this->formFilter->bind($request->getParameter($this->formFi

[symfony-users] Month-year date form widget

2010-03-17 Thread Romain Pouclet
Hi All, I'd like to render a custom date widget, I don't need the day, I just want a month and a year, so here is what I do : $this->widgetSchema['date'] = new sfWidgetFormI18nDate(array( 'culture' => 'fr', 'format' => '%month%/%year%' )); I works fine, but to validate it, h

Re: [symfony-users] Re: Override some sfConfig params

2010-03-17 Thread Romain Pouclet
r 17, 3:05 am, Daniel Lohse wrote: >> Take a look at the >> csSettingsPlugin:http://www.symfony-project.org/plugins/csSettingsPlugin >> >> Regards, Daniel >> >> On 17.03.2010, at 09:58, Romain Pouclet wrote: >> >>> Hi all, >> >&g

[symfony-users] Override some sfConfig params

2010-03-17 Thread Romain Pouclet
;parameters" database, but I'd like to be sure it's the right way to do this :) Thanks ! Romain -- 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 Google Groups

Re: [symfony-users] Unescaping HTML content

2010-03-11 Thread Romain Pouclet
2010 à 16:59, Marc Weistroff a écrit : > It's because objects and variable are escaped before being passed to the view. > > Are you echoing your content inside a slot (or partial?) that might be > automatically or manually escaped after that? > > > > On Thu, Mar 11, 20

Re: [symfony-users] Unescaping HTML content

2010-03-11 Thread Romain Pouclet
_07_output_escaping > > Giorgio Mandolini > > 2010/3/11 Romain Pouclet > > > > Hi all, > > I have a "Page" model with a "content" property. This content contains HTML > > coming from the tinymce WYSIWYG editor, but when I do : > >

Re: [symfony-users] Re: Unescaping HTML content

2010-03-11 Thread Romain Pouclet
Le 11 mars 2010 à 15:30, Raphael Schumacher a écrit : > Have you verified (e.g. using your debugger) that the object's > classnames are in reality what you should expect in theory? http://up.r12t.fr/8c2b8c76.png Yep, It's "NOEPage" as it's supposed to be > - the escaping strategy for your appli

Re: [symfony-users] Re: Unescaping HTML content

2010-03-11 Thread Romain Pouclet
Le 11 mars 2010 à 15:05, Raphael Schumacher a écrit : > Hi Romain, how about >$page->getContent(ESC_RAW); > or also: >$page->getRawValue()->getContent(); > ? > > With $page you are actually talking to a > sfOutputEscaperObjectDecorator object, which hol

[symfony-users] Unescaping HTML content

2010-03-11 Thread Romain Pouclet
tum leo vitae odio rhoncus ac commodo orci sagittis. Ut pharetra neque id mauris tincidunt eu sodales felis sollicitudin. Mauris eu gravida nibh. Pellentesque eros risus, facilisis et interdum nec, fringilla a nisi. Fusce matti'... (length=1089) Is there anybody to explain it to me ? Than

[symfony-users] Re: problems with embedRelation with a self related m:n

2010-03-04 Thread romain godefroy
hi, Have you tried to defined the relation with type: many I don't know if it could change anything for you but it should be test ? On 3 mar, 20:56, axel at wrote: > I have a list of persons, and an m:n relation that relates one person > with several other persons: > > Person: >   columns: >    

[symfony-users] How to override the default "login" action w/ sfDoctrineGuard plugin?

2010-02-22 Thread Romain Pouclet
Hi all, I have an "admin" application which is secured (is_secure: true). I'd like to override its login action so I can set a specific layout and manually render the login form. Can you tell my how to do that? I started with something like this : http://groups.google.com/group/symfony-users?hl=

Re: [symfony-users] Fabien's Symfony 2 presentation now available as a video

2010-02-21 Thread Romain Pouclet
The video is private, is it normal? :x Le 22 févr. 2010 à 08:54, Ben Haines a écrit : > Sorry for the delay in getting this up. HD (720p) uploads to Vimeo.com > kept failing. So here is a lower resolution version. > > Enjoy and of course thanks to all Symfony devs and sflive2010 > organisers! >

Re: [symfony-users] Simple question...

2010-02-19 Thread Romain Pouclet
You could add a getStatus() method (or something like that) in your model class : public function getStatus() { return $this->isActive() ? 'Active' : 'Inactive'; } Le 19 févr. 2010 à 18:27, Samuel Morhaim a écrit : > If I have a field isActive and of course it returns 1 or 0 .. how can > I

Re: [symfony-users] Nested set rendering

2010-02-02 Thread Romain Pouclet
Thanks for your help, it works :) For those who are interested, here it is : http://gist.github.com/292543 Cheers ! Le 1 févr. 2010 à 16:57, Bernhard Schussek a écrit : > You could, for instance, write a recursive render helper: > > function render_nested_set(Doctrine_Collection $collection) >

[symfony-users] NestedSet doctrine behavior : hasChildren() and getChildren() disconnectedness

2010-02-02 Thread Romain Pouclet
Hi all, I'm using nested set doctrine behavior, and as I my previous issue I'm using a helper to render my tree, so here is how I use it : getLabel() ?> getNode()->hasChildren()) : ?> getNode()->getChildren()), sfOutputEscaper::unescape($path) ) ?> But today, I had a ver

Re: [symfony-users] Nested set rendering

2010-02-01 Thread Romain Pouclet
Problème is, I want my rendering to follow a path, as you can see in my "example". Anyway, a recursive render helper is a good start I guess! Maybe I should add a 'path' parameter helper to make something like : function render_nested_set(Doctrine_Collection $collection, array $path) { // ... }

[symfony-users] Nested set rendering

2010-02-01 Thread Romain Pouclet
a how I can simply do that? I tried to do something but it ended w/ multiple imbricated foreach and while... Thanks ! Romain -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroup

[symfony-users] Symfony migrations

2010-02-01 Thread Romain Pouclet
igration implies to drop an entire table? And finally, I heard about the "doctrine:generate-migrations-diff" task, this task will generate all the classes w/ the up/down methods? Thanks in advance for your answers, I'm kinda lost here oO Romain -- You received this message be

Re: [symfony-users] Can't build anything after project:deploy

2010-01-28 Thread Romain Pouclet
build-sql works fine insert-sql throws me an error : -bash-3.2$ php ./symfony doctrine:insert-sql >> doctrine created tables successfully

Re: [symfony-users] Can't build anything after project:deploy

2010-01-28 Thread Romain Pouclet
According to some tests, I don't have "/tmp" folder on this server, but this is where php is supposed to create tmp files, do you think this could come from there? The fact that php doesn't find this yml file ? Le 28 janv. 2010 à 18:21, Augusto Flavio a écrit : > I had a similar problem too wit

Re: [symfony-users] Can't build anything after project:deploy

2010-01-28 Thread Romain Pouclet
Hi, Sorry I'm using Symfony 1.4... My database access are correct because I can connect to my db server when I try a "mysql -u" Le 28 janv. 2010 à 17:57, Augusto Flavio a écrit : > Hi Romain, > > > Which version of symfony you are using. > > Is

[symfony-users] Can't build anything after project:deploy

2010-01-28 Thread Romain Pouclet
"No yml schema found in /doctrine_schema_87228.yml" But I don't know what or where this file is... Anybody knows how to fix this? Thanks ! Romain -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post

[symfony-users] How to render embedded forms properly ?

2010-01-27 Thread Romain Pouclet
NoeQuizParticipationAnswerForm... Is there anyway for me to reach my related NoeQuizParticipationAnswerForm form so I can use getObject()->getQuestion->getLabel() to display my question's label ? Thanks ! Romain -- You received this message because you are subscribed to the Goo

[symfony-users] Re: sfDynamics and sf1.4

2010-01-06 Thread Romain Dorgueil
0.9.6 should work fine with symfony 1.4 If not, please opena ticket on trackeet.net Thanks On 18 déc 2009, 19:42, "Fred Grott(shareme)" wrote: > Hello everyone, > > Excuse the briefness of this note.. > > For those of us using Sf 1.4.1 and the sfDrynamicsPlugin it appears > that changes were ma

Re: [symfony-users] Re: sfDynamics::load('jquery.SCRIPTNAME') not loading in the result div, after an ajax action

2009-12-14 Thread Romain Dorgueil
they should already be loaded when you call your AJAX >> action. >> >> -- >> > > -- > > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@g

[symfony-users] Re: sfDynamics::load('jquery.SCRIPTNAME') not loading in the result div, after an ajax action

2009-12-14 Thread Romain Dorgueil
Hi, can you open a ticket on sfDynamics bug tracker please ? I'm not really decided if this is a bug or if this is the intended behavior, but there should definately a way to do this. http://trackeet.net/projects/sf-dynamics-plugin/issues/new Romain On 2 déc, 21:30, artmajeur wrote:

[symfony-users] Re: Call For Information Re-organization [opinions needed]

2009-09-25 Thread Romain de Wolff
Comments is a good idea! Oh and do you know http://www.gotapi.com ? The symfony section allows you to browse the API quickly. On Fri, Sep 25, 2009 at 8:50 AM, Gareth McCumskey wrote: > I think taking a note from the php.net site (the PHP manual) is a good > idea. The search feature in the php.net

[symfony-users] Re: Call For Information Re-organization [opinions needed]

2009-09-24 Thread Romain de Wolff
s and can browse easily, switch language and version. Regards, Romain On Fri, Sep 25, 2009 at 8:38 AM, Fabien Potencier < fabien.potenc...@symfony-project.com> wrote: > > zeev, > > I can understand that we need to re-organize the documentation, so that > it is easier to find th

[symfony-users] Re: php 5.3

2009-09-23 Thread Romain de Wolff
There seems to be a config problem. But your phpmyadmin works you said... so that could be in Symfony's Project Config. Rom Le 23 sept. 2009 à 15:42, andrea cecchetto a écrit : > > i rechecked my phpinfo()... > and i found this: > Directive Local Value Master Value > pdo_mysql.cache_

[symfony-users] generator.yml and custom field

2009-09-23 Thread Romain de Wolff
same field "client_name" in the "form: display:" section underneath, I get a : 500 | Internal Server Error | InvalidArgumentException Widget "auteur_name" does not exist. Can anyone explain this to me? Thanks in advance, Romain --~--~-~--~~~--

[symfony-users] Re: php 5.3

2009-09-23 Thread Romain de Wolff
references2 > > Directive Local Value Master Value > pdo_mysql.cache_size 20002000 > pdo_mysql.default_socket no valueno value > > > 2009/9/23 Romain de Wolff : >> >> Try a phpinfo(), see if the PDO link with MySQL is enabled. &g

[symfony-users] Re: php 5.3

2009-09-23 Thread Romain de Wolff
Try a phpinfo(), see if the PDO link with MySQL is enabled. Le 23 sept. 2009 à 11:14, andrea cecchetto a écrit : > > Yes :) I enabled mysql.. phpmyadmin works well!! :) > > 2009/9/23 Romain de Wolff : >> >> Did you enable mysql? >> >> Le 23 sept. 20

[symfony-users] Re: php 5.3

2009-09-23 Thread Romain de Wolff
check that your MySQL is running and that the user and password works. Le 23 sept. 2009 à 11:06, andrea cecchetto a écrit : > > I'm sorry, but i think yesterday with "old" php my webapp works.. > today with the new php doesn't. > .. I use doctrine as ORM on mysql Server version: 5.1.38. > this d

[symfony-users] Re: php 5.3

2009-09-23 Thread Romain de Wolff
Did you enable mysql? Le 23 sept. 2009 à 10:41, andrea cecchetto a écrit : > > Hi guys, > Today on my archlinux, i upgraded php to the latest php 5.3, from php > 5.2.10. I went to my application and i get this error > > PDO Connection Error: SQLSTATE[HY000] [2002] Connection refused > > i didn't

[symfony-users] Re: autocomplete in symfony and doctrine

2009-09-23 Thread Romain de Wolff
end/ modules/clients/actions/actions.class.php), and watch out for the proper getResponse()->setContentType('application/json'). use Doctrine, and keep it MVC (put the query in the model). Check that you return using renderText and json_encode. And that's it! I'd be glad to help

[symfony-users] Re: autocomplete in symfony and doctrine

2009-09-22 Thread Romain de Wolff
Hello, I'm currently facing the same problem. Does anyone have a solution, an idea or even better, a solution to propose? Thanks, Romain On 11 sep, 00:38, Abraham wrote: > Hello folks, i'm trying to add an autocomplete field in a form, to do > that i've followed

[symfony-users] About TRAC - Please check for duplicate tickets before opening a new one

2009-02-25 Thread Romain Dorgueil
step for trac, but a big step for the community. -- Romain Dorgueil Symfony Developper --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email t

[symfony-users] Re: New Routing: sf_format

2008-12-15 Thread Romain
I think that if you specify the format in the routing parameter : csv_export: url: /toto.csv param: { module: foo, action: bar, sf_format: csv } Symfony will automatically remove the layout and the web debug. On Dec 15, 7:33 am, juro wrote: > Thank you to the both of you - works fine. >

[symfony-users] Question on the new form system (validation and cleaned values)

2008-07-03 Thread Romain
When a form is binded to some values, if the validation fail, all cleaned values are lost. Example : MyForm extends sfForm { public function setup() { $this->widgetSchema = new sfWidgetFormSchema(array( 'contract'=> sfWidgetFormSelect(array('choices' => new sfCallable($this, 'g

[symfony-users] Generated ids in the new form system

2008-07-03 Thread Romain
I'm working with the new form system, and I add some javascript to make it a little dynamic. (populating a select with ajax for example). I use jquery, so I have to know the id of each generated widget to add some extra params (listening on events, updating select boxes, ...). The problem is tha

[symfony-users] Re: [symfony-devs] http://www.symfony-project.org/ is down. again.

2008-05-02 Thread Romain Dorgueil
the designing work for you, just allows to write clean code, isolating the database model layer. And if a page is making 200 queries per request, without caching or even better, supercaching (see sfSuperCachePlugin)... Well then it won't scale to million users... -- -=( Romain Dorguei

[symfony-users] Re: CMS written in Symfony / Call for help

2008-01-11 Thread Romain
http://www.steercms-project.org/trac/steercms/ http://www.steercms-project.org/trac/steercms/wiki/License Yes !! Thanks a lot for sharing your CMS. On 11 jan, 14:17, "Francois Zaninotto" <[EMAIL PROTECTED] project.com> wrote: > Hi Piers, > > This looks very promising. Congratulations for you

[symfony-users] Re: Is there any way to terminate an action in preExecute?

2008-01-05 Thread Romain
maybe you could try "throw sfStopException" ? On Jan 4, 10:09 pm, Balaji Srinivasan <[EMAIL PROTECTED]> wrote: > That is possible. But I would have to do this check in all the > actions, which defeats the purpose of having a preExecute > Balaji > > On Jan 4, 2008, at 12:56 PM, Haris Zukanovic' wr

[symfony-users] Generating Dynamic Components

2007-11-29 Thread Romain
Hi all, I was planning to create a new generator like the admin generator, but for generating a frontend like a CMS. For example, a news system, an agenda, a blog, etc ... The backend administration of these ojects is generated perfectly by the admin generator. But in the frontend, we always need

[symfony-users] Re: Mail alert when error occur on prod env.

2007-08-23 Thread Romain
Hi, Maybe you can configure the redirect404 page on an action that send the mail ? On Aug 22, 6:55 pm, Nicolas CHARLOT <[EMAIL PROTECTED]> wrote: > Hi, > Sorry If it's already a posted question, but I haven't found something about > that. > I'm looking for a way to send email alert when an erro