[symfony-users] Getting doctrine objects attributtes inside a Validator

2009-08-17 Thread jaime
Hi. I'm ussing a class that extends a validator, specifically it extends the sfValidatedFile. What I need is to get the attributes of the Doctrine Object that is been saved. For example, something like $job->getName(), or $job->getId (). I don't know how to access that object, anyone knows?

[symfony-users] Re: sfWidgetFormDoctrineChoice with i18n

2009-08-17 Thread afilina
That code works perfectly. Thank you very much! --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group

[symfony-users] Re: sfWidgetFormDoctrineChoice with i18n

2009-08-17 Thread Andrei Dziahel
Hi. Here is an excerpt from my blablaForm::setup(): > $this->setWidget('country', > new sfWidgetFormDoctrineSelect(array('model' => 'Country', > 'query' => Doctrine::getTable('Country')-> > createQuery('c')->leftJoin('c.Translation ct')->orderBy('c.order DESC, > ct.name ASC';

[symfony-users] Re: sfWidgetFormDoctrineChoice with i18n

2009-08-17 Thread afilina
Could you please demonstrate how to use this method? I didn't find anything useful in the documentation to help me. Say I want to get a list of products with their names from within my controller. Thanks, Anna --~--~-~--~~~---~--~~ You received this message because

[symfony-users] Re: Connect MySQL database

2009-08-17 Thread Eno
On Mon, 17 Aug 2009, JorgeContreras wrote: > If anybody knows how to enable it I would aprecciate advice. Thanks in > advance. pecl install -a pdo_mysql -- --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "sy

[symfony-users] Re: Connect MySQL database

2009-08-17 Thread Gábor Fási
Check your php.ini, the extensions part, you'll find it there, uncomment the neccesary line. On Mon, Aug 17, 2009 at 19:42, JorgeContreras wrote: > > When I try to connect to a MySQL database I get an error message: > Unable to open PDO connection [wrapped: could not find driver] > > Then I execu

[symfony-users] Connect MySQL database

2009-08-17 Thread JorgeContreras
When I try to connect to a MySQL database I get an error message: Unable to open PDO connection [wrapped: could not find driver] Then I execute the getAvailableDrivers() function I get this result: Array ( [0] => sqlite2 [1] => sqlite ) I guess I have to install or enable the MySQL driver but I

[symfony-users] Re: symfony cache lifetime

2009-08-17 Thread Szabolcs Heilig
Hi, As of Symfony 1.1 you can pass an sfCache object to the constructor. I think, sfFileCache doesn't do anything with expiration, but sfMemcache does. > how can I set the function cache entries' lifetime? > Heilig Szabolcs --~--~-~--~~~---~--~~ You received thi

[symfony-users] symfony cache lifetime

2009-08-17 Thread Hofferek Attila
Hi, how can I set the function cache entries' lifetime? --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from

[symfony-users] Re: Using the Admin Generator for a Plugin

2009-08-17 Thread Richtermeister
Hey Chris, I found the quickest way is to use the generate-admin task to create a new admin generator based on a particular model, and then move that generated module into a plugin. The only thing you need to watch out for is to register the routes "manually", because you can't package a routing.

[symfony-users] Re: day 16: Integrity constraint violation: 1048 Column 'affiliate_id' cannot be null

2009-08-17 Thread luigi
Hi, I downloaded the svn version file of schema.yaml Now ti's all ok. Try this. JobeetCategory: actAs: Timestampable: ~ Sluggable: fields: [name] columns: name: type: string(255) notnull: true JobeetJob: actAs: Timestampable: ~ columns: category

[symfony-users] Re: style sheet issue

2009-08-17 Thread Jérome Vandenende
if the css is in the generated HTML, check if you can access the css file manually by doing : http://yourlocalwebsite/css/main.css If you get an 404 error, it may be an permission issue. On Mon, Aug 17, 2009 at 4:18 PM, Eno wrote: > > On Mon, 17 Aug 2009, sunny wrote: > > > i have file main.cs

[symfony-users] I18n + doctrine + admin generator = Doctrine_Validator_Exception

2009-08-17 Thread Jérome Vandenende
Hello, I've a strange problem here with my form. Here is my schema.yml : Site: actAs: I18n: fields: [name, description] Timestampable: ~ columns: stylesheet: { type: string(255) } favicon:{ type: string(255) } short_name: {

[symfony-users] Re: style sheet issue

2009-08-17 Thread Eno
On Mon, 17 Aug 2009, sunny wrote: > i have file main.css and i have included in view.yml. Show us view.yml. > but the page doesnot display the main.css file. Is it in the HTML generated? What does your layout look like? -- --~--~-~--~~~---~--~~ You recei

[symfony-users] Re: Plesk, psa-pear, and propel

2009-08-17 Thread Pablo Godel
Hi, That is very weird. What version of Plesk are you running? Is this app running inside Plesk admin or within a website managed by Plesk? Pablo On Mon, Aug 17, 2009 at 5:55 AM, Sid Bachtiar wrote: > > Hi all, > > I have a frozen symfony 1.0 project that I've installed in Plesk > environment.

[symfony-users] R: style sheet issue

2009-08-17 Thread silvio.cimino
maybe, the css file is not available from the web. You could try to open with your browser the address to the css file and verify if it is loaded. -Messaggio originale- i have file main.css and i have included in view.yml. but the page doesnot display the main.css file. help needed

[symfony-users] about propel insert sql

2009-08-17 Thread sunny
Some problems occurred when executing the task: If the exception message is not clear enough, read the output of the task for more information where can i read the output of the task for more information --~--~-~--~~~---~--~~ You received this message because

[symfony-users] problem in my schema

2009-08-17 Thread sunny
i get this warinig when i use insert sql: [propel-sql-exec] Failed to execute: CREATE TABLE `hr_pr_salary_grade` ( `sal_grd_code` INTEGER NOT NULL AUTO_INCREMENT, `sal_grd_name` VARCHAR, `created_by` INTEGER, `created_when` DATETIME, `modified_by` INTEGER, `modified_when` DATETIME, PRI

[symfony-users] Re: style sheet issue

2009-08-17 Thread Eno
On Mon, 17 Aug 2009, asim nizam wrote: > > > i have file main.css and i have included in view.yml. > > > > > > but the page doesnot display the main.css file. What do you mean by 'display'? Web browsers dont normally show CSS... What does your layout file look like? Have you looking at the HTM

[symfony-users] Re: style sheet issue

2009-08-17 Thread asim nizam
I have clear cache it still not working On Mon, Aug 17, 2009 at 5:04 PM, Sid Bachtiar wrote: > > symfony cc > > On Mon, Aug 17, 2009 at 10:50 PM, sunny wrote: > > > > i have file main.css and i have included in view.yml. > > > > but the page doesnot display the main.css file. > > > > help needed

[symfony-users] Re: style sheet issue

2009-08-17 Thread Sid Bachtiar
symfony cc On Mon, Aug 17, 2009 at 10:50 PM, sunny wrote: > > i have file main.css and i have included in view.yml. > > but the page doesnot display the main.css file. > > help needed > > > -- Blue Horn Ltd - System Development http://bluehorn.co.nz --~--~-~--~~~-

[symfony-users] style sheet issue

2009-08-17 Thread sunny
i have file main.css and i have included in view.yml. but the page doesnot display the main.css file. help needed --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send em

[symfony-users] Plesk, psa-pear, and propel

2009-08-17 Thread Sid Bachtiar
Hi all, I have a frozen symfony 1.0 project that I've installed in Plesk environment. At the moment, every time after something is changed in Plesk, the website throw this error: Warning: require_once(propel/om/Persistent.php) [function.require-once]: failed to open stream: No such file or direc

[symfony-users] Re: Custom rendering of widgets

2009-08-17 Thread Ken Marfilla
The formatter also has a serious limitation. Currently, it doesn't have any idea about the widget it is rendering. I for example wanted to use a different row format if the widget is an embedded form, i will not be able to. It's not just extending the formatter to suit my needs but i will also ha