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
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
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 fi...@fizyk.net.pl
You mean same from email, like the gmail id?
On Jan 11, 1:19 pm, sinu govind sinugov...@gmail.com wrote:
Hi all,
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:
Hi,
2010/7/12 Fabrice Bernhard fabri...@theodo.fr:
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
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
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,
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 ..
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
Sorry I'm using sf 1.4.
On Jan 12, 1:53 pm, Javier Garcia tirengar...@gmail.com 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
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 liebegr...@gmail.com
wrote:
Last time I got that error (on my local
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 liebegr...@gmail.com
wrote:
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 sinugov...@gmail.com 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
In my form I have next:
$this-add(new DateField('dateBefore'));
in Twig template I have next:
table
{% for field in form %}
th{{ field|render_label }}/th
td{{ field|render }}/td
{% endfor %}
/table
as result I have next view, IMO it`s twig issue I call it over
escaping
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.:
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
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...');
Title: Re: [symfony-users] Issue with schema.yml
You must set use_native_enum attribute to true in your databases.yml
Seehttp://www.symfonyreference.com/databases-ymlfor details.
Wednesday, January 12, 2011, 12:52:36 PM, you wrote:
HI,
I have the following in my schema.yml
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
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 r...@evocatio.com wrote:
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
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 .* -
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
http://www.symfony-project.org/api/1_0/sfWebRequest#method_getacceptablecontenttypes
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
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:
table
{% for field in form %}
th{{ field|render_label }}/th
td{{ field|render }}/td
{% endfor %}
/table
as result I have next
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
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 gear...@sbcglobal.net 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
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
christensen.e...@gmail.com wrote:
This is
Yeah, I would create an action that returned a json object and create
the new select from that.
On Wed, Jan 12, 2011 at 11:16 AM, Tom Haskins-Vaughan
t...@harvestcloud.com wrote:
Can you not set the service type on the object before you pass it to the form?
$calculation = new Calculation();
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 fabien.potenc...@symfony-
project.com wrote:
On 1/12/11 1:45 PM, OlegZinchenko
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 iwant2don...@gmail.com wrote:
Hi,
I am building a content driven forum website, where I am
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 iwant2don...@gmail.comwrote:
Hi,
I am building a content driven forum website, where I am
32 matches
Mail list logo