Re: [symfony-users] PHP Intl extension

2010-12-21 Thread Tim Nagel
Does mamp come with pecl? # pecl install intl ? t On Wed, Dec 22, 2010 at 13:51, Michael wrote: > One of the recent Symfony2 updates force to use the Intl extension.. I > have a MAMP 1.9.4 with PHP 5.3.2. Does anyone knows how to add this > extension? > > -- > If you want to report a vulnerab

[symfony-users] PHP Intl extension

2010-12-21 Thread Michael
One of the recent Symfony2 updates force to use the Intl extension.. I have a MAMP 1.9.4 with PHP 5.3.2. Does anyone knows how to add this extension? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because yo

[symfony-users] Re: .htaccess for SEO (force non www, remove index.php from url)

2010-12-21 Thread Aaron DM
This is what I use for symfony2: RewriteEngine On RewriteBase / RewriteRule ^index.php/(.*)?$ /$1 [L,R=301] RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)/$ $1 [L,R=301] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^

[symfony-users] [Symfony2] .htaccess for SEO (force non www, remove index.php from url)

2010-12-21 Thread gordonslondon
hi, the default symfony2 .htaccess is: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php [QSA,L] know i want two things: 1. redirect *www.example.com* to *example.com* (force non-www or vice-versa) 2. redirect *example.com/index.php/mypage.html

[symfony-users] Re: Factories : storage taking a really long time to load

2010-12-21 Thread ashton
I get this behavior without even being logged in (on the registration or login page). Specifically, it seem to be happening at least every other page load. This doesn't sound to me as if it's the same issue, but it is definitely happening in factories : storage (Factories : storage 1 171026

[symfony-users] Re: using partials in i18n forms and credentials for i18n forms

2010-12-21 Thread P-A Coipeault
Hi Daniel, Sorry for the long response time, i was on another project. Here is what i have in /apps/backend/events/actions/ actions.class.php : public function executeNew(sfWebRequest $request) { $object = $this->configuration->getForm(); $options = $this->getUser()->getGuardUser(

[symfony-users] Propel clob: NULL instead of empty string

2010-12-21 Thread Felix E. Klee
Excerpt from the schema file (Symfony 1.1): response: { type: clob, default: '' } The problem: When a record is created with "save()", the field "response" always has the value NULL. Calling "setResponse('')" before "save()" make no difference. Is this a known problem with Propel/Symfony? (ye

Re: [symfony-users] best way to hide form fields in front_end based on credentials?

2010-12-21 Thread Stan McFarland
Thanks to both of you. I have Gabor's method working but will consider yours also. Thanks again. -stan On Tue, Dec 21, 2010 at 9:39 AM, Yitzchak Schaffer < yitzchak.schaf...@gmx.com> wrote: > On 2010-12-20 10:27, Stan McFarland wrote: > >> I guess the subject says it all. :) Looking for su

Re: [symfony-users] How to run functional tests when using sfDoctrineGuard and many modules are set is_secure true?

2010-12-21 Thread Tom Haskins-Vaughan
Why don't you just log in as part of your test? On Tue, Dec 21, 2010 at 10:23 AM, dmitrypol wrote: > I implemented sfDoctrineGuardPlugin 5.0.0 and secured most of my > modules (some can be publicly accessible). However it really limits > my ability to run functional tests. > > I check that modu

[symfony-users] How to run functional tests when using sfDoctrineGuard and many modules are set is_secure true?

2010-12-21 Thread dmitrypol
I implemented sfDoctrineGuardPlugin 5.0.0 and secured most of my modules (some can be publicly accessible). However it really limits my ability to run functional tests. I check that module/action is secure by doing response isStatusCode(401). How do I bypass it to check that module/action displa

Re: [symfony-users] best way to hide form fields in front_end based on credentials?

2010-12-21 Thread Yitzchak Schaffer
On 2010-12-20 10:27, Stan McFarland wrote: I guess the subject says it all. :) Looking for suggestions as to how best to hide specific form fields (not in the backend generator, but the frontend) based on user credentials. Thanks! I've created subclasses of the form classes for this purpo

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

[symfony-users] Re: Special char in flash

2010-12-21 Thread Mourad Majdoub
Hi, I use the flash message so often and it works just fine with me, here is an example of how i use it First, set the flash message in the [action] : $this->getUser()->setFlash('success', "Fichier ajouté avec succès"); Then call it in a [view] : hasFlash('success')): ?>

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

2010-12-21 Thread Julien Fastré
Hi! I would like to know if it is now possible to implement custom mapping type in doctrine dbal, which hasn't be refreshed since August. I would like to add the possibility to use geographic types in a postgresql-postgis database. Thanks, Julien -- If you want to report a vulnerability issue

[symfony-users] Cross link Application in Functional test

2010-12-21 Thread Mourad Majdoub
Hello All, I have 2 applications in my sf project, admin and provider, In the login form (admin application) i have a link for a new provider registration (provider application) each time i run a functional test i get this error message : last request threw an uncaught exception sfConfigurationEx

[symfony-users] Special char in flash

2010-12-21 Thread HAUSa
How can I use a special char in a user flash message? When I use krantcafé (the é), the flash is empty and displays an empty error div. When I set Krantcafé, is see exactly that in my website. How can I just get the é character? I use the UTF-8 charset -- If you want to report a vulnerability i