[symfony-users] Talking about performance, clustering etc.

2009-05-14 Thread Frank Stelzer
Hello, I want to write an article about best practises for performance, clustering etc. in symfony. I think there isn't enough information out there, which is talking about these topics. You all know the official performance documentation page

[symfony-users] Re: Talking about performance, clustering etc.

2009-05-14 Thread Alexandru-Emil Lupu
HI! this thread might provide you some cool info http://groups.google.com/group/symfony-users/browse_thread/thread/853e0eaf964e1752?hl=en Alecs On Thu, May 14, 2009 at 10:10 AM, Frank Stelzer d...@bleedingmoon.de wrote: Hello, I want to write an article about best practises for performance,

[symfony-users] Re: Talking about performance, clustering etc.

2009-05-14 Thread pixelmeister
Here are a view things fit to your planned article: - Move routinCache to memcache! This is a often overlooked thing but higly improves performance. - Browsercaching. Allow caching of css and js, how to handle eTags efficiently - Usage of

[symfony-users] Re: how do I get the URL? the old $_SERVER[QUERY_STRING] doesn't work correctly in symfony

2009-05-14 Thread zwischenzeilen
have a look at this: http://www.symfony-project.org/book/1_2/06-Inside-the-Controller-Layer#chapter_06_accessing_the_request you are probably looking for the function $request-getPathInfo() On 14 Mai, 03:48, nick lal...@teamlalala.com wrote: How do I get the URL? The old

[symfony-users] Re: Is there a better way to find a related record other than looping?

2009-05-14 Thread Thomas Rabaix
Hello, If there is only one type per entry then you should use index by feature. The key of the doctrine collection will be type ... so no looping is needed $entry-MetaData[EntryMeta::Superscript] will return the meta data model On Thu, May 14, 2009 at 5:59 AM, joshuacoady j...@lovetoknow.com

[symfony-users] Re: Weird 500 error

2009-05-14 Thread pixelmeister
And what says the Apache Log? 2009/5/14 HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com I got a weird problem: if I sign in (POST a form) in the production environment, I get a 500 server error screen. But, when I do it in the development environment, everything works fine! Problem is, I

[symfony-users] Re: Weird 500 error

2009-05-14 Thread Gábor Fási
Try changing the error_reporting level for the prod environment, and you'll get an error message, just don't forget to set it back to the default when you're done. On Thu, May 14, 2009 at 10:48, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: I got a weird problem: if I sign in (POST a

[symfony-users] Re: Admin Generator, Timestampable and I18N update

2009-05-14 Thread FlyLM [ML]
2009/5/13 FlyLM [ML] flylm...@gmail.com: Hello, I use Admin Generator to allow Admin users to update the local part of an object. The shema's object is defined like below : ubCgu:    actAs:     Timestampable: ~     I18N:      fields: [content]      className: %CLASS%I18n    columns:

[symfony-users] Re: Talking about performance, clustering etc.

2009-05-14 Thread David Ashwood
I've used ipvs (http://www.linuxvirtualserver.org/software/ipvs.html) effectively on a few sites for clients - it's more scalable than using reverse proxies. It's a handy fast and efficient way to: * load balance * manage traffic to the cluster (allowing for transparently bringing

[symfony-users] Re: Weird 500 error

2009-05-14 Thread David Ashwood
Look at your php/apache logs and turn on symfony logging for the production environment. -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of HAUSa Sent: 14 May 2009 10:49 To: symfony users Subject: [symfony-users] Weird 500 error

[symfony-users] Re: Is there a better way to find a related record other than looping?

2009-05-14 Thread David Ashwood
Heh J From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of Thomas Rabaix Sent: 14 May 2009 10:53 To: symfony-users@googlegroups.com Subject: [symfony-users] Re: Is there a better way to find a related record other than looping? Hello, If there is

[symfony-users] Re: Is there a better way to find a related record other than looping?

