[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 t

[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 wrote: > Hey guys... was just wondering if anyone has created a simple > navigation plugin for symfony? > > -- > If you want to report a vulnerability issue on symfony, ple

[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 i

[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: 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 wrote: > Hi symfony community! > > I have searched on several posts related to

[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: 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 d

[symfony-users] Re: question about cache

2010-03-29 Thread Antoine S.
t include >   _show.php > > I need to change some design concepts and use normal cache. > > Regards, > Michal > > > > > cheers > > Massimiliano > > > On 28 Mar, 22:42, Micha³ Piotrowski wrote: > >> 2010/3/28 Antoine S. : > > >> >

[symfony-users] Re: question about cache

2010-03-28 Thread Antoine S.
Hi, You can refine the cache (cache.yml) at any level : application, module, action, component, partial see the doc On Mar 29, 8:27 am, Michał Piotrowski wrote: > Hi, > > Is it possible to do not cache an action in symfony? > > I've got such situation - some pages contains a different content f

[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 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 take to adjust

[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." wrote: > Hi, > > I am using symfony 1.4 latest release. > > All the url have ? at the end. > > I am using in the template : >

[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 : 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 it to security at symfony-project.com You

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

2010-03-04 Thread Antoine S.
What's the problem with accessing helpers in the form method? > > Thx > > On 4 Mrz., 03:05, "Antoine S." wrote: > > > it should be : > > use_helper('IDontKnowTheName'); > > > or in settings.yml : > >     standard_helpers:       [Par

[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." 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. > inclu

[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 abou

[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] 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, fo

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

2009-12-02 Thread Antoine S.
s only for table columns > skipping adding widgets for relations. I suppose that is because of the > missing "refClass" in my schema.yml ? > > Thanx > Haris > > Antoine S. wrote: > > Hi > > You don't need to define in the generator.yml the type dou

[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-us...@googlegroups.co

[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)" wrote: > Antoine S. wrote: > > I used a lot with propel the poss

[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 possi

[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 wrote: > Hi, I'm using the sfguard plugin in my application. > My problem is that af

[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 doc

[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 wrote: > Hello, > > I'm a bit lost here as I try to create a form manual

[symfony-users] admin generator

2009-11-18 Thread Antoine S.
Hi, Does someone have a way to find all the possible options of the admin generator ? like : ~, _, =, display, fields, help, date_format .. etc to use all the possibilities before using component, partial or form. It seems that with symfony 1.3/1.4 there is not the same option than the previous v

[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 __g

[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 doublecli