[symfony-users] Re: SOT: Help with Doctrine query

2009-06-19 Thread Reynier Pérez Mira
Reynier Pérez Mira wrote: > Reynier Pérez Mira wrote: >> Hi every: >> I'm newbie using Doctrine and also DQL I only know basic SQL and a bit >> of Propel. I need to create a complex query with REST operation and also >> with some Joins. I read the Doctrine documentation but I can't build the >>

[symfony-users] Re: SOT: Help with Doctrine query

2009-06-19 Thread Reynier Pérez Mira
Reynier Pérez Mira wrote: > Hi every: > I'm newbie using Doctrine and also DQL I only know basic SQL and a bit > of Propel. I need to create a complex query with REST operation and also > with some Joins. I read the Doctrine documentation but I can't build the > query as the doc suggest. I do t

[symfony-users] SOT: Help with Doctrine query

2009-06-19 Thread Reynier Pérez Mira
Hi every: I'm newbie using Doctrine and also DQL I only know basic SQL and a bit of Propel. I need to create a complex query with REST operation and also with some Joins. I read the Doctrine documentation but I can't build the query as the doc suggest. I do this: $last1day = date('Y-m-d H:i:s'

[symfony-users] Re: Timing for Registering Routes in sf1.0

2009-06-19 Thread Richtermeister
Hi Eno, Symfony would differentiate those routes because they have a unique URL without wildcards. The literal route definition would be url: /category1 param: { module: categories, action: show, id: 1 } The issue with having category in the url is that this is not some ecommerce website with

[symfony-users] Re: 2009 Symfony Developers Survey Results

2009-06-19 Thread Sid Bachtiar
I was wrong, the tutorial for 1.2 is catching up and fast becoming the more visited one :) On Wed, Jun 17, 2009 at 11:38 AM, Sid Bachtiar wrote: > Interesting little stat to add > > I written two articles about implementing login using email for 1.0 > and 1.2 (all using sfGuardPlugin and Propel)

[symfony-users] Re: Timing for Registering Routes in sf1.0

2009-06-19 Thread Eno
On Fri, 19 Jun 2009, Richtermeister wrote: > The first > version is not interesting from an "aesthetics" standpoint - I don't > want those urls to start with /categories. So how would symfony differentiate the URLs with non-category URLs? I think /category/:name is actually clearer to the user

[symfony-users] Re: Switching off output escaping for an action?

2009-06-19 Thread Eno
On Jun 19, 3:56 pm, Eno wrote: > How does one programmatically switch off output escaping for an > action? For future Google searches, the answer is to use: sfConfig::set('sf_escaping_strategy', 'off'); in your action. -- --~--~-~--~~~---~--~~ You received t

[symfony-users] Re: Timing for Registering Routes in sf1.0

2009-06-19 Thread Richtermeister
Hi Guys, Thank you for the feedback, I appreciate it. I'm am indeed familiar with both solutions, however, I was looking to avoid doing things that way, for the obvious reasons that you have pointed out. The first version is not interesting from an "aesthetics" standpoint - I don't want those url

[symfony-users] sfDoctrineRouteCollection, compound PKs and admin-generator

2009-06-19 Thread Tom Haskins-Vaughan
Hi, This is an excerpt from my schema.yml: InternationalPresence: actAs: { Timestampable: ~ } columns: competitor_id: { type: integer, primary: true } iso_country_code: { type: string(2), primary: true } presence_type_id: { type: integer, primary: true } notes:

[symfony-users] Switching off output escaping for an action?

2009-06-19 Thread Eno
How does one programmatically switch off output escaping for an 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-users@googlegroups.com

[symfony-users] Re: Timing for Registering Routes in sf1.0

2009-06-19 Thread Campezzi
Hi Daniel, What Jacob said is true - you should use variables instead of adding each route manually. However, you're not limited to using the / categories/:name format; you can simply add a rule like /:name and have the url layout you want. You just need to worry about 2 things: 1. this rule wil

[symfony-users] Re: Timing for Registering Routes in sf1.0

2009-06-19 Thread Jacob Coby
I think you're approaching routing the wrong way. You should need to only register one route: /categories/:name and then in your categories controller attempt to find the category by name or forward404() if the category is not found. On Jun 19, 2009, at 2:00 PM, Richtermeister wrote: > >

[symfony-users] Timing for Registering Routes in sf1.0

2009-06-19 Thread Richtermeister
Hi all, there's one thing I'm always struggling with, and that is registering new routes dynamically in sf 1.0. For example, my current site has product categories, and I would like to add a new route for each category so that I get urls like /category1 /category2 etc. I know I can just do /cat

[symfony-users] Re: local layout inside main layout

