This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » plugins » General plug-ins » A list plugin
A list plugin [message #102219] Thu, 08 July 2010 20:54 Go to next message
mrotta  is currently offline mrotta
Messages: 83
Registered: June 2007
Location: Alsace, France
Member
I try to build a plugin how can generate and admin a list of record, with a link to a filter form to add filter, with sort, with pager.

The configuration will be like the form or filter plugin, with som widget.

The output will be a table html object.

The input will be a sfWebRequest object, and the configuration...

I can't use a object based on a sfForm, it's to more method I don't need. So I build my object, like sfForm. But I have au problem with the render method, the result is escaping...

If I take an object list expand the sfForm object, I don't have escaping.

Do you have any idea how sfForm tel to the system to don't escape the result of is method ? And, maybe, where symfony escape the result of a methode how is executed in the template !

Many thanks
Re: A list plugin [message #102232 is a reply to message #102219 ] Fri, 09 July 2010 08:58 Go to previous messageGo to next message
ezzatron  is currently offline ezzatron
Messages: 22
Registered: July 2008
Junior Member
Have a look at http://www.symfony-project.org/api/1_4/sfOutputEscaper#metho d_markclassassafe
Re: A list plugin [message #102246 is a reply to message #102219 ] Fri, 09 July 2010 11:38 Go to previous message
mrotta  is currently offline mrotta
Messages: 83
Registered: June 2007
Location: Alsace, France
Member
YES !!!

It's work.

And I find why it's work if I use a object extended sfForm, it's in the sfView object how it's indicated the sfForm object as a safe form.

Now, I cam test my list object.

Many thanks.
Michel
Previous Topic:mpStarRatin/mpFormChoiceRating Plugin
Next Topic:[SOLVED]Problems with sfDoctrineApplyPlugin
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software