[symfony-users] Routing problem with sfGuardUserProfile

2010-03-10 Thread NOOVEO - Christophe Brun
I'm trying to use sfDoctrineApplyPlugin, I have been asked to display 2 backend pages : one to handle administrators, the other one to handle other users. I have generated 2 modules on the backend side. In routing.yml, the 2 routes are identical : utilisateurs: class:

Re: [symfony-users] Web Server Configuration

2010-03-10 Thread DEEPAK BHATIA
My hosts file is (/etc/hosts) # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 nechclst.in 127.0.0.1 localhost.localdomain localhost 127.0.0.1 deepaknew.nechclst.in deepaknew ::1 localhost6.localdomain6 localhost6

Re: [symfony-users] Re: Error 500 when i try to login the web app in production

2010-03-10 Thread Eno
On Tue, 9 Mar 2010, Javier Garcia wrote: But i cannot write in httpd.conf: -rw--- 1 root root 2123855 Mar 9 07:57 httpd.conf You need to ask whoever is hosting the application to add the config directives to your vhost configuration (or switch on .htaccess for your vhost). --

[symfony-users] Login form database authentication

2010-03-10 Thread Trung Huynh
Hi I'm trying to get a login form working with database authentication and the right symfony way of achieving this without using sfGuard. Overall, I'm trying to comprehend the way of doing things in symfony, hopefully you guys can pinpoint me in the right direction. action.class.php has a

Re: [symfony-users] Re: Error 500 when i try to login the web app in production

2010-03-10 Thread Javier Garcia
On 03/10/2010 10:07 AM, Eno wrote: You need to ask whoever is hosting the application to add the config directives to your vhost configuration Do you mean modify httpd.conf? I can not modify httpd.conf, not even if i ask to modify it. On 03/10/2010 10:07 AM, Eno wrote: You need to ask

[symfony-users] Re: Symfony frontend sort by th

2010-03-10 Thread ziclo
Gareth, Is your solution compatible with Doctrine ? I have a lot of errors when i try to implement it. Ziclo On 5 mar, 07:17, Gareth McCumskey gmccums...@gmail.com wrote: In your view in the header cell: th?php echo link_to(image_tag('sort_icon.png'),'module/action?sort=column_name') ?

Re: [symfony-users] Re: Symfony frontend sort by th

2010-03-10 Thread Gareth McCumskey
Mine was written in Propel. You will need to use the Doctrine equivalent methods in the correct places. I have never used Doctrine (yet) so can't do that for you On Wed, Mar 10, 2010 at 3:17 PM, ziclo lauren...@gmail.com wrote: Gareth, Is your solution compatible with Doctrine ? I have a lot

Re: [symfony-users] Web Server Configuration

2010-03-10 Thread DEEPAK BHATIA
*** Please check *** My hosts file is (/etc/hosts) # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 nechclst.in 127.0.0.1 localhost.localdomain localhost 127.0.0.1 deepaknew.nechclst.in deepaknew ::1

[symfony-users] Form dependency injection

2010-03-10 Thread Steve Sanyal
Forms have dependencies on their widget, validator, help and error message information. I found that specifying these dependencies in code was a lot more difficult to maintain - specifically for the message information. To solve this I created a helper class that injects the message information

Re: [symfony-users] Re: Error 500 when i try to login the web app in production

2010-03-10 Thread Gábor Fási
Then try what I said, and comment the Options.. line in your .htaccess. I've seen that line cause troubles. On Wed, Mar 10, 2010 at 13:34, Javier Garcia tirengar...@gmail.com wrote: On 03/10/2010 10:07 AM, Eno wrote: You need to ask whoever is hosting the application to add the config

Re: [symfony-users] Form dependency injection

2010-03-10 Thread Thomas Rabaix
Don't try to put to much view things into the form, most of your problems can be addressed by using raw html into templates. Now if you need some cross link application feature you can use this plugin : http://www.symfony-project.org/plugins/swCrossLinkApplicationPlugin

[symfony-users] After deploying, should i unfreeze the project in the remote host?

