Re: [symfony-users] Taxonomy / Content Categorization using Symfony

2011-01-12 Thread Gareth McCumskey
Just to add ... bear in mind that symfony is not a drupal. Drupal is a CMS system whereas symfony is an MVC framework. Two entirely different things. On Wed, Jan 12, 2011 at 6:24 AM, info contact wrote: > Hi, > I am building a content driven forum website, where I am interested in > auto-categori

Re: [symfony-users] Taxonomy / Content Categorization using Symfony

2011-01-12 Thread Alex Pilon
Check out the tagging plugin for doctrine.. http://www.symfony-project.org/plugins/sfDoctrineActAsTaggablePlugin I believe it is built by the punk'ave guys. On Tue, Jan 11, 2011 at 23:24, info contact wrote: > Hi, > I am building a content driven forum website, where I am interested in > auto-ca

[symfony-users] Re: sf2 + sf2Forms + Twig over escaping issue

2011-01-12 Thread OlegZinchenko
Thanks Fabien for quick answer. As far as I understand in master of Twig, right? Regarding your warn, yes I know, we are use not very last version of Twig, only 1.0.0-BETA1 yet. On Jan 12, 5:54 pm, Fabien Potencier wrote: > On 1/12/11 1:45 PM, OlegZinchenko wrote: > > > > > In my form I have next

Re: [symfony-users] Re: Populate sfWidgetFormChoice choices with AJAX

2011-01-12 Thread Tom Haskins-Vaughan
Yeah, I would create an action that returned a json object and create the new from that. On Wed, Jan 12, 2011 at 11:16 AM, Tom Haskins-Vaughan wrote: > Can you not set the service type on the object before you pass it to the form? > > $calculation = new Calculation(); > $calculation->setServiceT

Re: [symfony-users] Re: Populate sfWidgetFormChoice choices with AJAX

2011-01-12 Thread Tom Haskins-Vaughan
Can you not set the service type on the object before you pass it to the form? $calculation = new Calculation(); $calculation->setServiceType($my_value); $form = new CalculationForm($calculation); On Wed, Jan 12, 2011 at 8:12 AM, Emil Rømer Christensen wrote: > This is my Form class: > > class

Re: [symfony-users] Re: Content-type negotiation

2011-01-12 Thread Stéphane
I don't know if there is a way to say "html first, then xml, then json", kind of 0.8, 0.5, etc. Regards, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Wed, Jan 12, 2011 at 4:54 PM, Stéphane wrote: > > http

[symfony-users] Re: Content-type negotiation

2011-01-12 Thread Dennis
Of course, this has to be in both the template caching and the output caching as sperate items. On Jan 12, 7:51 am, Dennis wrote: > As far as real content negotiation as per the HTTP standard,  choosing > which one out of an offered, prioritized set of ACCEPT: mime types, I > haven't seen anythin

Re: [symfony-users] sf2 + sf2Forms + Twig over escaping issue

