[symfony-users] Re: sf 1.2: is all the documentation about the admin generator wrong?

2009-03-06 Thread Schorsch
I made fileuploads work by configuring the referring nameForm.class.php. Make sure the form ist working. Admin generator is using the configuration made in the form class. I think it's the easiest way to configure a fileupload. In my case a editable fileupload. With template you can customize

[symfony-users] Re: Propel 1.3 nestedset strange behavior

2009-03-06 Thread Jérôme TEXIER
On 4 mar, 16:49, Gorka glopezdeto...@gmail.com wrote: Last time I checked -though it was months ago- I think nodes could not be moved through the tree, but I am not sure. Maybe the limitation was that they could not be moved between different trees (different scopes)... sorry for my bad

[symfony-users] Re: sfWidgetFormChoice and empty value

2009-03-06 Thread Tomasz Ignatiuk
Maybe it is, but you're creating options for this as an array, am I right? So you can add at the begining an empty option. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group,

[symfony-users] Re: What is a legacy error? as related to security?

2009-03-06 Thread Lee Bolding
On 6 Mar 2009, at 02:59, Lawrence Krubner wrote: Okay, I sort of see what is going on now. When the login page is done loading, the sfErrorHandler plugin attempts to send a 500 response and then send an error. Does anyone know why this plugin would mis-fire? Well, that's a test case I

[symfony-users] Re: i can not login, using the simple, built in security that Symfony has be default

2009-03-06 Thread Lawrence Krubner
On Mar 6, 2:04 am, Sid Bachtiar sid.bacht...@gmail.com wrote: No, AFAIK there isn't default login form. You need sfGuardPlugin or build your own. Where does the login form go? Symfony redirects me to this URL: frontend_dev.php/symfony/login But where is the module called symfony? Symfony

[symfony-users] Re: i can not login, using the simple, built in security that Symfony has be default

2009-03-06 Thread Sid Bachtiar
Hi, There is no actual module name 'symfony', it is caused by the default routing.yml (in config folder of your app). Module 'symfony' in URL is really an 'alias' of module 'default'. Look at the routing.yml, it'll make sense. You can not just put a loginSuccess template. It takes more than

[symfony-users] Re: Propel 1.3 nestedset strange behavior

2009-03-06 Thread michael.pie...@googlemail.com
May i jump in ;o) I wonder, because moving a node with all it's descendants and children down to one descendant cannot work, or am i wrong? By moving a node you are also moving all nodes beneath it (descendants and children too), so this can't work, because the node you are moving to is not

[symfony-users] Re: i can not login, using the simple, built in security that Symfony has be default

2009-03-06 Thread Sid Bachtiar
And of course read on the chapter of security to get an idea of how security is implemented in Symfony. Btw, what is the Symfony version you are using? On Fri, Mar 6, 2009 at 11:14 PM, Sid Bachtiar sid.bacht...@gmail.com wrote: Hi, There is no actual module name 'symfony', it is caused by

[symfony-users] Re: What is a legacy error? as related to security?

2009-03-06 Thread Lee Bolding
As an aside, a LegacyError is any PHP error that isn't an exception (or, that is an UNCAUGHT exception). The errorHandler in sfErrorHandlerPlugin replaces the standard PHP error handler and rethrows PHP errors as exceptions (which the rendering filter then catches and displays) On 6 Mar

[symfony-users] Re: Event when configuration (app.yml) has changed? (solution + some remarks about documentation)

2009-03-06 Thread Roel
Hello Ant, Thanks for your comment. I'd have to write a plugin that is called from every action, or rather I'd have to automatically call the code by injecting a caller into the symfony request bootstrapping chain. Which works fine, I've done that in the past for example for allowing users to

[symfony-users] Re: What is a legacy error? as related to security?

2009-03-06 Thread Lee Bolding
As an aside, a LegacyError is any PHP error that isn't an exception (or, that is an UNCAUGHT exception). The errorHandler in sfErrorHandlerPlugin replaces the standard PHP error handler and rethrows PHP errors as exceptions (which the rendering filter then catches and displays) On 6 Mar

[symfony-users] why do I need to clear the cache when I'm looking at the dev controller? Isn't caching off by default?

2009-03-06 Thread Lawrence Krubner
I'm working on a new site. It is in development. When I look at it in the browser, I'm always looking at the dev controller. Everytime I add a plugin, or new models, I need to run this command: php symfony cc Why do I need to do this? I thought caching was off by default for the dev controller?

[symfony-users] Re: why do I need to clear the cache when I'm looking at the dev controller? Isn't caching off by default?

