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

2010-03-11 Thread Javier Garcia
Problem solved: locally i have, for example, my web directory in /opt/lammp/htdocs/ rs/web. Remotely i had /public_html/web, now I changed to /public_html/ rs/web and no error 500 anymore. Javi On Mar 10, 9:45 pm, Javier Garcia tirengar...@gmail.com wrote: More news: when i get that 500

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

2010-03-11 Thread Javier Garcia
Problem solved: locally i have, for example, my web directory in /opt/lammp/htdocs/ rs/web. Remotely i had /public_html/web, now I changed to /public_html/ rs/web and no error 500 anymore. Javi On Mar 10, 9:45 pm, Javier Garcia tirengar...@gmail.com wrote: More news: when i get that 500

[symfony-users] Why is this bug still not fixed?

2010-03-11 Thread SymfonyNewbie
http://groups.google.com/group/symfony-devs/browse_thread/thread/73bf59078347a57b/9ea00a7ebaa591de It's posted by someone very long ago,single action per file is not going to be fully supported? -- If you want to report a vulnerability issue on symfony, please send it to security at

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

2010-03-11 Thread Gareth McCumskey
First of all ensure that you aren't benchmarking memory usage in the dev environment as it adds a ton of extra debug/log/etc information into memory. Secondly, look at your use of hydration elements in the ORM. I have never used Doctrine, but we have switched a number of our queries that return

[symfony-users] Check for a non-existing relation in Propel