2009-06-19 Thread Eno
On Jun 18, 12:34 am, dziobacz wrote: > ok - I know :D I have found somewhere that I must use global - see > below !! Of course, this is documented. http://www.symfony-project.org/book/1_2/07-Inside-the-View-Layer#chapter_07_sub_partials -- --~--~-~--~~~---~--~--

[symfony-users] Re: Validator for wysiwyg

2009-06-19 Thread Nicolas Perriault
On Fri, Jun 19, 2009 at 3:56 PM, gimler wrote: > i have a wysiwyg field with 3 allowed html elements so i want to check > if the given input has only this 3 elements and none not allowed > element You should give a look at http://htmlpurifier.org/, and maybe the sfXssSafePlugin plugin for that s

[symfony-users] Re: sf_data getRaw in partial

2009-06-19 Thread gimler
it works. thanks for your fast help ;) On 19 Jun., 17:10, Andrei Dziahel wrote: > hi. > > Can > $var->getRawValue()->get(6)->description > do the job? > > 2009/6/19 gimler > > > > > > > can i get a raw value in a partial with $sf_data? > > > sample code: > > > var is a doctrine collection > > >

[symfony-users] Re: sf_data getRaw in partial

2009-06-19 Thread Andrei Dziahel
hi. Can $var->getRawValue()->get(6)->description do the job? 2009/6/19 gimler > > can i get a raw value in a partial with $sf_data? > > sample code: > > var is a doctrine collection > > this will work in the template but not in the partial? > getRaw('var')->get(6)->description; ?> > > template

[symfony-users] sf_data getRaw in partial

2009-06-19 Thread gimler
can i get a raw value in a partial with $sf_data? sample code: var is a doctrine collection this will work in the template but not in the partial? getRaw('var')->get(6)->description; ?> template i get: partial i get:
    --~--~-~--~~~---~--~~ You received thi

[symfony-users] Re: Validator for wysiwyg

2009-06-19 Thread gimler
i have a wysiwyg field with 3 allowed html elements so i want to check if the given input has only this 3 elements and none not allowed element so bold italic underline ist allowed but when the given input has a script or other tag it must failed. Gimler On 19 Jun., 15:24, Jonathan Wage wrote:

[symfony-users] Re: Validator for wysiwyg

2009-06-19 Thread Jonathan Wage
What would it do? Validate the html? - Jon On Fri, Jun 19, 2009 at 8:20 AM, gimler wrote: > > has anybody a form validator for a wysiwyg widget for example tinymce > widget??? > > > -- Jonathan H. Wage (+1 415 992 5468) Open Source Software Developer & Evangelist sensiolabs.com | jwage.com |

[symfony-users] Validator for wysiwyg

2009-06-19 Thread gimler
has anybody a form validator for a wysiwyg widget for example tinymce widget??? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.co

[symfony-users] Re: Remove whitespace from the output

2009-06-19 Thread Gareth McCumskey
For one you actually do need whitespace between certain elements. For another, why would you need to remove all whitespace for a PHP script? It doesn't make unreadable and all it does is make any attempt at maintenance impossible. Being server side, having whitespace and PHP script file sizes do no

[symfony-users] Remove whitespace from the output

2009-06-19 Thread HiDDeN
Hello, I have my php files structured with spaces and tabs, but I would like to not show that space to the user. Is there any way to delete all whitespace automatically? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Go

[symfony-users] Re: How recursive can a partial be?

2009-06-19 Thread Thomas Rabaix
Partial is not always your good friend. It is very heavy to call partial, so if you want to do something recursive, use a helper function. On Fri, Jun 19, 2009 at 1:20 PM, Sid Bachtiar wrote: > > Hi, > > I'm thinking of calling partial recursively, anyone knows any > limitation to this? > > -- >

[symfony-users] How recursive can a partial be?

2009-06-19 Thread Sid Bachtiar
Hi, I'm thinking of calling partial recursively, anyone knows any limitation to this? -- Blue Horn Ltd - System Development http://bluehorn.co.nz --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" gro

[symfony-users] Re: Default values for widgets in admin-generated form

2009-06-19 Thread Thomas Rabaix
With sfFormDoctrine defaults values are always set from the related object : So in the configure you can update the related object only if the object is new. OR you can overwrite the updateDefaultsFromObject method. On Fri, Jun 19, 2009 at 12:12 AM, LevelX wrote: > > Have you tried to set the de

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

2009-06-19 Thread Simon Cast
Hi, This sounds very interesting. I think if it can tie in Amazon Payments along with other providers it would make Symfony a more attractive framework. The lack of a payments module I find is a detriment to quickly deploying pay-for apps. On that note, I think it is worthwhile to include both