2009-05-14 Thread David Ashwood
Depending on how the data is organised you can try: $entry-MetaData[EntryMeta::Superscript]['value'] or $entry-MetaData[EntryMeta::Superscript]-value -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of joshuacoady Sent:

[symfony-users] symfony at the sourceforge community choice awards

2009-05-14 Thread David Herrmann
I've nominated symfony in 3 categories at the sourceforge community choice awards (http://sourceforge.net/community/cca09/): * symfony PHP framework for Best Tool or Utility for Developers * symfony PHP framework for Best Project * symfony PHP framework for Best Commercial Open Source Project

[symfony-users] Re: is it possible to change database without loosing any data ?

2009-05-14 Thread Jason
When learning about sf doctrine migrations I found this page to be the most informative: http://www.doctrine-project.org/documentation/cookbook/1_0/en/symfony-and-doctrine-migrations On May 13, 2:45 am, dziobacz aaabbbcccda...@gmail.com wrote: OK - I know :))) If we have files:

[symfony-users] segment_names options in sfPropelRouteCollection

2009-05-14 Thread pilot
What is the use of the segment_names option for sfPropelRouteCollection in routing.yml ? --~--~-~--~~~---~--~~ 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] I uploaded a file, but only got a parameter?

2009-05-14 Thread Stephen
Request: item: { category_id: '1', item_name: adsfa, item_detail: adfad, item_price: '34', pic1: avatar.php.jpeg, pic2: '', pic3: '', pic4: '', link: ''} Globals: files: { } === That avatar.php.jpeg was the file I uploaded, supposed in the files field. The code of the Form:

[symfony-users] I uploaded a file, but only got a parameter?

2009-05-14 Thread Stephen
Request: item: { category_id: '1', item_name: adsfa, item_detail: adfad, item_price: '34', pic1: avatar.php.jpeg, pic2: '', pic3: '', pic4: '', link: ''} Globals: files: { } === That avatar.php.jpeg was the file I uploaded, supposed in the files field. The code of the Form:

[symfony-users] Re: I uploaded a file, but only got a parameter?

2009-05-14 Thread Stephen
I didn't use the tag enctype=multipart/form-data Wasted a day of mine. So stupid... On May 14, 9:41 pm, Stephen stephen.j.t...@gmail.com wrote: Request: item: { category_id: '1', item_name: adsfa, item_detail: adfad, item_price: '34', pic1: avatar.php.jpeg, pic2: '', pic3: '', pic4: '',

[symfony-users] Re: Symfony-Doctrine Migrations and Branches

2009-05-14 Thread Fabrice B
A less technical solution : - everybody has on its own computer the main branch and his own branch, which share the same development database - the rule is to create migration files only in the main branch As long as migrations only affect database structure in a non- destructive way, this

[symfony-users] How to configure sfGuard?

2009-05-14 Thread Zap
Hi, I wonder if it is possible to change default routes in sfGuard plugin? I can easy customize the main route, which show list of defined users, but action links on this page lead to admin/sf_guard_user/new admin/sf_guard_user/edit etc. Is there any way how to configure it in YML files or

[symfony-users] Re: How to configure sfGuard?

