[symfony-users] Re: Unhappy: sending mails with layout

2010-08-19 Thread Antoine S.
Hi, I quiet like to use the dispatcher to send email. The listener will build the email. For the layout, I only use partial -renderPartial(), that can act as a layout because you can include other partial/component in a partial. Maybe with sfView or sfPHPView there is a way to render a complete

[symfony-users] Two caches, two cache manager ?

2010-08-18 Thread Antoine S.
Hi Does anyone have an experience to have two different cache on a same application ? Maybe one cache manager able to store in two different cache (sfCache) ? or two cache manager ? I am trying to have a normal cache by default, and a second cache when the client has javascript activated. (in

[symfony-users] Re: Raw SQL queries using Doctrine

2010-04-22 Thread Antoine S.
Hi, that's what I use: public function executeQuery($sql, $conn = null) { if( is_null($conn) ) { $conn = Doctrine_Manager::connection(); } try { $result = $conn-execute($sql); } catch( Exception $e ) { throw new Exception( $e-getMessage() );

[symfony-users] Re: AJAX with symfony 1.4

2010-04-22 Thread Antoine S.
Hi, That's what I do : First make it work without ajax and use partial in your template. Example : action: executeMyForm() template: myFormSuccess().php // what you don't want to be refreshed in your ajax call with a partial: _form.php // the piece of html you actually want to refresh then use

[symfony-users] Re: navigation plugin

2010-04-22 Thread Antoine S.
Hi sfUnobstrusiveWidgetPlugin There is a menu created from a yml files with credential and route On Apr 21, 8:06 pm, Slavka richard@gmail.com wrote: Hey guys... was just wondering if anyone has created a simple navigation plugin for symfony? -- If you want to report a vulnerability

[symfony-users] Re: How to create object if value has not match in database when using sfWidgetFormJQueryAutocompleter?

2010-03-31 Thread Antoine S.
Hi, in fact you don't need a validator anymore :P or maybe just for the type, but not for the choices. and then you can add the object in updateObject(), and it will be created in save() On Apr 1, 5:33 am, J_Wesker j_chave...@hotmail.com wrote: Hi symfony community! I have searched on

[symfony-users] Re: OO conceptual advice

2010-03-30 Thread Antoine S.
Hi, Cool Daniel, I am happy that you confirm this choice. For multi promotion, the weight is a good idea. I was thinking of a config file, to say if a promotion are combinable with the other (matrix). But in fact a matrix with weight would be perfect.. 1. First you need to store the cart in the

[symfony-users] Re: question about cache

2010-03-29 Thread Antoine S.
, Michal cheers Massimiliano On 28 Mar, 22:42, Micha³ Piotrowski mkkp...@gmail.com wrote: 2010/3/28 Antoine S. antoine.spodobal...@gmail.com: Hi, You can refine the cache (cache.yml) at any level : application, module, action, component, partial see the doc Can you point

[symfony-users] Re: OO conceptual advice

2010-03-29 Thread Antoine S.
Hi, I am currently developing a promotion/voucher/discount system too. First, I have to calculate this in the shopping cart and not in the order. Even if the shopping cart is a reflect of a future order, for me they are distinct. I have many parameters in the shopping cart too like the delivery

[symfony-users] Re: Custom Error Page Settings Not Working

2010-03-22 Thread Antoine S.
Hi, It's in settings.yml On Mar 23, 5:40 am, DarrenMr mrdla...@gmail.com wrote: I have this in my config.yml file: all:   .actions:     error_404_module: dashboard     error_404_action: notFound However, even after I have cleared my cache it does not use that file. How long does it

[symfony-users] all the url's have ? at the end

2010-03-09 Thread Antoine S.
Hi, I am using symfony 1.4 latest release. All the url have ? at the end. I am using in the template : ?php echo link_to('mylink', 'myroute'); ? Is there a new way (or best practise) to use link_to and url_for ? Thanks -- If you want to report a vulnerability issue on symfony, please send

[symfony-users] Re: all the url's have ? at the end

2010-03-09 Thread Antoine S.
sorry it seems to be a firefox issue on local. If there is a best practise, I am still keen to know .. On Mar 10, 11:26 am, Antoine S. antoine.spodobal...@gmail.com wrote: Hi, I am using symfony 1.4 latest release. All the url have ? at the end. I am using in the template : ?php echo

[symfony-users] Re: sfJqueryReloaded Plugin in Symfony 1.4

2010-03-04 Thread Antoine S.
helpers in the form method? Thx On 4 Mrz., 03:05, Antoine S. antoine.spodobal...@gmail.com wrote: it should be : use_helper('IDontKnowTheName'); or in settings.yml :     standard_helpers:       [Partial, Cache, I18N, IDontKnowTheName] to be able to access from a template. You should

[symfony-users] Re: sfJqueryReloaded Plugin in Symfony 1.4

2010-03-03 Thread Antoine S.
it should be : use_helper('IDontKnowTheName'); or in settings.yml : standard_helpers: [Partial, Cache, I18N, IDontKnowTheName] to be able to access from a template. You should not access from a form. (If you have too .. you could use sfLoader::loadHelpers() to load the helper) On Mar

[symfony-users] Re: include javascript ajax

2010-02-23 Thread Antoine S.
livequery is probably the best choice for public website On Feb 22, 1:14 pm, Antoine S. antoine.spodobal...@gmail.com wrote: Hi, I was wondering waht is the best way to include javascript with or without ajax. In a normal layout, there is an include of the javascripts file

[symfony-users] include javascript ajax

2010-02-21 Thread Antoine S.
Hi, I was wondering waht is the best way to include javascript with or without ajax. In a normal layout, there is an include of the javascripts file. include_javascript() But I dont want to include them again in the ajax layout. I use often a single js file with livequery. But I am wondering

[symfony-users] Re: Doctrine Actas plugin

2009-12-03 Thread Antoine S.
So, I wanted to write a plugin DoctrineActAsSomething. The existing plugins don't generate classes (or from the schema.yml) so my template extends Doctrine_Record_Generator. The code in my previous message works and will generate the base class (etc), but in the project NOT in the plugin. The

[symfony-users] Re: admin generator

2009-12-02 Thread Antoine S.
ok it s here http://www.symfony-project.org/reference/1_4/en/06-Admin-Generator it just that few functionality dont exist anyore -- 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] Re: doctrine_admin_double_list doesn't work in sf1.4?

2009-12-02 Thread Antoine S.
refClass in my schema.yml ? Thanx Haris Antoine S. wrote: Hi You don't need to define in the generator.yml the type doublelist. If you model is ok, the form will have a widget : tags_list (widget select many) example of schema.yml n:m to have a widget categories_list

[symfony-users] Doctrine Actas plugin

2009-12-02 Thread Antoine S.
hi, I am trying to write a plugin to make a table actas Commentable. so in class Doctrine_Commentable extends Doctrine_Record_Generator { } I create a table that contain the comments (ORIGINALTABLE_comment), so I have more than one table, because I have different commentable table (ex: blog,

[symfony-users] Re: doctrine

2009-12-01 Thread Antoine S.
Thank you, but I think it s not possible for the generated getter methods. I think they are just alias to the function _get($fieldName, $load = true); On Dec 2, 3:30 am, rooster (Russ) russmon...@gmail.com wrote: Antoine S. wrote: I used a lot with propel the possibilty to add a criteria

[symfony-users] doctrine

2009-11-30 Thread Antoine S.
I used a lot with propel the possibilty to add a criteria to a generated function. Example : a product has categories, it will generate : public function getProductCategories($criteria = null, $con = null) { } and then I could easily refined with a criteria. But with doctrine it seems not

[symfony-users] Re: doctrine_admin_double_list doesn't work in sf1.4?

2009-11-29 Thread Antoine S.
Hi You don't need to define in the generator.yml the type doublelist. If you model is ok, the form will have a widget : tags_list (widget select many) example of schema.yml n:m to have a widget categories_list in the ProductForm : Category: columns: id: type: integer(4) primary:

[symfony-users] Re: Can't get sfguard user on action.

2009-11-26 Thread Antoine S.
Hi, in sfGuardSecurityUser the function to get the sfGuardUser object is getGuardUser() so : if($this-getUser()-isAuthenticated()){ $this-getUser()-getGuardUser()-getId() } On Nov 27, 4:01 am, Rodrigo rsantel...@gmail.com wrote: Hi, I'm using the sfguard plugin in my application. My

[symfony-users] Re: Create form manually, but add csrf-token?

2009-11-18 Thread Antoine S.
Hi, if your customised form extends sfForm, it should not be a problem, and include the csrf, and valid it. Don't forget to display it in the template if you don't use 'echo $form' On Nov 10, 9:59 am, Sebastian Göttschkes sebastian.goettsch...@googlemail.com wrote: Hello, I'm a bit lost

[symfony-users] Re: unobtrusive JS

2009-11-18 Thread Antoine S.
sfUJS provides widget form, and it's cool. if you know how to use a widget, that's the same, with just a transformer javascript in the option. The transformer will change the render to something nicer, depends of which widget. You can then create your own widget, following the same way .. the

[symfony-users] Re: a menu for my project

2009-11-16 Thread Antoine S.
Hi, I use the sfUnobstrusiveWidgetPlugin. There is a config file : config/sfUoAdminMenu.yml with the routes of the menu and the credentials for each one. Once the plugin is installed : $this-widget = new sfUoWidgetAdminMenu(array( 'js_transformer' = 'drop_down' )); Antoine

[symfony-users] Re: form-Render() when embedding?

2009-11-16 Thread Antoine S.
Hi, I wrote a function that I use quiet often. It displays the php code to decompose a form. It might help with the embed form, the i18n and the hidden field : class myTools{ public static function getFormFields( $form ) { self::__getFormFields($form); } private static function