2009-03-06 Thread Lee Bolding
Whenever a YAML file is added/modified you need to clear the cache - this is what is being cached. Most plugins have a YAML file of some sort, so it's best practice to clear the cache whenever you've added a new plugin On 6 Mar 2009, at 11:08, Lawrence Krubner wrote: I'm working on a new

[symfony-users] Re: What is a legacy error? as related to security?

2009-03-06 Thread Lawrence Krubner
On Mar 6, 4:59 am, Lee Bolding l...@leesbian.net wrote: On 6 Mar 2009, at 02:59, Lawrence Krubner wrote: Okay, I sort of see what is going on now. When the login page is done loading, the sfErrorHandler plugin attempts to send a 500 response and then send an error. Does anyone know

[symfony-users] jobeet tutorial

2009-03-06 Thread Vikaash
hai I m rightnow going through symfony jobeet tutorial. At the end of 3rd day after putting all the code when i run the module job in the browser i get what i wrote in index.php file as per the tutorial. I m new to the symfony .pls help me.

[symfony-users] how do I set a default value for a hidden input?

2009-03-06 Thread Lawrence Krubner
I've tried this: $this-widgetSchema['date'] = new sfWidgetFormInputHidden(); $this-widgetSchema['date']-setDefault(date(Y-m-d h:m:i)); but I get this error: Fatal error: Call to undefined method sfWidgetFormInputHidden::setDefault() in /home/lawrence/public_html/

[symfony-users] Re: how do I set a default value for a hidden input?

2009-03-06 Thread Lawrence Krubner
On Mar 6, 7:16 am, Lawrence Krubner lkrub...@geocities.com wrote: I've tried this:    $this-widgetSchema['date'] = new sfWidgetFormInputHidden();    $this-widgetSchema['date']-setDefault(date(Y-m-d h:m:i)); but I get this error: Fatal error: Call to undefined method

[symfony-users] I18n forms - not everything translated

2009-03-06 Thread Tomasz Ignatiuk
Hi I keep my translation file in apps/frontend/i18n/messages.pl.xml All texts in templates are translated. It is weird that some forms are not translated, some of them are mostly translated and none of notice and erros messages were translated. I checked language, coding, ids in xml, everything.

[symfony-users] Re: I18n forms - not everything translated

2009-03-06 Thread Tomasz Ignatiuk
I see that mostly it was a problem of session. Sorry to bother --~--~-~--~~~---~--~~ 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

[symfony-users] ajax (ext-2.2) weirdness. Page only works with logging levels INFO or DEBUG or the cached security.yml.php NOT exists

2009-03-06 Thread Roland Cruse
Hi I do not want to say how long I have spent on this...but I have an issue where an ajax call is working in a dev environment and not in a prod environment. After drilling in It turns out that the ajax call would only work with logging enabled at levels info or debug, no others. Or...in the

[symfony-users] Re: I18n forms - not everything translated

2009-03-06 Thread Tomasz Ignatiuk
Does anyone know how to translate setFlash notices and erros? A put translation in my message.pl.xml file but it doesn't work --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this

[symfony-users] databases.yml - pooling for different environments

2009-03-06 Thread Sarel
Hey All, I'm trying to switch pooling off for a specific environment in my databases.yml file. This is what I did: - cron: propel: param: pooling: false all: propel: class: sfPropelDatabase param: dsn:

[symfony-users] Re: how do I set a default value for a hidden input?

2009-03-06 Thread Alan Bem
Look at this example: $this-setWidget('referer', new sfWidgetFormInputHidden()); $this-setDefault('referer', sfContext::getInstance()-getRequest()-getReferer()); Cheers, Alan Gabriel Bem On Fri, Mar 6, 2009 at 1:16 PM, Lawrence Krubner lkrub...@geocities.comwrote: I've tried this:

[symfony-users] Re: Starting point to make a module to create/update multiple objects at a time?

2009-03-06 Thread bessangel
May be this help you http://trac.symfony-project.org/ticket/4906 --~--~-~--~~~---~--~~ 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

[symfony-users] Re: I18n forms - not everything translated

2009-03-06 Thread Shinkan
You have to use the helper trough the sfContext object. From everywhere : sfContext::getInstance()-getI18N()-__('The flash message'); So from an action : $this-getUser()-setFlash('flash', sfContext::getInstance()-getI18N ()-__('The flash message') ); To minimify, you can put a protected

[symfony-users] sfFormLanguage and I18n URL

