symfony1.4

Symfony 1.4: how to enable non-numerical IDs for routes in admin generator?

My model is built on non-numerical ID's (36-char. GUID to be specific). The problem is that when I run symfony 1.4 admin generator, it assumes that all my IDs are numeric and applies default routing requirements. I tried providing specific routing requirements as advised here: http://www.codemassacre.com/2009/04/27/symfony-12-admin-wit...

symfony doctrine:insert-sql - "Couldn't locate driver named mysql" error

hey, I am a newbie in symfony. I am following this joobet tutorial on symfony-project.com, I am on there day 3 http://www.symfony-project.org/jobeet/1_4/Doctrine/en/03 Whenever I type php symfony doctrine:insert-sql, I get the following error: doctrine creating tables Couldn't locate driver named mysql I am using it on WAMP. I have sym...

Use symfony 1.4 without changing apache configuration

Is it possible to set the /web directory as webroot without changing apache configuration file? I tried using the following .htaccess code, but if i go to localhost/module/, it displays 404 error. But if i go to localhost/web/module/ then everything works. <IfModule mod_rewrite.c> RewriteEngine on RewriteRule sf/(.*) lib/vendo...

Rendering same form repeated in Symfony for bulk insert

Hello, I been trying all day to do multiple insert for the same form based on a number and i couldn't go any where with it. I hope someone here would be help me out... am using admin generator on 1.4 doctrine. I have a form which i generated with only two fields. what am trying to do is, based on a number inserted the form will be repea...

How to display a sfWidgetFormSelectRadio item without showing the label

I am using Symfony 1.3.6 on Ubuntu 10.0.4. I am using the sfWidgetFormSelectRadio to allow a user to select a picture from a list, in a form. In the action, the pictures are set up like this: $this->form->setWidget('chosenpic', new sfWidgetFormSelectRadio(array( 'choices' => $this->pictures, ...

How to embed sfDoctrineGuardPlugin signin form into an existing template (homepage) and have it take on the template it occurs in

I'm working with the Symfony Framework, I have installed the sfDoctrineGuardPlugin. I already have my own homepage design and I'm trying to embed my sfGuardAuth signin/login fields into my homepage. I want them to use my homepage design too. I paste this into one of my table rows: <?php echo $form['username']->render() ?> which is bas...

Integrity constraint violation: 1048 Column cannot be null error

I'm getting a weird error in symfony 1.4 with doctrine 1.2. My schemas seem to be normal. But whenever I execute the doctrine:build --all --no-confirmation --and-load task, it would output the error SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'default_edition_id' cannot be null. If I set notnull to false for the default_...

Symfony Doctrine migrations : removeIndex not working

I'm using Symfony 1.4 with Doctrine. Here's my initial schema: Page: tableName: page columns: ref: type: string(50) notnull: true unique: true I'd like to remove the index on the ref column using migrations. So the schema becomes: Page: tableName: page columns: ref: type: string(50) notn...

Symfony Widget: sfWidgetFormDoctrineChoice vs. i18n - Undefined column

Hi. For a form I want to retrieve all entries of a table. Therefore I use the getChoices method of the sfWidgetFormDoctrineChoice class. protected function getPaymentTypes(){ $typesWidget = new sfWidgetFormDoctrineChoice( array( 'model'=>'PaymentType', 'method'=>'getName', 'order_by'=...