[symfony-users] Dynamically generate a menu in the layout template: are components available in Symfony2?

2011-03-09 Thread Nicolas Wormser
Hi all, I'd like to generate a menu in my layout template which is application specific (not in a bundle, straight in the /app/views directory). For that purpose I have to change the controller that renders the menu so that I can construct an array with all the information needed to create each

[symfony-users] Cannot fetch ColumnMap

2011-03-09 Thread antonydb
Hello everyone. I'm working on a website that uses Symfony 1.2 and Propel 2.1. Whenever I try to add a column to a table I get this error: Unable to execute UPDATE statement. [wrapped: Cannot fetch ColumnMap for undefined column: MYCOLUMNAME] Funny thing is I don't get an error on my local

[symfony-users] Re: Overriding Bundle Templates doesn't work

2011-03-09 Thread scott
I am also having the same problem can you confirm if you are using PR7? On Mar 3, 2:29 am, J. Dreesen mapfre.bel...@gmail.com wrote: I have the same problem :/ On 2 Mrz., 11:33, Brocco broccola...@gmail.com wrote: Hello, I'm writing a bundle for symfony2 and I would like to override

[symfony-users] [PR7] Bug using MongoDB?

2011-03-09 Thread HiDDeN
I have just downloaded the PR7 version of Symfony2, and tried to create a schema for MongoDB, and I got this error: php app/console doctrine:mongodb:schema:create PHP Fatal error: Class 'm' not found in /var/www/symfony/app/cache/ dev/appDevDebugProjectContainer.php on line 458 Fatal error:

Re: [symfony-users][symfony2][pr7]REST bundle XML error

2011-03-09 Thread Christophe COEVOET
Le 08/03/2011 23:26, Mark C a écrit : I'm trying to use EverzetRestfulControllersBundle, using the updated fork by sheknows here: https://github.com/sheknows/EverzetRestfulControllersBundle, however I get the following error: Fatal error: Uncaught exception 'InvalidArgumentException' with

Re: [symfony-users] [Symfony2] Overriding Bundle Templates doesn't work

2011-03-09 Thread Christophe COEVOET
Le 02/03/2011 11:33, Brocco a écrit : Hello, I'm writing a bundle for symfony2 and I would like to override some of its template in my app. I tried doing what's written in the doc there: http://docs.symfony-reloaded.org/master/guides/templating.html#overriding-bundle-templates But it doesn't

[symfony-users] Change the umask in cache files

2011-03-09 Thread Sergi
Due to some issues with my hosting, my user does not have permissions to erase cache directories/files when I update changes to server. They told me to change the mode Symfony creates the files with umask 0002. How can I do that? -- If you want to report a vulnerability issue on symfony, please

Re: [symfony-users] Change the umask in cache files

2011-03-09 Thread Thomas Rabaix
set the umask in your index.php file ... On 9 mars 2011, at 11:57, Sergi wrote: Due to some issues with my hosting, my user does not have permissions to erase cache directories/files when I update changes to server. They told me to change the mode Symfony creates the files with umask 0002.

[symfony-users] [Symfony2] Testing your Doctrine Entities and Repositories

2011-03-09 Thread Don Pinkster
I am testing my services (controllers) with plain PHPUnit, this all works great. But now I want to test my entities and repositories. How can I specify the environment the tests are run in with PHPUnit without the Symfony webtest client? -- If you want to report a vulnerability issue on

[symfony-users] Re: [symfony2][pr7]REST bundle XML error

2011-03-09 Thread Mark C
Fixed it myself. The problem was the xsd being used, Symfony2 PR7 is using a different location for its services schema: container xmlns=http://www.symfony-project.org/schema/dic/services; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

[symfony-users] Re: User Authentication

2011-03-09 Thread Maragues
Hi, I'm having the exact same problem. Florian, I set security.yml as you suggest and unfortunately it still doesn't work. Regards On 9 mar, 08:03, Florian Semm florian.s...@gmx.de wrote: Am 08.03.2011 15:56, schrieb Donald: OK, I modified the security.yml file as follows: #

[symfony-users] Re: User Authentication

2011-03-09 Thread Philip Cole
Hi Florian, Thanks for your help. I tried this and it doesn't work either. I have no idea what is wrong and I think the latest docs (even on github) may be out of synch or something is broken. Although I do not rule out that it could be my fault.S Does somebody have form based user login working

[symfony-users] Re: Dynamically generate a menu in the layout template: are components available in Symfony2?

2011-03-09 Thread Nicolas Wormser
Solution is here: http://symfony.com/doc/2.0/book/templating.html#embedding-controllers “ Whenever you find that you need a variable or a piece of information that you don't have access to in a template, consider rendering a controller. Controllers are fast to execute and promote good code

[symfony-users] Using Symfony2 Session and normal PHP Session Side-by-side

2011-03-09 Thread Roger Webb
Greetings, We have a large site/database in place and re-writing the whole thing all at one simply isn't an option. So, I would like to start converting the site in pieces as I have time allotted. The problem arose when I tried to access $_SESSION inside my controller. It was empty. I

[symfony-users] Re: Change the umask in cache files

2011-03-09 Thread Sergi
I'm using Symfony2, I am trying to umask in the app.php but does not solve the problem. The issue appears to be that files in the cache belong to apache group, and in order to delete them they have to be created with write permissions to that group. Is there any way to modify this? Thanks! On 9

[symfony-users] Re: Bug using MongoDB?

2011-03-09 Thread HiDDeN
It seems this is occuring when using Memcache as the metadata cache. On 9 mar, 11:43, HiDDeN davidmoralesmoj...@gmail.com wrote: I have just downloaded the PR7 version of Symfony2, and tried to create a schema for MongoDB, and I got this error: php app/console doctrine:mongodb:schema:create

[symfony-users] Re: User Authentication

2011-03-09 Thread Donald
Hi Maragues, Unfortunately I haven't found a fix for this yet. I've put this on the back burner until I either get some help from the forums, or Fabien updates the symfony sandbox. For the moment, I'm going to assume that some recent update to the sandbox master branch broke authentication. I

[symfony-users] Trying to set a field in executeUpdate()

2011-03-09 Thread Javier Garcia
Hi, I have just generated a module and I'm trying to set the value of a field before saving it this way: public function executeUpdate(sfWebRequest $request) { $this-process = $this-getRoute()-getObject(); $this-form = $this-configuration-getForm($this-process);

[symfony-users] sfTinyTextArea widget populate function with problem

2011-03-09 Thread Rafael
Hey guys, I'm with a strange problem. When I use a sfTinyTextArea widget from the extra widgets plugin symfony form can't populate it after a submit. When I change to the TextArea widget, everything works. Could anyone help me? Thanks a lot. -- If you want to report a vulnerability issue on

Re: [symfony-users] sfTinyTextArea widget populate function with problem

2011-03-09 Thread Przemysław Kosakowski
Can you pit brew some code? W dniu 2011-03-09 21:24 użytkownik Rafael rafaelcc...@gmail.com napisał: Hey guys, I'm with a strange problem. When I use a sfTinyTextArea widget from the extra widgets plugin symfony form can't populate it after a submit. When I change to the TextArea widget,

[symfony-users] Problem at sfDatagrid using the $base_query, it is not searchable

2011-03-09 Thread dartheroz
Hi, Good Day to All! Ive been using the sfDatagrid Plugin, but i came across to use a custom query not from doctrine classes. So using the parameter $base_query is a way to go but upon using it i came across this problem that the columns from the join table is not longer searchable. Below is