2011-01-12 Thread Fabien Potencier
On 1/12/11 1:45 PM, OlegZinchenko wrote: In my form I have next: $this->add(new DateField('dateBefore')); in Twig template I have next: {% for field in form %} {{ field|render_label }} {{ field|render }} {% endfor %} as result I have next view, IMO it`s twig issu

Re: [symfony-users] Re: Content-type negotiation

2011-01-12 Thread Stéphane
http://www.symfony-project.org/api/1_0/sfWebRequest#method_getacceptablecontenttypes ? Regards, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée

[symfony-users] Re: Content-type negotiation

2011-01-12 Thread Dennis
As far as real content negotiation as per the HTTP standard, choosing which one out of an offered, prioritized set of ACCEPT: mime types, I haven't seen anything done in Symfony on any forum, tutorial, etc. There MAY be a native way to to that in Symfony 1, using the config files, but I woulldn't

[symfony-users] BasicAuthentificationListener issue when Server do not set PHP_AUTH_USER and PHP_AUTH_PWD

2011-01-12 Thread mtroumelin
Hello all, My current server configuration dont send Basic credentials with $_Server['PHP_AUTH_USER'] mechanism, then the BasicAuthentificationListener can retrieve credentials. Here is the workaround i found: 1) Add a rewrite rule in the .htaccess file: RewriteRule .* - [E=REMOTE_USER:%{HTTP

[symfony-users] Symfony2, "impersonating user" security feature

2011-01-12 Thread ykt
Dear all, I was playing around symfony2, and want to try the one of the feature in their security, the switch user. And there are error, which obvious passing null parameter which they expect an array parameter. "Catchable Fatal Error: Argument 2 passed to Symfony\Component\Security \Authorizati

[symfony-users] tr_TR doesn't work

2011-01-12 Thread DreadsnCo
Hi everyone, I have a symfony project which uses different culture. All work for every language except when my culture is in turc. tr_TR. I have always a blank white page. If I use the debug mode with front_dev.php I have this :: " Fatal error: Call to undefined method sfContext::getInstance()" Ho

Re: [symfony-users] Content-type negotiation

2011-01-12 Thread Stéphane
In routes.yml, you can define the :sf_format and set its default value I guess. Regards, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Wed, Jan 12, 2011 at 2:41 PM, Renoir Boulanger wrote: > This response

[symfony-users] symfony multyple postgres schemas

2011-01-12 Thread martin
Hello peopple, I'm having some problems using postgres in symfony, I have a database with several schemas defined on it and I can't make it work. I tryed both propel and doctrine and allway arrived to the same result: "SQLSTATE[3F000]: Invalid schema name:". Does anyone knows if there is some d

Re: [symfony-users] Issue with schema.yml

2011-01-12 Thread Ramunas
Title: Re: [symfony-users] Issue with schema.yml You must set use_native_enum attribute to true in your databases.yml See http://www.symfonyreference.com/databases-yml for details. Wednesday, January 12, 2011, 12:52:36 PM, you wrote: HI, I have the following in my schema.yml sfGuard

[symfony-users] sf2 + sf2Forms + Twig over escaping issue

2011-01-12 Thread OlegZinchenko
In my form I have next: $this->add(new DateField('dateBefore')); in Twig template I have next: {% for field in form %} {{ field|render_label }} {{ field|render }} {% endfor %} as result I have next view, IMO it`s twig issue I call it "over escaping" http://h1813090.str

Re: [symfony-users] Content-type negotiation

2011-01-12 Thread Renoir Boulanger
This response is based upon my own memory. It's been a while since I read how to do it. Content type negociation are set in configuration file (view.yml, settings.yml?) and can be specified in actions. Not to forget that you can also use format specific templates e.g.: "modules/potato/tem

Re: [symfony-users] Issue with schema.yml

2011-01-12 Thread Renoir Boulanger
spaces is required before and after the brackets and between the comas. see yaml documentation basics. i am not 100% sure of my answer. Not to forget that doctrine handles column types internally and doesnt mean it'll use the same in the database. Look in lib/doctrine/base/... the column def

[symfony-users] Re: Populate sfWidgetFormChoice choices with AJAX