2010-03-11 Thread HAUSa
I have a multi-multi relation in my model: zipcode: id:{ type: integer, required: true, primaryKey: true, autoIncrement: true } region_id: { type: integer, foreignTable: region, foreignReference: id, required: true, onDelete: cascade } slug: { type: varchar, required:

[symfony-users] Admin generator, embedded forms not saving their many-many's

2010-03-11 Thread Alexander Deruwe
Hello everyone, When I embed Form B into Form A in an admin module, where Form B contains a many-many relation, the changes to the many-many table (with the sfWidgetFormSelectDoubleList, or even with the default widget) are not saved to the db. If I create a separate admin module directly for

RE: [symfony-users] Admin generator, embedded forms not saving their many-many's

2010-03-11 Thread Alexander Deruwe
http://trac.symfony-project.org/ticket/5867 I'm using symfony 1.4 and have the same problem, fixed the same way. Any update on what is going on here? Is it supposed to be fixed and am I missing something? A. -Oorspronkelijk bericht- Van: symfony-users@googlegroups.com

[symfony-users] Event dispatcher can't find the class in lib/vendor

2010-03-11 Thread Dong YANG
Hello everyone, I would like use Event dispatcher to call one third party method in *lib/vendor/*, but it doesn't work. the dispatcher can't find this class. But when I use one class in *lib/*, it works, I don't know why the first test doesn't work. Here is my code:

[symfony-users] Fwd: Event dispatcher can't find the class in lib/vendor

2010-03-11 Thread Dong YANG
Wow, just find why. Because from symfony 1.3 class in vendor don't load automatically, if you wan to do so, just include this in autoload.yml here is the doc: http://www.symfony-project.org/tutorial/1_4/fr/upgrade it works now, cool -- Forwarded message -- From: Dong YANG

[symfony-users] about transfert of a symfony project

2010-03-11 Thread mbello
hi i have change my computer to another . i have began a symfony project in my previous machine and i would like to transfer it in my new laptop what is the procedure to do it? thanks in advance! mbello -- If you want to report a vulnerability issue on symfony, please send it to security at

[symfony-users] Unescaping HTML content

2010-03-11 Thread Romain Pouclet
Hi all, I have a Page model with a content property. This content contains HTML coming from the tinymce WYSIWYG editor, but when I do : ?php // ... echo $page-getContent(); // ? The HTML tags are escaped, which is good but I don't want Symfony to escape this one. Here is what I tried :

Re: [symfony-users] Jobeet Tutorial

2010-03-11 Thread Eno
On Thu, 11 Mar 2010, DEEPAK BHATIA wrote: 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

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

2010-03-11 Thread Eno
On Wed, 10 Mar 2010, manguito wrote: 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? What

[symfony-users] Re: Unescaping HTML content

2010-03-11 Thread Raphael Schumacher
Hi Romain, how about $page-getContent(ESC_RAW); or also: $page-getRawValue()-getContent(); ? With $page you are actually talking to a sfOutputEscaperObjectDecorator object, which holds your Page object in its $value property. See the __call method in class sfOutputEscaperObjectDecorator

Re: [symfony-users] Re: Unescaping HTML content

2010-03-11 Thread Romain Pouclet
None of this worked, and I really don't get why even my var_dump() is escaped, it never happened before :/ With : ?php slot('title', $page-getTitle()); echo $page-getContent(ESC_RAW); die(); ? I can see my HTML is properly unescaped, somehow my view is re-escaped, is it possible to

Re: [symfony-users] propel:build-schema not working[jobeet]

2010-03-11 Thread Gábor Fási
Did you generate your project with `--orm=Propel` ? Check your ProjectConfiguration class, is the propel plugin enabled? On Thu, Mar 11, 2010 at 13:26, Tahar Yazid Touaibia ytouaib...@gmail.com wrote: Hello, I am new to symfony, i just installed it and am trying to follow the jobeet tutorial.

[symfony-users] Re: Unescaping HTML content

2010-03-11 Thread Raphael Schumacher
Have you verified (e.g. using your debugger) that the object's classnames are in reality what you should expect in theory? - the escaping strategy for your application? - the classname of $page object? (should be sfOutputEscaperObjectDecorator) - the classname of $page-$value property? (should be

Re: [symfony-users] Re: Unescaping HTML content

2010-03-11 Thread Romain Pouclet
Le 11 mars 2010 à 15:30, Raphael Schumacher a écrit : Have you verified (e.g. using your debugger) that the object's classnames are in reality what you should expect in theory? http://up.r12t.fr/8c2b8c76.png Yep, It's NOEPage as it's supposed to be - the escaping strategy for your

Re: [symfony-users] Jobeet Tutorial

2010-03-11 Thread DEEPAK BHATIA
Thanks, the response from symfony google groups is ogood that I prefer putting queries at the shot On Thu, Mar 11, 2010 at 7:16 PM, Eno symb...@gmail.com wrote: On Thu, 11 Mar 2010, DEEPAK BHATIA wrote: I have created the jobeet tutorial but following command is failing php

Re: [symfony-users] Unescaping HTML content

2010-03-11 Thread Giorgio Mandolini
Hi, try $page-getContent('ESC_RAW'); or setup the default escaping behaviour in settings.yml check this: http://www.symfony-project.org/book/1_2/07-Inside-the-View-Layer#chapter_07_output_escaping Giorgio Mandolini 2010/3/11 Romain Pouclet pall...@gmail.com Hi all, I have a Page model with

[symfony-users] i need help urgent

2010-03-11 Thread Belgacem TLILI
hello for all symfony users, i have a problem with my symfony project i have two forms ** main form for user ** embed form for phonenumber the relation between user and phonenumber is one-many in the model phonenumber i have a column id_user in the file : UserForm.class.php i have ahh this

[symfony-users] Re: Task configure:database is not defined

2010-03-11 Thread maestrozappa
I'm little bit noob too with this framework... I've read online php cli does not work for windows (I have the same error: configure:database, but the check_configuration.php file tell me also that posix is not enabled). is that true? how can I set this option on windows? thank you. On 24 Feb,

[symfony-users] Embedded forms

2010-03-11 Thread Lea Haensenberger
Hi all, I have a form with an embedded form and I'd like to reorder the fields in the form and optionally mix fields from the main form and the embedded form. I found this blog post http://www.blogs.uni-osnabrueck.de/rotapken/2009/03/13/symfony-merge-embedded-form/ and I think the approach is not

Re: [symfony-users] i need help urgent

2010-03-11 Thread Eno
On Thu, 11 Mar 2010, Belgacem TLILI wrote: hello for all symfony users, i have a problem with my symfony project i have two forms ** main form for user ** embed form for phonenumber the relation between user and phonenumber is one-many in the model phonenumber i have a column id_user

Re: [symfony-users] Unescaping HTML content

2010-03-11 Thread Romain Pouclet
It does not change anything, I really don't get why and more importantly why my $page variable classname is sfOutputEscaperIteratorDecorator? That doesn't make any sense :/ I tried to deactivate the escaping, and I got my HTML properly displayed, the problem is somewhere else... Le 11 mars

Re: [symfony-users] Unescaping HTML content

2010-03-11 Thread Marc Weistroff
It's because objects and variable are escaped before being passed to the view. Are you echoing your content inside a slot (or partial?) that might be automatically or manually escaped after that? On Thu, Mar 11, 2010 at 4:52 PM, Romain Pouclet pall...@gmail.com wrote: It does not change

[symfony-users] Telling Symfony to not create Form and Filter Classes from a Behavior

2010-03-11 Thread josetonyp
Hi every one, I'm using Symfony for a time and now I'm re-factorizing some code and I face something that I don't know how to solve: Using: Symfony 1.4, PHP 5.3 , MySQL, Linux By the I create a Doctrine Behavior : ?php class VotableBehavior extends Doctrine_Record_Generator { protected

Re: [symfony-users] Unescaping HTML content

2010-03-11 Thread Romain Pouclet
I finally figured it out, this is what I found when I looked at my colleague layout.php : http://up.r12t.fr/94fc46c2.png He was passing $sf_content to a partial, so escaping then unescaping in my template, and finally re-escaping in the partial T_T Thanks for your time anyway :) Le 11 mars

[symfony-users] best practice change web directory

2010-03-11 Thread Kevin
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 { public function setup() { /* change web dir to html */

[symfony-users] Re: i need help urgent

2010-03-11 Thread Belgacem TLILI
think you Eno, this does not help me i will explain my problem in a different why: i have 3 forms 1 - main form use a foreign key from form2 2- form2 3- form3 use a foreign key from main form so to save all the form in database we should 1= save object of form2 2= then save object of main form

Re: [symfony-users] Re: i need help urgent

2010-03-11 Thread Alexandru-Emil Lupu
Hmmmz i dunno exactly ... but: 1. you could merge the forms. 2. Override the save or saveEmbededForms method 3. Make sure that you are using the 3rd form ... the rest should be embeded... Form2 is embeded in Form1 which is embeded Form3 ... After just call new Form3(); Alecs On Thu, Mar 11,

[symfony-users] Paginate the result of two queries

2010-03-11 Thread Javier Garcia
Hi, to get the friends of a user i have a table like this: AmigoUsuario: columns: user1_id: type: integer(4) user2_id: type: integer(4) estado: type: integer default: 0 relations: User1: class: Usuario local: user1_id foreignAlias:

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

2010-03-11 Thread Augusto Flavio
You can do this: $this-setWebDir($this-getRootDir().'/public_html'); bye Augusto Morais 2010/3/11 Kevin kevinb...@gmail.com Hello, just wondering if the following is considered the best practice for changing the web directory from the default www to html? class ProjectConfiguration

[symfony-users] Re: i need help urgent

2010-03-11 Thread Belgacem TLILI
thank (not think) you Alexandru-Emil this is the solution i must override the saveEmbededForms method public function saveEmbeddedForms($con = null, $forms = null) { if (null === $con) { $con = $this-getConnection(); }

[symfony-users] Doctrine Admin Generator Problem

2010-03-11 Thread Jim Krehl
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 Umbrellas, specifically ... class Umbrella extends sfDoctrineRecord { public function setUp () {

[symfony-users] Simple Form Question

2010-03-11 Thread Darren884
Hi guys here is my code in my controller (part of it): $this-form-setDefault('customer_id', $this-getUser()- getAttribute('customer_id')); $SupporTicket = $this-form-save(); $this-hide_form = true; The problem I am having is I don't want to make customer_id a hidden field but set it before the

[symfony-users] Linking to the upload path from a template.

2010-03-11 Thread Luis Zarrabeitia
Hello. I'm new to Symfony and I decided to learn by developing a small web app. Right now, I have a form that uploads an image: 'image' = new sfValidatorFile(array( 'required' = false,

[symfony-users] Re: Custom logger via factory.yml?

2010-03-11 Thread Scott S.
Hi Daniel, I'm attempting to implement your suggested method of custom logging, since I have a requirement of logging certain activities in my application outside the standard log files. I've called my event type activity.log for reference. Logging messages of type activity.log works. The

[symfony-users] swift mailer - delivery_strategy: none

2010-03-11 Thread Kevin
When the delivery strategy is set to none should swift mailer still be trying to connect to the smtp server? In my dev environment i don't want it to. I thought setting delivery_strategy to none prevented this. Is this expected? Thanks, Kevin -- If you want to report a vulnerability issue on

Re: [symfony-users] propel:build-schema not working[jobeet]

2010-03-11 Thread Tahar Yazid Touaibia
in the tutorial, i did not see any instruction concerning : --orm=Propel in my configuration file here is what i got : ?php require_once dirname(__FILE__).'/..\lib\vendor\lib/autoload/sfCoreAutoload.class.php'; sfCoreAutoload::register(); class ProjectConfiguration extends

[symfony-users] Re: Facebook Connect added auth_token

2010-03-11 Thread Ricign
Hi Franks, Can you show us how to use that session storage in detail. I'm newbie on SF and FB. Thanks, Rick On Mar 4, 11:25 pm, Frank Stelzer d...@bleedingmoon.de wrote: Hi, I wrote a complete fb application and had a similar problem. The   problem was that the fb requests lost the session

Re: [symfony-users] propel:build-schema not working[jobeet]

2010-03-11 Thread Gareth McCumskey
Just change sfDoctrinePlugin to sfPropelPlugin :) If you don't specify --orm=Propel on project creation symfony from 1.2 and up defaults to Doctrine. On Fri, Mar 12, 2010 at 6:10 AM, Tahar Yazid Touaibia ytouaib...@gmail.com wrote: in the tutorial, i did not see any instruction concerning :

[symfony-users] Re: Simple Form Question

2010-03-11 Thread Raphael Schumacher
Which action are you in, executeNew(), executeCreate(), executeEdit() or any other one? The thing in general is that the defaults are used for filling the widgets with default data when you render the form for displaying it to the user. It's not taken into the object itself when you are about to

Re: [symfony-users] Linking to the upload path from a template.

2010-03-11 Thread Gareth McCumskey
In your template: ?php echo image_tag($sf_config-get('sf_upload_dir').'/myImages/'.$image_name) ? The $sf_config variable is a copy of the sfConfig object used in the actions. On Fri, Mar 12, 2010 at 12:10 AM, Luis Zarrabeitia zarrabei...@gmail.com wrote: Hello. I'm new to Symfony and I