[symfony-users] Re: symfony 1.3.3 doctrine inheritance custom primary key and formfilters

2010-03-16 Thread Tom Ptacnik
When does this error appears? When you execute the filter? By which param are you trying to filter? On 12 bře, 09:43, lxtechie lxtec...@gmail.com wrote: No one? On Mar 10, 10:52 pm, lxtechie lxtec...@gmail.com wrote: Hi If been trying to use doctrine's inheritance feature . I add my

[symfony-users] Re: sfObjectRouteCollection with method_for_query

2010-03-16 Thread Tom Ptacnik
What are you trying to do? Maybe there is another way how to do that and thats why method_for_query isn't in sfObjectRouteCollection On 11 bře, 15:32, Don Pinkster d...@pinkster.eu wrote: Is it me or am I missing the option to specify a method_for_query in an sfObjectRouteCollection? There is

[symfony-users] Re: Paginate the result of two queries

2010-03-16 Thread Tom Ptacnik
I think better solution would be to make a one query from this two and then paginate as in admin generator. On 11 bře, 21:07, Javier Garcia tirengar...@gmail.com wrote: Hi, to get the friends of a user i have a table like this: AmigoUsuario:    columns:      user1_id:        type:

Re: [symfony-users] Re: Starting with symfony on Debian

2010-03-16 Thread Johann Spies
On 15 March 2010 22:21, rekarnar rekar...@gmail.com wrote: This looks like an issue with your php setup, not symfony. Can you check this by trying: 'php -v' and see if it executes without the error. Thanks! You were correct. There was a bug in one package on my system and an old library that

[symfony-users] Re: best practice change web directory

