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
Hi all, I'm working on a simple form so my user can update his firstname, lastname, email and password informations, here is was I've done so far : useFields(array( 'first_name', 'last_name', 'email_address', )); $ws = $this->widgetSchema; $vs = $this->validat

[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
Hi all, I'd like the "webmaster" of my application to be able to set the value of some config parameters, typically "comments_moderation : true / false". It would be awesome if I could use it throught sfConfig class, anyway of doing that? I was about to create a "parameters" database, but I'd l

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
None of this worked, and I really don't get why even my var_dump() is escaped, it never happened before :/ With : getTitle()); echo $page->getContent(ESC_RAW); die(); ?> I can see my HTML is properly unescaped, somehow my view is re-escaped, is it possible to deactivate that? oO Le 11 mars 2

[symfony-users] Unescaping HTML content

2010-03-11 Thread 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 : getContent(); // ?> The HTML tags are escaped, which is good but I don't want Symfony to escape this one. Here is what I tried : getTitle()); echo

[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
Hi there, I'm heavily working w/ Doctrine NestedSet behavior. I have a tree I'd like to render in a complex way. Let say I have a path for my selected node : node1 > node2 > node3 I'd like to render it so I can display : node 1 sibling 1 node 1 sibling 2 node 1 sibling 3 node 1 node

[symfony-users] Symfony migrations

2010-02-01 Thread Romain Pouclet
Hi all, I am currently working on a Symfony application which is now in production. I still have to work on it so I have to set up some migrations but I must admit I'm completely lost here. I found a publication about setting up Doctrine Migrations (http://www.denderello.com/publications/guide

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 ok your DB connection? This is a commo

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

2010-01-28 Thread Romain Pouclet
Hi all, I'm having a really strange issue w/ my project, I can't build anything using doctrine:build task... This works just fine if I'm running it from my local working-copy : ./symfony doctrine:build --all --env=prod if I run it from the production server, I have this error : "No yml schema

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

2010-01-27 Thread Romain Pouclet
Hi all, I'm working on a quiz module in my Symfony application, so I have a NoeQuizParticipationForm which is supposed to include all my questions subforms. Thus, I have a NoeQuizParticipationAnswerForm class which handles the user's answer to each question, in this class I only have one sfWidg