[symfony-users] [2.0] [Routing] Using the AnnotationGlogLoader routing loader

2011-05-06 Thread Florian
prefix: /b ``` The fact that I use an * in my resource and the type is annotation should resolve the glob pattern before parsing my controller classes. Unfortunatly it's not the case. Any thoughts ? Thanks, Florian. -- If you want to report a vulnerability issue on symfony, please send

[symfony-users] Please unsubscribe me from this group

2011-04-16 Thread Florian Kirchner
[Symfony-users] [symfony-devs] -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com 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] ACL - Problem

2011-03-11 Thread Florian Semm
hi, following situation: i have a area for user-registration. everyone has access to it. if the registration was correct, the user should edit his profile with the same forms. so what acl/role-hierarchy is necessary for it. after a successful registration the user has the role ROLE_CANDIDATE.

Re: [symfony-users] Re: User Authentication

2011-03-08 Thread Florian Semm
Am 08.03.2011 15:56, schrieb Donald: OK, I modified the security.yml file as follows: # app/config/security.yml security: access_denied_url: /error403 providers: entity: entity: { class: UserBundle:User, property: username } firewalls: main: form_login:

Re: [symfony-users] Re: Bundle HelloBundle does not contain any mapped entities.

2011-02-28 Thread Florian Semm
maybe it's a config-problem. Try this: doctrine: orm: mappings: HelloBundle: { type: yaml, dir: path/to/mapping/dir } The dir is relative to the bundle dir. Am 28.02.2011 18:14, schrieb oscar balladares: Do you have your entity mapped in

Re: [symfony-users] no user-token after login

2011-02-24 Thread Florian Semm
stores an anoymous-token again. Original-Nachricht Datum: Tue, 22 Feb 2011 17:06:28 +0100 Von: Christophe COEVOET s...@notk.org An: symfony-users@googlegroups.com Betreff: Re: [symfony-users] no user-token after login Le 22/02/2011 16:52, Florian Semm a écrit : hi, i

[symfony-users] Re: Getting configured DBAL connection outside controller

2011-01-15 Thread Florian
Christophe is right: define a new service and give him the DBAL service as a dependency. Then you can define this service as a security provider like this: providers: my_provider: id: my_service_id where my_service_id is the id of the service you defined in the DIC.

Re: [symfony-users] Re: Encoder error after login

2011-01-14 Thread Florian Semm
:         florian: { password: test, roles: ROLE_USER }   firewalls:     login: { pattern: /login, security: true, anonymous: true }     login_check: { pattern: /login_check, security: true, anonymous: true, form_login: true }     profiler: { pattern: /_profiler.*, security: true, anonymous: true

[symfony-users] Re: How to avoid breaking MVC separation while loading partial from controller.

2010-12-23 Thread Florian
Thats the way it should be done IMHO. You just should use the shortcut: return $this-renderPartial('myPartial', array('myVrialbles'= $val)); You could also use a full view rendering, by returning sfView::SUCCESS; (or wathever else) and then move your presentation in the fastActionSuccess.php

[symfony-users] Re: How to load a Doctrine 2 Custom Mapping

2010-12-21 Thread Florian
Are you talking about this ? http://www.doctrine-project.org/docs/orm/2.0/en/reference/basic-mapping.html#custom-mapping-types -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to

Re: [symfony-users] Re: inject a dependency in constructor at runtime

2010-12-12 Thread Florian
I'm answering to myself, but I found a way to handle this: http://docteurklein.posterous.com/36073492 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony

Re: [symfony-users] Re: inject a dependency in constructor at runtime

2010-12-08 Thread Florian
A Paginator is probably not an object you want to manage with the DIC. The DIC is good at managing global objects like a logger, the user (from the session), a database connection, ... all the objects for which you only need one instance. For everything else, the DIC is not the solution (like

[symfony-users] Re: Learning Symfony2 is difficult because...

2010-12-07 Thread Florian
Hi, Short answer, from my little experience on the framework: You're true, some bundles are outdated, due to the fact things are moving fast, and the documentation is impacted too. So a lot of old slides are showing some examples that simply doesn't work! You should always follow changes on

[symfony-users] Re: inject a dependency in constructor at runtime

2010-12-07 Thread Florian
? example: $class = $this-container-getParameter('ecommerce.paginator.class'); $adapterClass = $this-container- getParameter('ecommerce.paginator.adapter.class'); $adapter = new $adapterClass($query); new $class($adapter); Do you think it's a good idea? Thanks btw, Florian. On 7 déc, 09:19, Fabien

[symfony-users] [DI] inject a dependency in constructor at runtime

2010-12-06 Thread Florian
inject the Query object at runtime, like this ? $this-container-getPaginatorService($query); Thanks! Florian. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups

[symfony-users] Re: inject a dependency in constructor at runtime

2010-12-06 Thread Florian
Ok I should have reformulated my question: I know it's actually impossible to do that, but the goal of my question is: How to bypass the problem ? Do I have to modify the lib to work with setters injection ? On Dec 6, 8:59 pm, Florian sideral.undergro...@gmail.com wrote: Hi, simple question

[symfony-users] Re: Symfony2 and Translation

2010-11-17 Thread Florian
Yes there is. When a translation does not exist for a locale, the translator tries to find the translation for the language (fr when the locale is fr_FR for instance); if it also fails, it looks for a translation for the fallback locale. quote from

[symfony-users] Re: WkHtmlToPdf in Symfony

2010-11-17 Thread Florian
, Florian sideral.undergro...@gmail.com wrote: Hi, If you're talking of Symfony2, there is a bundle for that :http://symfony2bundles.org/knplabs/SnappyBundle It uses the Snappy php5 lib, which is a wrapper for wkhtml2pdf.http://github.com/knplabs/snappy On 19 oct, 09:03

[symfony-users] Re: Security: after login still not logged

2010-11-09 Thread Florian
Hi, I think you missed the third part of security config: the access_control list ( Authorization ) http://docs.symfony-reloaded.org/master/guides/security/index.html try adding this in your config: access_control: - { path: /admin/.*, role: ROLE_ADMIN } - { path: /.*, role:

[symfony-users] Re: Security: after login still not logged

2010-11-09 Thread Florian
It could come from an issue with the session read/write, plese see: http://groups.google.com/group/symfony-devs/msg/794ede4676fca362? On Nov 9, 5:15 pm, gordonslondon jules.boussek...@gmail.com wrote: Hi, After successfully login with the security component, i dump

[symfony-users] Re: sending email from task through CLI

2010-11-08 Thread Florian
One php.ini per environment ( apache/ CLI ) In some linux distros like Ubuntu or debian, each php.ini is a symbolic link which is pointing to the same file. On Nov 8, 9:46 am, hribo hribo...@gmail.com wrote: issue is solved. problem was that my php.ini settings of phpinfo() where different

[symfony-users] Re: sending email from task through CLI

2010-11-05 Thread Florian
It looks like the stream socket transport you're using doesn't exist. try with sslv3 or sslv2 encryption method: transport: class: Swift_SmtpTransport param: host: smtp.gmail.com port: 465 encryption: sslv3 username: x...@gmail.com

[symfony-users] Re: sending email from task through CLI

2010-11-05 Thread Florian
Another question: did you run phpinfo() function from the cli ? php -a phphinfo(); or php -r phpinfo(); On 5 nov, 14:09, Florian sideral.undergro...@gmail.com wrote: It looks like the stream socket transport you're using doesn't exist. try with sslv3 or sslv2 encryption method

[symfony-users] Re: WkHtmlToPdf in Symfony

2010-10-27 Thread Florian
you can pass extra parameters like this: $request-setParameter('id', 1); On 26 oct, 21:48, ming minga...@gmail.com wrote: On 26 Ott, 15:26, Florian sideral.undergro...@gmail.com wrote: In order to get the html result of the action execution, yoi can use another solution(, which

[symfony-users] Re: symfony or doctrine... or is it me?

2010-10-27 Thread Florian
Hi, You should enable the db logging and try the generated sql by hand. http://www.symfony-project.org/book/1_2/16-Application-Management-Tools On 27 oct, 14:40, erikms erik.stok...@gmail.com wrote: Hi all, I have an MS SQL database I want to access, and dutifully RTFM, installed pdo_dblib,

[symfony-users] Re: WkHtmlToPdf in Symfony

2010-10-26 Thread Florian
relative to the path to start from. ( see http://code.google.com/p/wkhtmltopdf/wiki/Usage: You need to run wkhtmltopdf in the directory above images. ) On 23 oct, 15:10, ming minga...@gmail.com wrote: On Oct 22, 9:29 am, Florian sideral.undergro...@gmail.com wrote: Rectification: $snappy = new

[symfony-users] Re: WkHtmlToPdf in Symfony

2010-10-26 Thread Florian
', 'action'); file_put_contents('/tmp/html.html', $html); $snappy = new SnappyPdf; $snappy-setExecutable('/usr/bin/wkhtml2pdf'); // or whatever else $snappy-save('/tmp/html.html', '/tmp/pdf.pdf'); Hope it works ! ( cause i didn't tested) On 26 oct, 15:20, Florian sideral.undergro...@gmail.com wrote

[symfony-users] Re: WkHtmlToPdf in Symfony

2010-10-22 Thread Florian
/src/SnappyMedia.php#L35 On Oct 22, 5:28 am, fxsymfony fari...@gmail.com wrote: Hi Florian, It works ok from the command line, for example if I type: wkhtmltopdf-i386http://google.comgoogle.pdf it does create the google.pdf file. On the other hand, that Snappy lib seems interesting, I don't

[symfony-users] Re: WkHtmlToPdf in Symfony

2010-10-22 Thread Florian
Rectification: $snappy = new SnappyPdf; $snappy-setExecutable('/usr/bin/wkhtml2pdf'); // or whatever else $snappy-save('http://google.fr', '/tmp/google.pdf'); On Oct 22, 9:26 am, Florian sideral.undergro...@gmail.com wrote: I think you should use Snappy, it seems better written than

Re: [symfony-users] Re: WkHtmlToPdf in Symfony

2010-10-21 Thread Florian
Hi, try your wkhtml2pdf from the command line first. Didn't used the lib before, so i'm not sure. but as i read the code, it seems to come from an error of the command line. Le 20/10/2010 14:03, fxsymfony a écrit : Hi Florian, Im using Symfony 1.4. Still having been able to get it to work

[symfony-users] Re: WkHtmlToPdf in Symfony

2010-10-19 Thread Florian
Hi, If you're talking of Symfony2, there is a bundle for that : http://symfony2bundles.org/knplabs/SnappyBundle It uses the Snappy php5 lib, which is a wrapper for wkhtml2pdf. http://github.com/knplabs/snappy On 19 oct, 09:03, fxsymfony fari...@gmail.com wrote: Has anyone used WkHtmlToPdf in

[symfony-users] Re: Credentials: is there any difference between [[ ]] and [] ?

2010-10-19 Thread Florian
check the docs : http://www.symfony-project.org/book/1_2/06-Inside-the-Controller-Layer#chapter_06_sub_complex_credentials As soon as you open a new [ bracket, the logic operator changes ( AND / OR ). You can then switch operator by doing: [[ admin, [editor, creator], supervisor, [[ tester,

[symfony-users] Re: DI factory

2010-10-19 Thread Florian
Hi, What is your problem ? On 18 oct, 06:24, Daniel khodyre...@gmail.com wrote: Hello, lady and gentlemans! I have some problems with configure this code: class Container extends sfServiceContainer { ... protected function getAclService() {     if (isset($this-shared['acl'])) return

[symfony-users] Re: Symfony2 Sandbox database collation

2010-09-14 Thread Florian
Hi, After reading the loadDbalConnection method of DoctrineExtension ( http://github.com/symfony/symfony/blob/master/src/Symfony/Bundle/DoctrineBundle/DependencyInjection/DoctrineExtension.php#L137 ) I think you could test something like this: doctrine.dbal: connections: default:

[symfony-users] Re: how to use short Document class name in find()?

2010-09-13 Thread Florian
hi! have a look in the cache/*container*.php and look at the getDoctrine_orm_*service methods. the Configuration class on EntityManager gives you a way to configure the namespaces used in a Dql query.

[symfony-users] Re: how to use short Document class name in find()?

2010-09-13 Thread Florian
sorry, with ODM it's DocumentManager On 13 sep, 08:11, Florian sideral.undergro...@gmail.com wrote: hi! have a look in the cache/*container*.php and look at the getDoctrine_orm_*service methods. the Configuration class on EntityManager gives you a way to configure the namespaces used in a Dql

[symfony-users] Re: Choosing the best JS toolkit plugin for RIA

2010-09-13 Thread Florian
hi for extjs, have a look at atollExt3Plugin On 10 sep, 16:09, Daniel Toffetti dto...@gmail.com wrote: Greg,     I've never heard of it and have to take a deeper look, but the idea of sending all the business logic to the client sounds weird to me, and besides we want to minimize the coding

[symfony-users] Re: Are the design of Symfony2 and Doctrine2 in right direction?

2010-09-13 Thread Florian
On 12 sep, 16:23, Fangzx fangzhoux...@gmail.com wrote: I play Symfony2 and Doctrine2 for two weeks, and I came from Java(5years) and Python/Django(3years). My questions: 1. Doctrine2  is so like Java Hibernate and is too heavy, I don't like that, for example, why not use pulic properties

Re: [symfony-users] [Symfony2] session_start() error in Functional tests

2010-09-03 Thread Florian
as there is no Session storage class yet for functional tests. Fabien -- Fabien Potencier Sensio CEO - symfony lead developer sensiolabs.com | symfony-project.org | fabien.potencier.org Tél: +33 1 40 99 80 80 On 9/2/10 9:57 PM, Florian Klein wrote: Bien sur, voici un lien du fichier sur github: http

[symfony-users] [Symfony2] session_start() error in Functional tests

2010-09-02 Thread Florian
Hi! I'm encoutering an error since an upgrade to the latest Symfony2. 1) Application\ECommerceBundle\Tests\Controller \ECommerceControllerTest::testIndex A session had already been started - ignoring session_start() /var/www/Symfony2-e-commerce/src/vendor/symfony/src/Symfony/Component/

Re: [symfony-users] [Symfony2] session_start() error in Functional tests

2010-09-02 Thread Florian Klein
/docteurklein/Symfony2-e-commerce/blob/master/src/Application/ECommerceBundle/Tests/Controller/ECommerceControllerTest.php Merci, Florian. 2010/9/2 Fabien Potencier fabien.potenc...@symfony-project.com Can you send me your test file? -- Fabien Potencier Sensio CEO - symfony lead developer

[symfony-users] Re: a good IDE for Symfony

2010-08-30 Thread Florian
Already listed two times, but anyway : phpstorm. Really good java based ide. They have a pre realease availa ble for free On 10 août, 18:05, Paulo Ribeiro ribeiro.pau...@googlemail.com wrote: Nobody mentioned. So here it goes http://www.jetbrains.com/phpstorm/ For me it's the best IDE

[symfony-users] Re: headers already sent

2010-08-25 Thread Florian
IMHO, this is not a HTML header problem but a HTTP headers problem. It happens when php tris to send http headers (via header() function ) after having sent some http body response! On 25 août, 12:57, Lutz lutz.p...@gmail.com wrote: This message generally occurs, when the webserver is asked to

[symfony-users] Re: My attempt of a security/form strategy

2010-08-06 Thread Florian
Use something else than the session_id to generate the CSRF token maybe ? Or increase the session timeout ;) what about functional tests with captcha ? On Aug 6, 7:57 am, mlu...@gmail.com mlu...@gmail.com wrote: Don't you really have an opinion about this? I'm sure you have ;-) On 4 Aug.,

[symfony-users] Re: My attempt of a security/form strategy

2010-08-06 Thread Florian
the way how the token is generated implemented in the symfony framework? I don't want to make any changes in the framework, because it leads to problems when updating the framework. Can I control this part? On 6 Aug., 10:30, Florian sideral.undergro...@gmail.com wrote: Use something else than

[symfony-users] Re: Problem with filters

2010-08-04 Thread florian périn
want to this filter to do? And what is does instead? ... look on the generated SQL query which is creaded by the filter. This is the way to go to find your mistake. On 3 srp, 13:16, florian périn poulet.va...@gmail.com wrote: I use symfony 1.4.5. //lib/filter/doctrine

[symfony-users] [Symfony 1.4 - Admin Generator] Problem with filters

2010-08-03 Thread florian périn
Hello, I wanted to change the type of my filters auto-generate with admin- generator, but when I did it, the filters didn't work anymore. For exemple, I change : //lib/filter/doctrine/BackendGammeFormFilter.class.php [...] 'nom' = new sfWidgetFormDoctrineChoice(array(

[symfony-users] Re: Problem with filters

2010-08-03 Thread florian périn
I use symfony 1.4.5. //lib/filter/doctrine/BackendgammeFormFilter.class.php 1 ?php 2 3 /** 4 * Gamme filter form backend class. 5 * 6 * @packagerefactor_metaux 7 * @subpackage filter 8 * @author Florian PÉRIN 9 * @versionSVN: $Id

[symfony-users] Re: Conditional based redirects

2010-07-23 Thread Florian
you've stored that in session. That should make the trick, no? Cheers, Florian. On 23 juil, 16:24, Daniel Kucharski dan...@inspiran.be wrote: Yes, that is indeed a possibility (it corresponds to the second choice I mentioned before).  I am still searching for something which is more sustainable

[symfony-users] Re: Unit tests fail with 'dubious' status

2010-07-22 Thread Florian
Hi! you normally can launch a test by doing : php test/unit/StoreTableTest.php By this way, you have the full output of your test script, even exceptions (dubious means script didn't ended as attended ( ie: fatal errors, uncaught exceptions, die(), ...). On 22 juil, 17:04, Lene Preuss

[symfony-users] Re: Plugin post install processing

2010-06-15 Thread Florian
Couldn't you use the plugins/yourPlugin/config/ yourPluginConfiguration.class.php ? try to connnect to the plugin.post_install event in the initialize method. I think it's faaar more clever than putting a task and then ask to launch it in the README file. On 14 juin, 16:34, Stéphane

[symfony-users] Re: How to show an object_action based on a specific condition (admin generator)?

2010-06-14 Thread Florian
Hi, read this http://www.symfony-project.org/more-with-symfony/1_4/en/02-Advanced-Routing Or http://www.symfony-project.org/reference/1_4/en/10-Routing You have an object option to define which method to use to retrieve your object! Hope it helps! On 14 juin, 00:49, Bruno Reis

[symfony-users] Re: CSS and Javascript paths

2010-06-01 Thread Florian
Hi! Try RewriteBase /appx In every .htaccess On 1 juin, 11:12, wueb webmaster@gmail.com wrote: I created multiple folders with an .htaccess defined for each one inside my web/ to the many apps i have. For example. http://localhost/app1(access app1)http://localhost/app2(access

[symfony-users] Re: error in symfony 2 sandbox on install

2010-05-21 Thread Florian
same problem, no solution... If you have found it, please tell me :) Florian. On 18 mai, 23:13, AigerVoid aanw...@gmail.com wrote: http://localhost/sandbox/web/check.php mandatory requirements is ok. but in...http://localhost/sandbox/web/index_dev.php/ Warning: DOMDocument

[symfony-users] Re: No release available for plugin atolExt3WidgetPlugin?

2010-05-20 Thread Florian
Hi, If you use plugin:install with -s=alpha ( or beta ) maybe... But I recommend you to use subversion and include it with svn:externals: svn propset svn:externals atolExt3WidgetPlugin http://svn.symfony-project.com/plugins/atolExt3WidgetPlugin; plugins Another way would to download the

[symfony-users] Re: Validating Forms with Dynamic Fields

2010-05-20 Thread Florian
Hi You can add use the allowExtraformFields method of sfForm On 20 mai, 17:42, FeelLlikeANut feellikea...@gmail.com wrote: In my form, I have a field called type_0, and I have a JavaScript button to Add another type, which copies the first field to make a new field called type_1, type_2,

[symfony-users] Re: any progress on ecommerce packages using Symfony?

2010-05-18 Thread Florian
Hi! You could have a look on sfShop. To my mind, it's the most finalized -extensible- e-commerce solution developped with sf 1.3 / Propel 1.4 There is port to Doctrine too. Please have a look to http://www.sfshop.net/ -- not finished at all -- http://propel.sfshop.net/--

[symfony-users] Re: symfony and doctrine migrations - who to believe?

2010-03-04 Thread Florian
calling doctrine:generate-migrations- diff, doctrine won't know what has changed and will do nothing. Hope it helps! Florian On 4 mar, 14:38, godbout guillaume.lecler...@gmail.com wrote: Hi guys. I want to use the symfony tasks for the doctrine migration but I can't find any consistent piece

[symfony-users] Re: How to draft a filter?

2010-03-02 Thread Florian
Hi, you can use the sfFormSchemaFormatter: http://www.symfony-project.org/api/1_4/sfForm#method_renderusing or even override the _filters.php template and use this syntax {{{ ?php echo $filter['name']-renderLabel() ? div class=error?php echo $filter['name']-renderError() ?/div div?php echo

[symfony-users] Re: Filtering a list from the action

2010-02-16 Thread Florian
('birthday/filtrar') ?  ?php echo $filter; ?   div?php echo submit_tag('Filter') ?/div /form Javi On Feb 15, 7:28 pm, Florian sideral.undergro...@gmail.com wrote: Hello, To my mind, you should use this method: {{{ $this-filter-setDefault('name', 'Peter'); }}} It's more correct

[symfony-users] Re: Filtering a list from the action

2010-02-15 Thread Florian
__construct($object = null, $options = array(), $CSRFSecret = null) here, the first argument has to be null OR a Doctrine ActiveRecord / Object. Hope it helps! /Florian On 15 fév, 16:49, NOOVEO - Christophe Brun c.b...@nooveo.fr wrote: I am working on the 'list' view of a module. The filtered

[symfony-users] Re: How to get raw data in a partial???

2010-02-09 Thread Florian
To get the REAL $sf_user in templates, just do a $sf_data- getRaw('sf_user'); On 8 fév, 23:55, Richtermeister nex...@gmail.com wrote: Just to your specific point, $sf_user is accessible from every template or partial anyways.. no need to pass it along. Daniel On Feb 8, 1:09 pm, Darren884

[symfony-users] Re: sfShop demo?

2010-02-09 Thread Florian
Hi, For a quick demo with fixtures: http://code.google.com/p/sfshop/source/browse/trunk/INSTALL There is some activity on this project, so maybe will you soon see a demo, but to my mind, no live site running with sfShop yet. I saw a post a few days ago saying it didn't work with sf 1.4 ...

[symfony-users] Re: Web shop based on symfony

2010-02-09 Thread Florian
Hi, please have a look here : http://groups.google.com/group/sfshop/browse_frm/thread/2c260d452f02c549 On 7 fév, 19:18, apm korja...@gmail.com wrote: Alexandru-Emil Lupu : Try sfshop... sent via htc magic Its for 1.2. After a day playing with sfShop, i cant switch it to 1.4. And found

[symfony-users] i18n fr_FR.dat file

2010-02-05 Thread Florian
you think of that ( french users ?) Thanks, Florian. PS: intersting post about this by a sf core member : http://blog.hma-info.de/2009/01/27/prado-i18n-an-open-source-tale-with-happy-end/ -- You received this message because you are subscribed to the Google Groups symfony users group. To post

[symfony-users] Re: i18n fr_FR.dat file

2010-02-05 Thread Florian
non-french users can answer too :) On 5 fév, 16:40, Florian sideral.undergro...@gmail.com wrote: Hi list, I have a doubt on the content of this file: in sf_lib_dir/i18n/data/fr_FR.dat there is no NegativePattern definition to handle a negative value in the format_currency function/helper

[symfony-users] Re: Images source problem

2010-02-04 Thread Florian
Hello, The most important thing in this story is : where are you pictures stored relative to your DocumentRoot? For apache, if you call: src=users/avatars/image.jpg from the url: http://localhost/frontend_dev.php/settings It will search your picture in DocumentRoot/settings/users/avatars/

[symfony-users] Re: Cache a component

2010-02-04 Thread Florian
If it is the SQL hit which gives you a problem, you could aslo store the result in an instance attribute of your component / model. like this: getResult() { if(!$this-result) { $this-result = your resultSet; } return $this-result; On 4 fév, 15:36, HAUSa

[symfony-users] Re: How to set trim default option on all widgets in a Form

2010-02-03 Thread Florian
By reading the discussion, I didn't noticed any DRY solution... this one could help you, even if it's -maybe- not the fastest, but the DRY'est : //for sf 1.3 in lib/form/BaseForm.class.php {{{ public function setup() { parent::setup(); foreach($this-getValidatorSchema()-getFields()

[symfony-users] Re: How to set trim default option on all widgets in a Form

2010-02-03 Thread Florian
By reading the discussion, I didn't noticed any DRY solution... this one could help you, even if it's -maybe- not the fastest, but the DRY'est : //for sf 1.3 in lib/form/BaseForm.class.php {{{ public function setup() { parent::setup(); foreach($this-getValidatorSchema()-getFields()

[symfony-users] Re: Redirecting to filtered admin page

2010-02-02 Thread Florian
Hi DC, When I want to do that, i need to disable the csrf check by configuring the filter form like this: // in the configure() method of your *FormFilter $this-disableLocalCSRFProtection(); Then, I use link_to: ?php echo link_to(format_number_choice('[0]Aucune commande|[1]Une seule

[symfony-users] Re: static Symfony content

2010-01-21 Thread Florian
Hello, you could hav a look at http://www.symfony-project.org/plugins/sfSuperCachePlugin/1_1_0?tab=plugin_readme On 20 jan, 19:40, Dennis gear...@sbcglobal.net wrote: Has anyone set up a .htaccess file to look for any static content matching the request ending in .html | .json | .xml combined

[symfony-users] Re: Same component different app?

2010-01-18 Thread Florian
Hi colin, You could also move your component logic into another class wich is in your sf_root_dir/lib and then make your components in both frontend and backend inherit from this class instead of sfComponent. Hope you understand what I try to explain ? Cheers, Florian On 16 jan, 19:10, Colin

[symfony-users] Re: Helpers and Widgets??

2010-01-07 Thread Florian
yes, it is exactly like you say : ?php echo $form['filed_name'] ? or ?php echo $form['filed_name']-renderLabel() ? ?php echo $form['filed_name']-renderError() ? ?php echo $form['filed_name']-render() ? You should read this : http://www.symfony-project.org/forms/1_2/en/ On 7 jan, 14:01, wueb

[symfony-users] Re: Debugging forms ..

2010-01-05 Thread Florian
hello, just for info, the only way i found to get all errors compiled is this : {{{ // in lib/form/doctrine/BaseFormDoctrine.class.php // or lib/form/BaseForm.class.php public function getErrors() { $errors = array(); foreach ($this as $form_field) {

[symfony-users] Re: sfWidgetFormJQueryDate option format is no longer supported in version 1.1.1?

2010-01-04 Thread Florian
Hi, I already had this problem and I decided to switch to the old Calendar widget system, which is more complete: http://pastebin.com/mfba353b On 4 jan, 13:17, axel at axel.zu...@gmail.com wrote: Hi Massimiliano, when I use your datepicker solution I still have the problem that the date

[symfony-users] Re: Extends BaseClass and parent methods SF 1.3

2009-12-02 Thread Florian
( and ::_get ) methods. If you want to overlaod the getWebUser method, use that: public function getWebUser($load=true) { $webUser = $this-get('web_user', $load); } Hope it helps! Florian On 2 déc, 10:19, ridcully ohnhei...@googlemail.com wrote: Forget to say that i'm using doctrine. On Dec 2

[symfony-users] Re: Extends BaseClass and parent methods SF 1.3

2009-12-02 Thread Florian
sorry, I didn't answered your question! I've used this technique with Doctrine1.2 (IHMO both sf 1.2.9 and 1.3 use doctrine 1.2 ) On 2 déc, 11:15, Florian sideral.undergro...@gmail.com wrote: Hi! For me, it's a problem of __magic : You maybe come from Propel's ORM ( who generates *real

[symfony-users] Re: plugins for reports

2009-11-03 Thread Florian
, by adding custom criterias to the WHERE clause. All the configuration of the report engine is done graphically with a propel module. If you're interested contact us on http://www.2le.net/contact , we could publish this as a public plugin. Florian. On Nov 2, 10:45 am, asi007 asim...@gmail.com wrote

[symfony-users] Re: Do you use more than one app?

2009-10-27 Thread Florian
Or use a plugin, no ? It's accessible from all apps. On Oct 26, 10:45 pm, Greg Maruszeczka gma...@gmail.com wrote: On Mon, 26 Oct 2009 19:26:55 -0200 Sid Ferreira sid@gmail.com wrote: Hi everyone! Well, there's a while that I always use only one app. Even in the admin I use routes

[symfony-users] Re: Raising events in a form

2009-10-06 Thread Florian
! Florian. On Oct 5, 10:37 am, rich_81 rich.s...@gmail.com wrote: Hi all, Hope you can help with this - it's got me stumped! Using Symfony 1.2.9, I have a situation where I'm raising an event via the dispatcher, during the saving of a form - I have multiple embedded forms which need to raise

[symfony-users] Re: Can be sfTestBrowser used in non-symfony project?

2009-09-15 Thread Florian
Hi, they are talking about coupling whith symfony here : http://www.symfony-project.org/installation/1_2/upgrade#Browser sfBrowserBase: The base browser class. It knows nothing about symfony, except classes from the symfony platform. Hope it helps ! On Sep 15, 10:38 am, Zap

[symfony-users] Re: sfGrid and Custom query

2009-09-08 Thread Florian
Hi, just my 2 cents, but the message says : [code] Class Idea has no method called getideaRelationId. [/code] Symfony complains a bout not being able to find a setter. - understandable. I believe i need make a setter, but where? in Idea? So you surely are talking about a Getter , no ?

[symfony-users] Re: Can anyone tell me how to use i18n helper in task - Thanks in advance

2009-06-23 Thread Florian
')); // sf 1.2 Hope it helps! Florian On Jun 22, 5:35 pm, xhe hexuf...@gmail.com wrote: I wan to use format_country function in my cron task, but unfortunately, the CLI throw exception as Fatal Error: call to undefined function format_country I know format_country should be used in template

[symfony-users] Re: Unable to propel:build-all on new project Symfony 1.2.1

2009-01-21 Thread florian geiges
when you encounter this on mac osx just make sure you have only one version of php (or just ln -s your php binary to /usr/bin) i guess something similar could have happened to you. hth, flo On Dec 19 2008, 10:02 pm, James thenet...@gmail.com wrote: I created a new project. Ran the command

[symfony-users] Re: sf 1.1 : where has passed sfResponse parameter holder ?

2008-09-09 Thread Florian
Hello, Have you found a way to make this work ? I maybe have a solution : replace with getRequest()-getParameterHolder()- has('isicsBreadcrumbs')) On 20 août, 01:35, Dustin Whittle [EMAIL PROTECTED] wrote: Nicolas, I have run into the same issue and my solution was to extend the view

[symfony-users] Re: plugin development idea

2008-09-04 Thread Florian
it ? ) Some plugins like sfAuthoredPlugin maybe approach from what I want to do. On 11 août, 19:14, Dmitry Nesteruk [EMAIL PROTECTED] wrote: can you describe this plugin? what is functionality this module provide? 2008/8/11 Florian [EMAIL PROTECTED] Hi community, I rewrite my post

[symfony-users] Re: url_for and array GET param

2008-01-09 Thread Florian
Thank you very much! I was searching for this query_string option... I couldn't find where it was documented. Do you know where are documented or listed helper options ? ( somewhere else than the book ? ) On 9 jan, 02:25, Stepan Koci [EMAIL PROTECTED] wrote: Hi Florian, try this solution

[symfony-users] url_for and array GET param

2008-01-08 Thread Florian
and sorry for my english. Florian. --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL

[symfony-users] Re: url_for and array GET param

2008-01-08 Thread Florian
. To answer your question, my goal is to save state of checkboxes in a search form. Maybe should I use one variable per checkbox, but the array syntax looks fine for me. On 8 jan, 10:05, Andy Signer [EMAIL PROTECTED] wrote: Hi Florian The problem is that you used three time the same named parameter

[symfony-users] Re: Javascript on another server?

2007-06-07 Thread Florian Klug
hi, On Thursday 07 June 2007 19:02, Eno wrote: Our javascript files live on another server (along with all of our images) and Im trying to integrate a rich text editor into our application. I don't think that's a symfony issue, because afaik browsers don't execute javascript from any