2009-03-06 Thread ispanarnold
Hello, First question would be how can i have the sfFormLanguage directly in the layout (layout.php from app/templates) and then sfFormLanguage being submitted to an action (general/changeLanguage)? Second question is: I have i18n routes like (references/1/persons (english), reference/1/

[symfony-users] i18n:extract task does not work correctly ?!

2009-03-06 Thread Shinkan
Hi there ! I use Symfony 1.2.4. I loaded I18N as default helper. I activated i18n on app's settings.yml. I use __() function to translate in templates. I use sfContext::getInstance()-getI18N()-__() everywhere else. My only app is named manager. I do not use admin generator (but I did once, to

[symfony-users] Re: i18n:extract task does not work correctly ?!

2009-03-06 Thread Shinkan
Just find out that by : - deleting %sf_symfony_lib_dir%/plugins/sfPropelPlugin/i18n - creating apps/myapp/i18n/fr/ - creating a messages.yml valid but empty here - relaunching the task It does work by updating apps/myapp/i18n/fr/messages.yml But this is absolutely not user-friendly to me ...

[symfony-users] Re: Admin Generator 1.2 route_prefix using hyphen not underscore

2009-03-06 Thread noel guilbert
Hi, It works for me. Did you create a blah-blah route in your routing.yml file ? Can you run a symfony app:routes your_app and check if the route exists ? On Fri, Mar 6, 2009 at 1:25 PM, IsRobot tony.hewi...@googlemail.com wrote: I want my admin generated module URL to be like this:

[symfony-users] Re: Admin Generator 1.2 route_prefix using hyphen not underscore

2009-03-06 Thread IsRobot
Hi Noel, Thanks for your reply. I had not tried adding my own route but have since tried adding this rule: foo-bar url:/foo-bar/:action/* param: { module: foo_bar } as well as the changes I had already made. This did not work. This is the output of symfony app:routes your_app both

[symfony-users] orm doctrine

2009-03-06 Thread cornnery
bonjour , question d'un newbie sur doctrine orm ; j'aimerais savoir si doctrine oblige que chaque clé primaire se nomme id . et s'il ya autres choses à savoir toujours dans les règles de nommage des champs avec doctrine je suis prennant merci .

[symfony-users] Re: how do I set a default value for a hidden input?

2009-03-06 Thread Lawrence Krubner
On Mar 6, 7:39 am, Alan Bem alan@gmail.com wrote: Look at this example: $this-setWidget('referer', new sfWidgetFormInputHidden()); $this-setDefault('referer', sfContext::getInstance()-getRequest()-getReferer()); Thanks. What is the URL for this example? I'd like to see more

[symfony-users] Re: sfDoctrineActAsTaggablePlugin problem removing tags

2009-03-06 Thread Michael Smith
There is a bug in the index by statement where the table alias is not referenced. Here is a patch file for the change: Index: TaggableTemplate.class.php === --- TaggableTemplate.class.php (revision 15938) +++

[symfony-users] Re: sfDoctrineActAsTaggablePlugin problem removing tags

2009-03-06 Thread Jonathan Wage
It would probably be best to create a ticket? - Jon On Fri, Mar 6, 2009 at 3:21 PM, Michael Smith sitecr...@gmail.com wrote: There is a bug in the index by statement where the table alias is not referenced. Here is a patch file for the change: Index: TaggableTemplate.class.php

[symfony-users] Re: sfDoctrineActAsTaggablePlugin problem removing tags

2009-03-06 Thread Michael Smith
I wasn't real sure where to put it. There's no component for sfDoctrineActAsTaggablePlugin in the symfony trac and there is nothing on the plugin page about bugs. What is the proper way to report a bug in a plugin? On Mar 6, 3:30 pm, Jonathan Wage jonw...@gmail.com wrote: It would probably be

[symfony-users] Re: I18n in forms messages

2009-03-06 Thread boozee
Well, as it is being done in the forms system, I don't really use the __ method like you wrote, as it happens automatically. So I can't do what you wrote. But it's a creative idea, thanx. Anything else I can do ? suggestions ? On Mar 6, 3:06 am, jukea jkea...@gmail.com wrote: oops, typo error

[symfony-users] Re: orm doctrine

2009-03-06 Thread Hugo HAMON
Salut, Par défaut, Doctrine attribue le champ id comme clé primaire, mais rien ne t'empêche de définir explicitement un autre champ comme clé primaire de ta table. Toutes les informations nécessaires se trouvent dans la documentation de Doctrine sur le site officiel :

[symfony-users] Hit counter?

2009-03-06 Thread Sid Bachtiar
Hi, I just tried out sfSimpleBlogPlugin and it's awesome. But it is missing a hit counter to analyse the traffic (even really simple one). What do you guys use for hit counter for your Symfony projects? I'm just surprised there isn't a plugin for it. -- Blue Horn Ltd - System Development

[symfony-users] Re: how do I set a default value for a hidden input?

2009-03-06 Thread Lawrence Krubner
On Mar 6, 7:39 am, Alan Bem alan@gmail.com wrote: Look at this example: $this-setWidget('referer', new sfWidgetFormInputHidden()); $this-setDefault('referer', sfContext::getInstance()-getRequest()-getReferer()); Sorry, but that doesn't work. The setDefault method is only available

[symfony-users] Re: Hit counter?

2009-03-06 Thread Lawrence Krubner
On Mar 6, 7:19 pm, Sid Bachtiar sid.bacht...@gmail.com wrote: Hi, I just tried out sfSimpleBlogPlugin and it's awesome. But it is missing a hit counter to analyse the traffic (even really simple one). What do you guys use for hit counter for your Symfony projects? I'm just surprised there

[symfony-users] Re: what is the best way to enable JQuery in Symfony?

2009-03-06 Thread Lawrence Krubner
On Mar 4, 6:51 am, Paolo Mainardi paolomaina...@gmail.com wrote: RTFM:http://www.symfony-project.org/book/1_2/07-Inside-the-View-Layer#chap... Does the standard Javascript helper work in these circumstances? Like this: ?php use_helper('Javascript') ? On Wed, Mar 4, 2009 at 12:45

[symfony-users] Re: what is the best way to enable JQuery in Symfony?

2009-03-06 Thread Lawrence Krubner
On Mar 4, 6:51 am, Paolo Mainardi paolomaina...@gmail.com wrote: RTFM:http://www.symfony-project.org/book/1_2/07-Inside-the-View-Layer#chap... Just to be clear, I'm asking about the layout, not the template. The page you point me to shows me how to get my Javascript files into my template.

[symfony-users] Re: Hit counter?

2009-03-06 Thread Sid Bachtiar
IMHO filter is better for this kind of things. Anyway, I threw the question to find out what everyone else is using. On Sat, Mar 7, 2009 at 3:31 PM, Lawrence Krubner lkrub...@geocities.com wrote: On Mar 6, 7:19 pm, Sid Bachtiar sid.bacht...@gmail.com wrote: Hi, I just tried out

[symfony-users] Re: In the Base model classes, what does alreadyInSave accomplish?

2009-03-06 Thread Lawrence Krubner
On Mar 2, 12:38 pm, vadim samokhinva...@gmail.com wrote: It's a variable showing that the save/update operation already started for this object, so it prevents an implementation of other insert/ update operations until the current one is over. When the operation starts - alreadyInSave is

[symfony-users] Re: what is the best way to enable JQuery in Symfony?

2009-03-06 Thread Lawrence Krubner
On Mar 4, 6:51 am, Paolo Mainardi paolomaina...@gmail.com wrote: RTFM:http://www.symfony-project.org/book/1_2/07-Inside-the-View-Layer#chap... So, perhaps this is impossible? On Wed, Mar 4, 2009 at 12:45 PM, Lawrence Krubner lkrub...@geocities.comwrote: On Mar 4, 5:50

[symfony-users] How to install sfMediaLibraryPlugin and sfThumbnailPlugin in Symfony 1.2 project?

2009-03-06 Thread Sid Bachtiar
Anyone got these two working for Symfony 1.2? -- Blue Horn Ltd - System Development http://bluehorn.co.nz --~--~-~--~~~---~--~~ 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] Re: what is the best way to enable JQuery in Symfony?

2009-03-06 Thread Ant Cunningham
layout.php is just a wrapper for the the template and contains the head section of the html, so all things that are added to the head are actually added to layout.php by the include_metas() call. so if in apps/applicationname/config/view.yml you do: all: javascript: - file1 -

[symfony-users] Re: In the Base model classes, what does alreadyInSave accomplish?

2009-03-06 Thread Ant Cunningham
If you have neste objects. For example: Assume the following Schema: author: id: name: book: id: title: author_id: So if we do: $author = new Author(); $author-setName('Lawrence Krubner'); $book = new Book(); $book-setTitle('Learning Symfony'); $book-setAuthor($author);

[symfony-users] Symfony Production Performance improvements

2009-03-06 Thread Gareth McCumskey
Greetings all, We have recently released a project we have been working on for some months now as an Alpha version and while we have focussed primarily on bug fixing as well as feature completion for the next Alpha release coming up in a week, I can't help but notice something disconcerting. The