[symfony-users] Re: Foreign keys are not getting populated when saving details records

2010-06-14 Thread Michael Hodges
Hello all, I've been spending a lot of time debugging my problem and note that for the following: UnitOfWork.php public function saveRelatedLocalKeys(Doctrine_Record $record) foreach ($record-getReferences() as $k = $v) { $record-_references reflects the schema

[symfony-users] Re: Automated web installer

2010-06-14 Thread Tom Ptacnik
- User has to prepare hosting for your app (this can't by done by your install script) - You have to create an install script which will create a database and set database connection settings. On 10 čvn, 14:26, Davide Bellettini davide.bellett...@gmail.com wrote: Hello everybody, i'm working

[symfony-users] Re: practical symfony guide 1.4 routing (or apache?) question

2010-06-14 Thread Tom Ptacnik
Look here http://code-launch.com/?p=36 same problems as you've described On 12 čvn, 11:59, Gábor Fási maerl...@gmail.com wrote: The symptoms you described show otherwise. Try to uncomment the IfModule tags in your .htaccess, if you get an internal server error, you surely have it disabled.

[symfony-users] Re: Managing i18n content for frontend in the backend

2010-06-14 Thread Tom Ptacnik
Thank you very much for your guide. I've solved I18N in a little different way, but you way is inspirational. On 11 čvn, 11:49, Christopher Schnell ty...@mda.ch wrote: Forgot to mention one thing. The objects __toString methods need to be able to do some sort of language fallback like  

[symfony-users] app.yml array is not array on first level

2010-06-14 Thread Tom Ptacnik
Do someone know why first solution produce bad array and second will produce good array? I'm talking abou settings in app.yml 1) all: frontend_cultures: [cs, en] will produce (cache/app/dev/app.yml.php): 'app_frontend_cultures_0' = 'cs', 'app_frontend_cultures_1' = 'en', 2) all: frontend:

Re: [symfony-users] Re: practical symfony guide 1.4 routing (or apache?) question

2010-06-14 Thread Steve Spiller
I had a similar issue - would 404 if I didn't use frontend_dev.php. Turned out that a simple clearing of the cache solved the issue: php symfony clear-cache HTH On 14 June 2010 08:37, Tom Ptacnik to...@tomor.cz wrote: Look here http://code-launch.com/?p=36 same problems as you've described

[symfony-users] Doctrine many to many relation problem

2010-06-14 Thread Jon
Hi, I have a problem with de many to many relations in doctrine. I have a database with users and jobs: Profile: actAs: [Timestampable] connection: doctrine tableName: sf_guard_user_profile columns: user_id: type: integer(5) first_name: type: string(255)

[symfony-users] ckwebservice plugin: return an xml response

2010-06-14 Thread Dijil
I have been playing around with the plugin ckwebservice plugin (version 3.1.0 and symfony version 1.2) for the past few days. I was able to return a single value using that plugin (like an integer or a string) by following the instructions in plugin doc. But I could not find a way to return an

[symfony-users] Re: app.yml array is not array on first level

2010-06-14 Thread pghoratiu
Hi! I think this is by design, sort of a undocumented feature. I had this problem as well when I first encountered it and since than I remembered to always use the second level to store arrays. gabriel On Jun 14, 11:43 am, Tom Ptacnik to...@tomor.cz wrote: Do someone know why first

Re: [symfony-users] Forcing a canonical hostname for absolute links without clobbering the entire context: possible?

2010-06-14 Thread Tom Haskins-Vaughan
What about just a new helper, e.g. email_link_to() which calls link_to but adds the hostname on the front? Store the hostname in your app.yml to make it a little more flexible. On Fri, Jun 11, 2010 at 12:30 PM, Olivier LOYNET olivierloy...@gmail.com wrote: Hi, Is any solution has been found to

Re: [symfony-users] app.yml array is not array on first level

2010-06-14 Thread Eno
On Mon, 14 Jun 2010, Tom Ptacnik wrote: Do someone know why first solution produce bad array and second will produce good array? I'm talking abou settings in app.yml 1) all: frontend_cultures: [cs, en] will produce (cache/app/dev/app.yml.php): 'app_frontend_cultures_0' = 'cs',

[symfony-users] sfMenuGeneratorPlugin

2010-06-14 Thread B.O.G
Hi im trying to use sfMenuGenerator. I have this in my app.yml sf_menu_generator: root: text: 'Choose' items: [users, contacts] contacts: text: 'Contacts' link: 'contacts/list' shortcut: 'c' deny: [manager, contenteditor] users:

[symfony-users] Plugin post install processing

2010-06-14 Thread Stéphane ERARD
Hi list, I'm creating a plugin. When user installs it, I need my plugin to do some processing. How do I do that ? I've seen the plugin.post_install event, but where do I put the connect ? Thank you ! -- If you want to report a vulnerability issue on symfony, please send it to security at

Re: [symfony-users] Plugin post install processing

2010-06-14 Thread Serkan Koyuncu
Hello, I think, you have to create another task which user should run after installing your plugin. And you should write this on Readme on something. Regards, Serkan 2010/6/14 Stéphane ERARD stephane.er...@gmail.com: Hi list, I'm creating a plugin. When user installs it, I need my plugin to

[symfony-users] Functional tests for Form validators?

2010-06-14 Thread Christopher Schnell
Hi all, As I am writing lots of functional tests these days, I was wondering if one should test the standard validators of a form. Let's say, we have a change Password form. This simple form with three fields would require lots of tests, for example . Is the current password

Re: [symfony-users] Plugin post install processing

2010-06-14 Thread Eno
On Mon, 14 Jun 2010, Serkan Koyuncu wrote: I think, you have to create another task which user should run after installing your plugin. Probably you need to supply the CLI task 'plugin:publish-assets'. -- -- If you want to report a vulnerability issue on symfony, please send it to

Re: [symfony-users] Plugin post install processing

2010-06-14 Thread Stéphane
Yes, I think the task is the best way, as the publish-assets is about assets, and what I need is creating configurations files at the project-level. Thank you ! Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On

[symfony-users] Re: Sorting in one to many relationships

2010-06-14 Thread Tom Ptacnik
In yaml Object: connection: doctrine options: orderBy: column DESC tableName: tablename columns: On 13 čvn, 12:32, Ozzy oye...@gmail.com wrote: Hi, I have a table which is called Articles. It is related to another table ArticleComment via:         $this-hasMany('ArticleComment

[symfony-users] Re: How to show an object_action based on a specific condition (admin generator)?

2010-06-14 Thread Tom Ptacnik
I think you can use GeneratorHelper for that ... apps/appname/module/ lib/moduleGeneratorHelper.class.php On 14 čvn, 00:49, Bruno Reis bruno.p.r...@gmail.com wrote: Hi, Is there a way to specify a specific condition required to show one object_action in a list? I want to show the action

[symfony-users] Re: Doctrine many to many relation problem

2010-06-14 Thread Tom Ptacnik
I think it's because different integer types... they must be the same when you want to create relation user_id: type: integer(5) ... check which type is on the other side. On 14 čvn, 12:00, Jon jon...@gmail.com wrote: Hi, I have a problem with de many to many relations in doctrine. I

[symfony-users] Too many redirects error on symfony.

2010-06-14 Thread Bruno Reis
Hi, I´m using a filter with the following code to change from http to https and back from https to http. Sometimes when leaving from a https page, the browser gives a too many redirects error. I cannot reproduce the error easily. It´s not all the time that it happens. Normaly it still happening

Re: [symfony-users] Functional tests for Form validators?

2010-06-14 Thread Michael Hodges
*The Pragmatic Programmer: From Journeyman to Master *by Andrew Hunt and David Thomas labels their chapter on this topic Ruthless Testing which suggests one answer to your question. It's an excellent book. - Michael On Mon, Jun 14, 2010 at 4:12 AM, Christopher Schnell ty...@mda.ch wrote: Hi

[symfony-users] Re: How to show an object_action based on a specific condition (admin generator)?

2010-06-14 Thread Florian
Hi, read this http://www.symfony-project.org/more-with-symfony/1_4/en/02-Advanced-Routing Or http://www.symfony-project.org/reference/1_4/en/10-Routing You have an object option to define which method to use to retrieve your object! Hope it helps! On 14 juin, 00:49, Bruno Reis

[symfony-users] ioMenuPlugin

2010-06-14 Thread B.O.G
i'm getting this error while generating the menu (but it shows fine): Notice: Undefined variable: html in ... Then about credentials: Can i do this: $this-menu = new ioMenu(); $this-menu-addChild('titulo', '@homepage')- setCredentials(array('credencial1', 'creencial2', 'credencial3')); ¿? if

[symfony-users] Form helper on symfony 1.4

2010-06-14 Thread Gustavo Fonseca
hi, The book A gentle introduction do symfony[1] tells me that there is a helper called Form which can generate a select element containig a country list, but this helper is deprecated [2]! Somebody know if this feature does not exists anymore on symfony 1.4?

[symfony-users] App generator

2010-06-14 Thread Parijat Kalia
Hey, I am trying to generate an app on my symfony project...as usual...I have a frontend, and the one I am trying to kickstart is backend. here is the command I am putting in..(following the symfony jobeet tutorial, Day 12: the admin generator) php symfony generate:app --escaping strategy=on

Re: [symfony-users] App generator

2010-06-14 Thread Eno
On Mon, 14 Jun 2010, Parijat Kalia wrote: I am trying to generate an app on my symfony project...as usual...I have a frontend, and the one I am trying to kickstart is backend. here is the command I am putting in..(following the symfony jobeet tutorial, Day 12: the admin generator) php

Re: [symfony-users] App generator

2010-06-14 Thread Eno
On Mon, 14 Jun 2010, Eno wrote: Does the file exist in your web folder? Or you can follow the examples in the help (where the app name is after 'generate:app'but before the options), run symfony help generate:app to see the help. -- -- If you want to report a vulnerability issue on

Re: [symfony-users] App generator

2010-06-14 Thread Parijat Kalia
yes it does... it is the same folder as my other app (frontend_dev.php) (C:\dev\sfproject\apps), an upon ls frontend backend It is in the same folder, and it has all the necessary folders an app has, that is modules, config, libs, templates...etc etc -- If you want to report a vulnerability

Re: [symfony-users] App generator

2010-06-14 Thread Parijat Kalia
How does the help command help in this case...I have the app generatedit's fine...I noticed one thing on the jobeet tutorial site, it states *When you created the frontend application, the production front controller was named index.php. As you can only have one index.php file per directory,

Re: [symfony-users] App generator

2010-06-14 Thread Parijat Kalia
I probed a little further, and created a bunch of test applications, I noticed, that in my web/ folder, unlike a frontend_dev.php, there does not exist an equivalent applicationName_dev.php for the other applications that I have created.For two of these applications, I created using the *php

Re: [symfony-users] App generator

2010-06-14 Thread Parijat Kalia
got it! So on basis of my probing, the everytime u create a new application, after u have created ur inital application (presumably frontend_dev.php), go to the web folder...u shud notice an existing frontend_dev.php which was created by symfony the first time u created an application. For each

Re: [symfony-users] App generator

2010-06-14 Thread Eno
On Mon, 14 Jun 2010, Parijat Kalia wrote: *When you created the frontend application, the production front controller was named index.php. As you can only have one index.php file per directory, symfony creates an index.php file for the very first production front controller and names the

Re: [symfony-users] App generator

2010-06-14 Thread Eno
On Mon, 14 Jun 2010, Parijat Kalia wrote: So on basis of my probing, the everytime u create a new application, after u have created ur inital application (presumably frontend_dev.php), go to the web folder...u shud notice an existing frontend_dev.php which was created by symfony the first

Re: [symfony-users] App generator

2010-06-14 Thread Parijat Kalia
Dude, point out where in the docs this has been specified, ok? I read the docs, and that is why I am pointing out. As far as I am concerned, there are loopholes in the docs. And don't worry about why I wanna learn a framework or not, my prerogative. On Mon, Jun 14, 2010 at 8:57 PM, Eno

[symfony-users] Re: Form helper on symfony 1.4

2010-06-14 Thread el-sid
Hi gustavo, i think you would be better served by reading these manuals: http://www.symfony-project.org/forms/1_2/en/ http://www.symfony-project.org/more-with-symfony/1_4/en/06-Advanced-Forms The forms framework was revamped so these manuals should get you up and going On Jun 14, 11:46 pm,