2010-03-10 Thread Javier Garcia
Hi, just that. I suppose no. Javi -- 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] (Doctrine) as keyword doesn't work as expected. Can't figure out a query :(

2010-03-10 Thread miguelSantirso
Hi, I have a starts_at field that keeps the date in which certain event starts or has started (in UNIX seconds). Also, I have a minutes_long field. I need to filter all the objects that are already finished and I tried adding the following to my original query: $q-addSelect('c.starts_at +

Re: [symfony-users] (Doctrine) as keyword doesn't work as expected. Can't figure out a query :(

2010-03-10 Thread Andrei Dziahel
Hi. WHERE statement is not applicable to calculated columns. Use HAVING instead. 2010/3/10 miguelSantirso tirso...@gmail.com Hi, I have a starts_at field that keeps the date in which certain event starts or has started (in UNIX seconds). Also, I have a minutes_long field. I need to filter

[symfony-users] Escape %2f in URL solution

2010-03-10 Thread Javier Sanchez
Hi all This is my problem. When i want to route with a parametrer slash / like :var = subprojectslug/pageslug symfony encoded slash to %2f and give a 404 error because apache desactivate the AllowEncodedSlashes for security I activate AllowEncodedSlashes On But i can't match url in a redirect

[symfony-users] yml validators in Symfony 1.4

2010-03-10 Thread SlimShaggy
Hi folks, I'm trying to upgrade a project from 1.2 to 1.4 I've read that the validate/action.yml files are no longer supported. What is the alternative, then ? Thanks -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received

Re: [symfony-users] (Doctrine) as keyword doesn't work as expected. Can't figure out a query :(

2010-03-10 Thread Jim Krehl
On 03/10/2010 01:10 PM, miguelSantirso wrote: Hi, I have a starts_at field that keeps the date in which certain event starts or has started (in UNIX seconds). Also, I have a minutes_long field. I need to filter all the objects that are already finished and I tried adding the following to my

Re: [symfony-users] yml validators in Symfony 1.4

2010-03-10 Thread Gábor Fási
The form framework. On Tue, Mar 9, 2010 at 14:01, SlimShaggy filthy.m...@gmail.com wrote: Hi folks, I'm trying to upgrade a project from 1.2 to 1.4 I've read that the validate/action.yml files are no longer supported. What is the alternative, then ? Thanks -- If you want to report a

[symfony-users] Need Insight On Backend Forms VS Frontend Forms

2010-03-10 Thread Darren884
For you seasoned Symfony users, I need some insight. I have been having a dilemma that I need advice on. I my backend I have a customer form that handles the managing of customers throughout the site. It contains fields that only the backend should display such as IP, last login, etc... My

[symfony-users] Re: (Doctrine) as keyword doesn't work as expected. Can't figure out a query :(

2010-03-10 Thread miguelSantirso
I changed the addWhere to addHaving: $q-addSelect('c.starts_at + c.minutes_long*60 AS finishes_at'); $q-addHaving(finishes_at = ?, time()); And It doesn't work yet. I get the following error: SQLSTATE[HY000]: General error: 1 no such column: c__0 I am using sqllite,

Re: [symfony-users] Need Insight On Backend Forms VS Frontend Forms

2010-03-10 Thread Daniel Lohse
Just subclass your backendForm to frontendForm and use the new useFields method to a few unwanted widgets and their validators. As for the password field: I think I added a updatePasswordColumn($value) method to my form class and when it was blank ($value === '') I returned false in this

[symfony-users] Re: Need Insight On Backend Forms VS Frontend Forms

2010-03-10 Thread Darren884
Thank you so much Daniel for the awesome response. I understand clearly now. On Mar 10, 11:08 am, Daniel Lohse annismcken...@googlemail.com wrote: Just subclass your backendForm to frontendForm and use the new useFields method to a few unwanted widgets and their validators. As for the password

[symfony-users] Re: Escape %2f in URL solution

2010-03-10 Thread Richtermeister
Hey Javier, I've come across this solution (simple string replace) a couple of times, and it works well for me so far, so I guess it's ok. Daniel On Mar 10, 10:03 am, Javier Sanchez javija...@gmail.com wrote: Hi all This is my problem. When i want to route with a parametrer slash / like

Re: [symfony-users] Re: Error 500 when i try to login the web app in production

2010-03-10 Thread Javier Garcia
More news: when i get that 500 error this line below is written also in web/error_log: [10-Mar-2010 14:37:57] PDO Connection Error: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/opt/lampp/var/mysql/mysql.sock' (2) Even if i have written this in databases.yml:

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

2010-03-10 Thread lxtechie
Hi If been trying to use doctrine's inheritance feature . I add my own primary key in the child table (in this case my_id) but if I try and use a filter in the backend I get the following error : SQLSTATE[HY093]: Invalid parameter number: parameter was not defined my schema.yml file: SysRoot:

[symfony-users] Re: Symfony 2 + Doctrine 2 : what about behaviours ?

2010-03-10 Thread theredled
@Raphael I'm talking about Doctrine's behaviors : http://www.doctrine-project.org/documentation/manual/1_2/en/behaviors @rooster: Okay, I'll wait and see what Doctrine extensions and Sf bundles will bring :D Nothing in Sf 2's core I guess... On 9 mar, 22:38, rooster (Russ) russmon...@gmail.com

[symfony-users] Memory usage...

2010-03-10 Thread Bruno Reis
Hi all... how much memory a normal sf + doctrine thread uses? We are having serious problems here with an application. I seems like it´s leaking memory, we updated php to 5.3 but had no success at all. Apache threads start with 16 MB and soon get to 50MB. Does anyone know what might be

[symfony-users] Re: Memory usage...

2010-03-10 Thread aalexand
The memory footprint depends on the application goals and size really, but if you're trying to create something simple the chances are you've got a problem in the materialisation of queried database objects in the doctrine layer or in your action logic. Can you be more specific about your set-up

[symfony-users] Jobeet Tutorial

2010-03-10 Thread DEEPAK BHATIA
Hi, I have created the jobeet tutorial but following command is failing php symfony propel:generate-module --with-show --non-verbose-templates frontend job JobeetJob Error Message:- [?php use_stylesheets_for_form($form) ?] [?php use_javascripts_for_form($form) ?] Fatal error: Class

[symfony-users] propel:data-load gets a cli error

2010-03-10 Thread manguito
After entering the propel:data-load task, using the command line interface or neatbeans I get a CLI error error signature ModName: php_pdo_mysql.dll I use PHP 5.2.10 (manually installed), Apache 2.2.13 and Mysql 5.1 Anybody willing to help me? manguito -- If you want to report a

[symfony-users] Re: Jobeet Tutorial

2010-03-10 Thread Parijatha Kumar
Hi, Before you build the modules, you have to build the form classes first. That means before you issue your propel:generate-module command, you should issue propel:build-form command. That works for me with doctrine also. Thank you. -- Parijatha Kumar On Mar 11, 10:59 am, DEEPAK BHATIA

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

2010-03-10 Thread Parijatha Kumar
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 came across a problem. The default templates generated from Symfony CLI display the 'ID' column as a link to showSuccess template by default. But i don't want that. Instead I

Re: [symfony-users] Re: Jobeet Tutorial

2010-03-10 Thread DEEPAK BHATIA
Thanks, it is working now :-) On Thu, Mar 11, 2010 at 12:18 PM, Parijatha Kumar parijathaku...@gmail.comwrote: Hi, Before you build the modules, you have to build the form classes first. That means before you issue your propel:generate-module command, you should issue propel:build-form

[symfony-users] Re: Web Server Configuration

2010-03-10 Thread deresh
try changing your host file line adressing jobeet from 10.0.1.66 www.jobeet.com.localhost to 127.0.0.1 www.jobeet.com.localhost becouse you have set your virtual host on apache to listen to local ( 127.0.0.1) IP not the external interface one ( 10.0.1.66) when you fix that part you should