2009-05-14 Thread David Ashwood
The second of your questions can only be done by using DbFinder I think (http://www.symfony-project.org/plugins/DbFinderPlugin) - checkout the section Alternative Framework Components. -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On

[symfony-users] Doctrine schema file problems with generated forms

2009-05-14 Thread Gary Rojas
I'm working with Symfony 1.2 and Doctrine 1.0 and I'm getting errors with the generated forms Here is part of my schema.yml ## pltProjectModule: tableName: plt_project_module columns: project_id: type: integer(4)

[symfony-users] Re: Weird 500 error

2009-05-14 Thread nick
The only times I run into a big difference between the two environments is when I've failed to clear the cache. Try: php symfony cc On May 14, 4:48 am, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: I got a weird problem: if I sign in (POST a form) in the production environment, I

[symfony-users] Re: Is there a better way to find a related record other than looping?

2009-05-14 Thread nick
I'm assuming you also need all of the Entry objects, for some reason that you did not mention? Because, clearly, if you didn't need all of the Entry objects, you could just get the EntryMeta objects that you want with a JOIN statement. But, assuming you need the extra data for some other reason,

[symfony-users] do i directly edit sfGuardAuth signinSucess.php if I want to customize the signing form, or do I override it elsewhere?

2009-05-14 Thread nick
If someone tries to go to a secure page, and they are not logged in, they get redirected to the login page, which has this template: plugins/sfGuardPlugin/modules/sfGuardAuth/templates/signinSucess.php I'd like to remember where the user was coming from, and then send them there if they log in

[symfony-users] Re: do i directly edit sfGuardAuth signinSucess.php if I want to customize the signing form, or do I override it elsewhere?

2009-05-14 Thread Sid Bachtiar
That should be the default behaviour of sfGuardPlugin But if you want to customize the signinSuccess.php, don't do it on the plugin directory. Do it be creating myproject/myapp/modules/sfGuardAuth/templates/signinSuccess.php (do this manually, don't use symfony command line, e.g.: don't use

[symfony-users] Re: do i directly edit sfGuardAuth signinSucess.php if I want to customize the signing form, or do I override it elsewhere?

2009-05-14 Thread H. Tuttle
Yes, that's right. You can make your own sfGuardAuth module. The other question almost as important is how do you overload the sfGuardUser class? I have tried making my own sfGuardUser.php in the / lib/model directory but with no success. I'd like to be able to stay completely out of the

[symfony-users] Re: do i directly edit sfGuardAuth signinSucess.php if I want to customize the signing form, or do I override it elsewhere?

2009-05-14 Thread Sid Bachtiar
I don't know how to do this without doing stuffs in the plugin folder Why do you want to overload sfGuardUser? On Fri, May 15, 2009 at 1:48 PM, H. Tuttle lacyrhoa...@gmail.com wrote: Yes, that's right.  You can make your own sfGuardAuth module. The other question almost as important is how

[symfony-users] Re: do i directly edit sfGuardAuth signinSucess.php if I want to customize the signing form, or do I override it elsewhere?

2009-05-14 Thread nick
On May 14, 8:42 pm, Sid Bachtiar sid.bacht...@gmail.com wrote: That should be the default behaviour of sfGuardPlugin Yes, but somehow that is not working for us. When I look in BasesfGuardAuthActions.class.php, I see this code: $this-form-bind($request-getParameter('signin'));

[symfony-users] Why the form isn't saved?

2009-05-14 Thread Reynier Perez Mira
Hi every: I have a form which code is this one (soury for be to long): ?php use_stylesheet('form.css') ? ?php include_javascripts_for_form($form) ? ?php if ($form-hasGlobalErrors()): ? div id=msg_error?php echo $form-renderGlobalErrors() ?/div ?php endif; ? ?php echo

[symfony-users] Re: do i directly edit sfGuardAuth signinSucess.php if I want to customize the signing form, or do I override it elsewhere?

2009-05-14 Thread nick
I noticed that this problem used to be common, a year ago, but it was supposedly fixed 6 months ago, in ticket #3212: http://trac.symfony-project.org/ticket/3212 So I tried changing this: $signinUrl = sfConfig::get('app_sf_guard_plugin_success_signin_url', $user-getReferer('@homepage')); to

[symfony-users] Re: Why the form isn't saved?

2009-05-14 Thread Frank Stelzer
Hi, Your form is invalid, because your bind call is not correct. A missing array_merge call is missing there. Try this one: protected function processForm(sfWebRequest $request, sfForm $form) { $form-bind( array_merge($request-getParameter($form-getName(), array() ),