2010-03-16 Thread Tom Ptacnik
$this-setWebDir($this-getRootDir().'/../www'); On 11 bře, 19:09, Kevin kevinb...@gmail.com wrote: Hello, just wondering if the following is considered the best practice for changing the web directory from the default www to html? class ProjectConfiguration extends sfProjectConfiguration {  

[symfony-users] Re: Doctrine Admin Generator Problem

2010-03-16 Thread Tom Ptacnik
Why your setup function doesn't specify a relation? On 11 bře, 22:39, Jim Krehl jim...@harmonixmusic.com wrote: I'm having some problems with using relations and doctrine:generate-admin.  I have two tables, call them Users and Umbrellas.  There is a one-to-many relation between Users and

[symfony-users] Re: Help required for generating custom templates (Symfony 1.4.3 with Doctrine)

2010-03-16 Thread Tom Ptacnik
Are you creating backend with admin generator? Or how do you want to generate it.. by which command? On 11 bře, 08:05, Parijatha Kumar parijathaku...@gmail.com wrote: Hi, I am a new comer to Symfony world. I am building a web application for our organisation with Symfony 1.4.3+Doctrine. I

[symfony-users] Re: custom rendering of sfWidgetFormDoctrineChoice?

2010-03-16 Thread Tom Ptacnik
Maybe this.. sfWidgetFormSchemaDecorator http://www.symfony-project.org/forms/1_4/en/A-Widgets On 11 bře, 12:02, axel at axel.zu...@gmail.com wrote: hello, the render method of new sfWidgetFormDoctrineChoice(array(                                         'multiple' = true,            

[symfony-users] Re: Routing problem with sfGuardUserProfile

2010-03-16 Thread Tom Ptacnik
How is possible that if you list a utilisateus the url is / utilisateurs/:id . It should be only /utilisateurs , right? On 10 bře, 09:33, NOOVEO - Christophe Brun c.b...@nooveo.fr wrote: I'm trying to use sfDoctrineApplyPlugin, I have been asked to display 2 backend pages : one to handle

[symfony-users] Re: Login form database authentication

2010-03-16 Thread Tom Ptacnik
If I want to create authentication, at first I would use Symfony 1.4 (not 1.0) and then look into the sfGuard how to do that. On 10 bře, 12:24, Trung Huynh forrestgu...@gmail.com wrote: Hi I'm trying to get a login form working with database authentication and the right symfony way of

Re: [symfony-users] Symfony 2.0 - Cookies

2010-03-16 Thread Jérémie
Symfony wrote: Hi all, I'm trying to use Symfony 2.0, and I was wondering if someone knew how to set/get cookies with this version? I found a setcookie method in the Response class, but I can't figure out how to use it :/ Thanks a lot! Jérémie Finally I understood that I have to use

[symfony-users] Symfony Doctrine Migration - Cancel mandatory from a field

2010-03-16 Thread ruigoncalves
Hi there! I would like to cancel the mandatory of a field of my current schema, that is, change the value of the property notnull from true to false. How can I accomplish that with a symfony migration? Thanks in advance, Best regards! -- If you want to report a vulnerability issue on symfony,

[symfony-users] Re: enormous sf

2010-03-16 Thread vero
It was so stupid that I am so ashamed. I don't pretend to use * at all. It was a big error, and I'm really grateful to you for your help. I have change it and now the sf has disappear, thank you very much and thanks for all people who try to help others in that group. It's very important for me

Re: [symfony-users] Re: enormous sf

2010-03-16 Thread Gareth McCumskey
As a new user to symfony I would highly recommend reading through the Definitive Guide to symfony: http://www.symfony-project.org/book/1_2/ I know its for the 1.2 version but the Definitive Guide for 1.3/1.4 is not fully ported yet and there really are not as many differences between the books.

[symfony-users] How can i see the content of Auto* classes of backend ?

2010-03-16 Thread Javier Garcia
Hi, i have created a backend and an admin module. In apps/backend/modules/actions/actions.class.php I have this : class cocheActions extends autoCocheActions { } Is there any way to see the content of autoCocheActions ? My proposal is find out how the pagination in backend works, concretely

Re: [symfony-users] How can i see the content of Auto* classes of backend ?

2010-03-16 Thread Stéphane
Hi, These classes are in the $project/cache/$env/$app dir They are deleted when you symfony cc Cheers, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Tue, Mar 16, 2010 at 1:43 PM, Javier Garcia

[symfony-users] Re: Question about an AJAX link and the dev and prod enviroments

2010-03-16 Thread Massimiliano Arione
What if client has javascript disabled? On 15 Mar, 18:38, Javier Garcia tirengar...@gmail.com wrote: Ok, this is the solution:                 a href=# onclick=new Ajax.Updater('lista_miembros', '?php echo url_for(miembros/filtrar?page=2); ?')next/a Javi On Mar 15, 5:59 pm, Javier

[symfony-users] Re: Propel extend Criteria different functions

2010-03-16 Thread Massimiliano Arione
Did you try Propel criteria builder? http://propel.jondh.me.uk/criteria/analyse Also, you can use sfPropel15plugin and benefit from new Query syntax. On 15 Mar, 14:43, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: If you want to make OR term in Propel, you need to make a Criterion

[symfony-users] Re: How can i see the content of Auto* classes of backend ?

2010-03-16 Thread Javier Garcia
Thanks Stephane, inside my cache I only have the folders backend,, frontend, tmp and i file called project_autoload.cache. To be sure about it, before check it, i have created a new backend project, a new admin module Coche and i visited http://rs.localhost/backend_dev.php/coche. Any way, why

Re: [symfony-users] Re: How can i see the content of Auto* classes of backend ?

2010-03-16 Thread Eno
On Tue, 16 Mar 2010, Javier Garcia wrote: Any way, why are you adding the $ before env and app in the path you gave me? Because the permissions of the folders? Because they're like variables, you need to substitute in the values for your application and env. -- A -- If you want to

[symfony-users] Symfony routing and _

2010-03-16 Thread DarrenMr
Does symfony routing allow _? My routing config is below, it works with / but not _ product_view: url: /product_:brand/:name param: { module: products, action: view } requirements: { brand: \d+, name: .+ } name when I call it does not have any _ Does anyone know how to fix this? Thanks,

[symfony-users] request parameters in sfOrmBreadcrumbsPlugin

2010-03-16 Thread Mike Serendra
hi everyone, for those who use this plugin i have a quick question, what do you put in breadcrumbs.yml to retrieve request parameters? sample breadcrumbs.yml (in the readme): sf_orm_breadcrumbs: main: index: - { name: Home, route: homepage } blog: index: - { name: Blog,

[symfony-users] setPostValidator and mergePostValidator - conflitcs

2010-03-16 Thread Augusto Flavio
Hi, i have a form that i need to check whether 2 strings is equal and i'm using a setPostvalidator to check duplicated fields in my DB. The 2 codes works fine. But only one for time. not the both together. here is the code: class UsersForm extends BaseUsersForm { (...) public function

[symfony-users] How to read databases.yml propely by sfConfig::get()

2010-03-16 Thread Dong YANG
Hi everyone, I want to get some infos of the file '*config/databases.yml*' from another file (action file for example). I tried the function sfConfig::get() but I failed to find the correct syntaxe, because there are only three prefix for getting config file by default (app_, sf_ and

Re: [symfony-users] Symfony routing and _

2010-03-16 Thread Syam
Hi, In your factories.yml application config file, you can use the segment_separators option on routing section : all: routing: class: sfPatternRouting param: generate_shortest_url: true extra_parameters_as_query_string: true segment_separators: ['.','/','_'] Hope this

Re: [symfony-users] How to read databases.yml propely by sfConfig::get()

2010-03-16 Thread Alvaro Videla
Try using the API of the sfDatabaseManager class On Mar 16, 2010, at 10:11 PM, Dong YANG wrote: Hi everyone, I want to get some infos of the file 'config/databases.yml' from another file (action file for example). I tried the function sfConfig::get() but I failed to find the

Re: [symfony-users] setPostValidator and mergePostValidator - conflitcs

2010-03-16 Thread Lea Hänsenberger
Hi, use an sfValidatorAnd to combine the two post validators: $this-mergePostValidator(new sfValidatorAnd(array( new sfValidatorCallback(array('callback' = array($this, 'checkSOCIALSECURITY'))), new sfValidatorSchemaCompare('senha', sfValidatorSchemaCompare::EQUAL,

[symfony-users] Accessing user session from a custom routing class

2010-03-16 Thread HiDDeN
Is there some way to acces the user object from a custom routing class? I'd like to add a parameter when generating a url, and that parameter is inside the user session, so I need to access it. The only way I found to access is using the sfContext::getInstance()- getUser(), but it's known to be

Re: [symfony-users] Accessing user session from a custom routing class

2010-03-16 Thread Jose Antonio Pio Gil
I have the same question about it! 2010/3/16 HiDDeN davidmoralesmoj...@gmail.com Is there some way to acces the user object from a custom routing class? I'd like to add a parameter when generating a url, and that parameter is inside the user session, so I need to access it. The only way

Re: [symfony-users] setPostValidator and mergePostValidator - conflitcs

2010-03-16 Thread Augusto Flavio
Thanks works fine! Augusto Morais 2010/3/16 Lea Hänsenberger baerne...@gmail.com Hi, use an sfValidatorAnd to combine the two post validators: $this-mergePostValidator(new sfValidatorAnd(array( new sfValidatorCallback(array('callback' = array($this, 'checkSOCIALSECURITY'))),

[symfony-users] Re: Symfony routing and _

2010-03-16 Thread DarrenMr
Is there any way to do it as I described above? Shouldn't this be able to do? On Mar 16, 7:17 am, Syam s...@nexen.org wrote: Hi, In your factories.yml application config file, you can use the segment_separators option on routing section : all:   routing:     class: sfPatternRouting    

[symfony-users] plugin versions

2010-03-16 Thread Yura Rodchyn
Hi, I'm lead developer of sfUserOnlinePlugin. I add some versions of plugins as pear package using strict mode (I think package i good) but in allreleases.xml no versions displayed check here http://plugins.symfony-project.org/REST/r/sfuseronlineplugin/allreleases.xml Why? -- If you want to

[symfony-users] Re: Admin generator ymfony 1.4 i18n question

2010-03-16 Thread Tim Richter
Hi, I've got the same problem but your solution doesn't seem to work for me: /:sf_culture is in the routes and works, if I put fields: [feldname , ...] in generator.yml, the resp. column does not show up in the list (thats ok I guess). But if I put list: [feldname, ...] (with or without the

[symfony-users] Re: Admin generator ymfony 1.4 i18n question

2010-03-16 Thread Tim Richter
Hi, have the same problem, your solution doesn't seem to work for me: I have /:sf_culture in my route and localization works. When I put fields: [ ... , somei18nfield, ...] in generator.yml, it doesn't show the field in the list. However, putting it in list: [..., somei18nfield, ...] the

[symfony-users] Dynamic default values in forms ?

2010-03-16 Thread Paul Bernard
Hello, I've been developping a new application with Symfony 1.4 for a few weeks and I'm trying to improve it. How can I set dynamic default values for a field in a form ? For instance, how can I set the default value for a date to today ? And how can I create a form with Thanks for your

Re: [symfony-users] Symfony 2.0 - Cookies

2010-03-16 Thread Rénald Casagraude
Hi, In all cases do not try to set inside view layer… Regards, Rénald On 16 mars 2010, at 12:08, Jérémie jeremie.symf...@gmail.com wrote: Symfony wrote: Hi all, I'm trying to use Symfony 2.0, and I was wondering if someone knew how to set/get cookies with this version? I found a

[symfony-users] Re: Symfony 2.0 - Cookies

2010-03-16 Thread Jérémie
On Mar 16, 8:32 pm, Rénald Casagraude rcasagra...@interfaces.fr wrote: Hi, In all cases do not try to set inside view layer… Regards, Rénald Yes, I do all the work in the Controller. I set in it, and get it there too. And then, I send it to the template, as an argument of the render

[symfony-users] Re: Dynamic default values in forms ?

2010-03-16 Thread rooster (Russ)
I suggest you have a quick read through the form book (1.2 is still pretty much valid for sf1.4) because all this is pretty much covered there. To set a default value for a date widget to today, you could do something like this in your form configure() method: $this-setDefault(my_date_widget,

[symfony-users] Re: Admin generator ymfony 1.4 i18n question

2010-03-16 Thread Tim Richter
I have list: title: ... display: [feldname,...] now and it works. Sorry Tim On Mar 16, 9:43 pm, Tim Richter t...@nobodycares.de wrote: Hi, I've got the same problem but your solution doesn't seem to work for me: /:sf_culture is in the routes and works, if I put fields: [feldname ,

Re: [symfony-users] Re: Question about an AJAX link and the dev and prod enviroments

2010-03-16 Thread Tom Haskins-Vaughan
What if client has javascript disabled? Then you should create a normal link first a href=?php echo url_for(miembros/filtrar?page=2); ?Next/a And then use javascript to change it if it is available. On Tue, Mar 16, 2010 at 9:06 AM, Massimiliano Arione garak...@gmail.com wrote: What if

Re: [symfony-users] Re: Symfony routing and _

2010-03-16 Thread Gareth McCumskey
As Syam said, add the '_' to the factories.yml segment_seperators parameter and you can On Tue, Mar 16, 2010 at 7:33 PM, DarrenMr mrdla...@gmail.com wrote: Is there any way to do it as I described above? Shouldn't this be able to do? On Mar 16, 7:17 am, Syam s...@nexen.org wrote: Hi, In