2011-01-12 Thread Emil Rømer Christensen
This is my Form class: class CalculationForm extends BaseCalculationForm { private $service_type_id = 0; public function configure() { $this->useFields(array('model_id', 'motor_id', 'service_type_id')); $this->widgetSchema['model_id']->setOption('add_empty', 'Choose...'); $this

[symfony-users] Re: Issue with sfForkedDoctrineApplyPlugin

2011-01-12 Thread Grzegorz Śliwiński
I'll check it out in the evening, but if it is the problem, I suppose it'll be either with swift mailer, or with gmail/yahoo On Jan 12, 7:29 am, sinu govind wrote: > Yes , when in my app.yml I set the from address to a gmail id or yahoo id , > the mail does not go. But it goes with other ids.

[symfony-users] Re: error clearing the cache

2011-01-12 Thread Sela
another question, if for example in a moment in the time, there's no call to the doctrine, why clearing the cache will cause the problem? do you think it's still running something in the backgroup and cause to consume memory? On Dec 26 2010, 10:11 pm, oscar balladares wrote: > Last time I got tha

[symfony-users] Re: error clearing the cache

2011-01-12 Thread Sela
do you think it's due to optimization on backend, frontend or either? as for backend i use the default and didn't perform any optimization. thanks for the link i'll have a look at it. On Dec 26 2010, 10:11 pm, oscar balladares wrote: > Last time I got that error (on my local server) was due to Do

[symfony-users] Re: Simulating an enum type in Propel: error trying to generate form classes

2011-01-12 Thread Javier Garcia
Sorry I'm using sf 1.4. On Jan 12, 1:53 pm, Javier Garcia wrote: > Hi, > > documento: {type: varchar, sqltype: enum, size: > "'F','DDT','RC','FOURTH_ELEMENT','PM','KV','VN','CMS'", required: > true, defaultValue: 'F', required: true} > > I get the next error message (always with the fourth elemen

[symfony-users] Simulating an enum type in Propel: error trying to generate form classes

2011-01-12 Thread Javier Garcia
Hi, documento: {type: varchar, sqltype: enum, size: "'F','DDT','RC','FOURTH_ELEMENT','PM','KV','VN','CMS'", required: true, defaultValue: 'F', required: true} I get the next error message (always with the fourth element, I mean if i write 3 or less elements it doesn't give any error): >> propel

Re: [symfony-users] Issue with schema.yml

2011-01-12 Thread Justen Doherty
Hi Sinu, you need to enable native enum in your databases.yml all: doctrine: class: sfDoctrineDatabase param: dsn: 'mysql:host=localhost;dbname=symfony12doctrine' username: user attributes: use_native_enum: true from .. http://www.symfony-project.org/doctrine

Re: [symfony-users] Symfony form

2011-01-12 Thread Justen Doherty
Hi Sinu, You can have a look at the form rendering section on: http://www.symfony-project.org/forms/1_4/en/03-Forms-for-web-Designers this should give you enough info on how to break out of the default rendering / display the form elements as you need them.. On Wed, Jan 12, 2011 at 11:22 AM, si

[symfony-users] Symfony form

2011-01-12 Thread sinu govind
HI, I have a form created using widgets as $this->setWidget( 'company', new sfWidgetFormInput( array(), array( 'maxlength' => 50 ) ) ); $this->widgetSchema->moveField('company', sfWidgetFormSchema::FIRST); //Setting the department widget $this->setWidget( 'department', new sfW

Re: [symfony-users] Re: sfEasyGMapPlugin: Mulitple maps on one page

2011-01-12 Thread Michał Piotrowski
Hi, 2010/7/12 Fabrice Bernhard : > Ok so this is actually a working strategy ? I will implement it and > name the function initialize 'intiialize_'.$map_name by default so > that users don't need to actually change this parameter unless they > need to. > > Concerning the javascript_name of the map

[symfony-users] Issue with schema.yml

2011-01-12 Thread sinu govind
HI, I have the following in my schema.yml sfGuardUserProfile: actAs: Timestampable: ~ columns: user_id: type: integer notnull: true email_new: type: string(255) unique: true title: type: enum length: 2 values: [Mr, Ms] default: Mr

Re: [symfony-users] Re: Issue with sfForkedDoctrineApplyPlugin

2011-01-12 Thread sinu govind
Yes , when in my app.yml I set the from address to a gmail id or yahoo id , the mail does not go. But it goes with other ids. 2011/1/11 Grzegorz Śliwiński > You mean same from email, like the gmail id? > > On Jan 11, 1:19 pm, sinu govind wrote: > > Hi all, > > > > Finally I got the sfforkeddo

[symfony-users] Taxonomy / Content Categorization using Symfony

2011-01-12 Thread info contact
Hi, I am building a content driven forum website, where I am interested in auto-categorizing content into a taxonomy based on the text of the data. Is there any plugin or any easy way to do with Symfony. I am looking to have my own taxonomy. eg: Books => Computers, Books => Fiction etc.. based on c

[symfony-users] Content-type negotiation

2011-01-12 Thread paulkmoore
Hi all I'm new to Symfony and tried posting this in the forum, but I'm not convinced that audience is correct. I am building a REST API for our application, and have been looking at the sfDoctrineRestGeneratorPlugin which looks very promising (and extensible - thanks). However, the library does n