Re: [symfony-users] Auto-filling caches

2011-02-10 Thread Benoit Montuelle
Hi, I would make it using a task which uses sfBrowser on the ajax urls, eventually using DB queries to generate them. If you use html cache it should do the job. The only thing is to run the task with the good env argument so it generates cache for 'prod'. Now if you use sfViewCacheManager, it

RE: [symfony-users] Re: IE8 and isXmlHttpRequest

2010-09-01 Thread Benoit Montuelle
I think most javascript frameworks add this header to the request automatically, I don't know if its done using plain javascript. I once had this issue using mootools but it was a bug in our JS code overwriting all http header instead of adding the needed one, and not a symfony bug. Regards

RE: [symfony-users] mobile site strategy

2010-09-01 Thread Benoit Montuelle
I've done it by adding specific layout, templates and stylesheet to the existing app. You can trigger events in your project configuration upon user agent to change templates and specific configuration. The strategy to use another app depends wether your mobile app should have the same

RE: [symfony-users] Application Desktop

2010-08-20 Thread Benoit Montuelle
You could achieve this with various commercial solutions, like those quoted by Jochem. Others exists but as far as I know none for free or opensource. Another option is to go with a redistribuale VM (appliance) or create a custom ubuntu bootable cd that start servers and browser... Good luck

RE: [symfony-users] APPs vs Modules/Actions: Pro's and Con's????

2010-08-18 Thread Benoit Montuelle
Hi, If you have to share functionnality accross multiple apps / customers / access the best way imho is to put everithing in plugins. As in symfony 1.4 the application is required to access plugins, you can use 3 kinds of plugins : - Application plugins : direct port from the current app. It

RE: [symfony-users] L18N helper not extracting strings in forms !

2010-08-09 Thread Benoit Montuelle
Hi, It seems to search to __ calls only in template/partials. You can add them manually in xliff file, as long as you keep IDs incremented. Regards, Benoit -Original Message- From: Tristan tristan.bessou...@gmail.com Sent: lundi 9 août 2010 19:49 To: symfony users

Re: [symfony-users] not escaping some html code in a template

2010-05-26 Thread Benoit Montuelle
Hello, What i've done to keep escaping globally enabled but allow html rendering in one specific part if using getRawValue() method from sfOutputEscaper class, in the template /partial juste like this : echo $message-getRawValue()-getText() I don't how it manages to keep doctrine (in my

Re: [symfony-users] MVC vs module in Symfony

2010-05-18 Thread Benoit Montuelle
Hi, Sorry I've never seen such a diagram. There is an UML picture of symfony imternals. A module covers view and controller tiers in mvc, and yes you can define filters and forms on each module, or overload the generated ones, just pût them in module/lib folders. To disable filters in an

Re: [symfony-users] about webservices

2010-04-07 Thread Benoit Montuelle
In your case it's a good to use web services to abstract database model B as you know it'll be modified soon. Where I disagree is putting all on the same SF project, you should separate your app in 2 parts : - The main project, embedding A database models and acting as web service consumer

Re: [symfony-users] Why i can not retrieve a constant from app.yml ?

2010-03-30 Thread Benoit Montuelle
Hi, Configuration files use an arborescent model, Say you have a app.yml like this all: sf_doctrineguard_plugin: form:sfGuardFormSigninByEmail You should be able to retrieve the value using $class = sfConfig::get('app_sf_doctrineguard_plugin_form'); All you have to do is

Re: [symfony-users] What is the difference of Module and ModuleTable?

2010-03-24 Thread Benoit Montuelle
Hi, In your example, user class is a Doctrine_Record descendant, so it's a row of the DB table. Saving and deleting individual records are done within this class. UserTable extends from Doctrine_Table and serve to execute queries, typically to return user instances. Mass operations,

Re: [symfony-users] Re: Saving some data during insert, update, and deleting object?

2010-03-22 Thread Benoit Montuelle
Look at doctrine event system. It implement pseudo event methods (pre/postSave, preDelete, postHydrate ,etc) in Doctrine_Record class, you can easily override them, they are call at right time to modify values on object Regards, Benoit Le 22 mars 2010 à 12:56, verox pawel.rz...@gmail.com

Re: [symfony-users] UML diagram of Symfony

2010-02-12 Thread Benoit Montuelle
Hi, I found this http://trac.symfony-project.org/attachment/wiki/WikiStart/symfony_uml.zip . It has 1 year old, so I think it is 1.0 or 1.2 framework. 2010/2/12 Maxim Tsepkov azrael@gmail.com Does anyone have any sort of UML diagram of Symfony internals, interfaces, etc. It would be

Re: [symfony-users] actAs Timestampable requiring created_at in update

2010-01-20 Thread Benoit Montuelle
It's perfectly normal. These 2 field added by actAsTimestampable Behavior are not to be editable by users. You should remove them in your form class configure() method : unset($this['created_at']); unset($this['updated_at']); Hope this helps Regards, Benoit Le 20 janv. 2010 à 06:09,

Re: [symfony-users] Open an Excel file

2010-01-15 Thread Benoit Montuelle
Hi, I think there may be at least 2 solutions : 1st) - Make for form so user can upload one or more file - Modify that file in php, this point may be though, as php excel writers have generally limited support. You can try something like this http://pear.php.net/package/Spreadsheet_Excel_Writer

[symfony-users] SfForm embed different forms with the same model behind

2010-01-08 Thread Benoit Montuelle
Hi list, I am working with symfony 1.4 to build a simple registration form, I got 2 models for this part : Registration and Person, which works with standalone generated modules. The registration model has 2 one to one relations with person for recording 2 contact information (respectively named

[symfony-users] Re: SfForm embed different forms with the same model behind

2010-01-08 Thread Benoit Montuelle
2010/1/8 Benoit Montuelle benoit.montue...@gmail.com Hi list, I am working with symfony 1.4 to build a simple registration form, I got 2 models for this part : Registration and Person, which works with standalone generated modules. The registration model has 2 one to one relations

Re: [symfony-users] OT: Create PHPCod comments automatically

2009-12-17 Thread Benoit Montuelle
Hello, Eclipse with PDT plugin does this too, what I do is writing first the empty method with only its arguments and above its declaration type /** + RETURN it will fill phpdoc with arguments and types. You can also define empty class templates prefilled with phpdoc empty bloc on top of it

Re: [symfony-users] Symfony developer per hour salary

2009-12-14 Thread Benoit Montuelle
This is true, but depends on context and client. For instance here in France, for a contract employee it may be around 20€ per hour, once charges and taxes deducted. A freelancer should charge at least twice to cover taxes, so almost 50USD. Le 14 déc. 2009 à 15:21, Eno symb...@gmail.com a