Hi,
you have to decorate your form on your own in this case.
More details here:
http://www.symfony-project.org/forms/1_2/en/03-Forms-for-web-Designers#chapter_03_sub_using_the_rendererror_method_on_a_field
- Frank
Am 20.05.2009 um 07:39 schrieb ctrlming:
in the template, I got some
thank you, Frank.
But really is too much trouble to do so.
If there is no other way I can only do so
On 5月20日, 下午2时39分, Frank Stelzer d...@bleedingmoon.de wrote:
Hi,
you have to decorate your form on your own in this case.
More details
Oh my god~..
I got another question .
in
http://www.symfony-project.org/forms/1_2/en/03-Forms-for-web-Designers#chapter_03_sub_using_the_rendererror_method_on_a_field
?php if ($form['email']-hasError()): ?
ul class=error_list
?php foreach ($form['email']-getError() as $error): ?
Humm - so you currently have something like:
Cart:
actAs: [Timestampable]
columns:
id:
type: integer(4)
primary: true
buyer_id:
type: integer(4)
notnull: false
is_default:
type: Boolean
default: false
relations:
It would be handy also to dump out the sql statement that Doctrine is using
to check what it's sending to the db with (in your model) -getSql()
It maybe that the user_id is being set to 0 rather than null. If this is
the case then replace the value with Doctrine_Null.
-Original
Hey all,
Been getting extremely confused by
http://www.doctrine-project.org/documentation/manual/1_1/en/behaviors#creating-behaviors
- What I am trying to do is make 'Contactable' behavior for entity
like tables:
Company:
actAs: { Contactable: ~ }
columns:
name: { type:
maybe if you would make something like
$con1 = propel::getconnection('foo');
$con2 = propel::getconnection('fuu');
would help.
have a look into the generated peers for correct syntax
also .. when you use doSelct* or so , pass second argument $con2
Alecs
On Wed, May 20, 2009 at 5:13 AM, rafix
I need to rewrite standard validator messages, such as Required.
etc.
How can I do it without modifing validator files sources?
PS Using sf1.2 and it's form framework
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
When I try to do symfony propel:build-model after installing the
sfGuardplugin, I get the error,
Class 'sfPropelBaseTask' not found
What is the reason?. Please provide me solution. I searched on
Internet but no use.
--~--~-~--~~~---~--~~
You received this
What ORM are you using ?
Kr,
-Oorspronkelijk bericht-
Van: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com]
Namens murthy
Verzonden: woensdag 20 mei 2009 13:58
Aan: symfony users
Onderwerp: [symfony-users] sfGuard problem
When I try to do symfony
Try:
actAs: [ Contactable: ~ ]
Also ensure that you're looking at the Doctrine 1.0 pages as that is what
ships with sf currently.
Are you getting an error or is it just not working?
-Original Message-
From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com]
On
See that you might use doctrine.
If you are using doctrine, then you should install sfDoctrineGuard or so.
Alecs
On Wed, May 20, 2009 at 3:11 PM, Jan De Coster j...@we-create.be wrote:
What ORM are you using ?
Kr,
-Oorspronkelijk bericht-
Van: symfony-users@googlegroups.com
This is like a silly question:
¿How can I do, to make work the update DIV examples?, you can see it
on this link:
http://www.symfony-project.org/book/1_1/11-Ajax-Integration
I need to find the way of erasing the content present on a Div, just
when you selected another option on the Web
I have not been able to find a best practice approach in the Symfony
docs for dealing with
schema changes as it relates to rebuilding the data model. Can someone
give me some guidance with this scenario?
Site is up and running and a few weeks later, a new column needs to be
added to the
Interesting you should ask that, because I was just about to do the
same thing ;) However, when I tried linking another model to
sfGuardUser (a 1:n relationship, like a user has many posts), I got
a doctrine error when building the models (don't remember the wording
exactly, but the syntax error
Hi,
If you use Doctrine, you can use migrations tools :
http://www.symfony-project.org/doctrine/1_2/en/07-Migrations
On 20 mai, 15:50, slinky66 tcasto...@comcast.net wrote:
I have not been able to find a best practice approach in the Symfony
docs for dealing with
schema changes as it
Thank you for that. We do not use Doctrine however these steps worked
for me just fine:
1) Made changes to existing database schema directly on the database.
In this case, I added a new column to an existing table
2) symfony propel-build-schema xml
3) symfony propel-build-model
4) symfony cc
Globally: sfValidatorBase::setRequiredMessage(fubar)
Locally: while instantiating the validator, the second parameter is an
array called messages. Example from a construct():
$this-setValidator(nick, new sfValidatorString(array(
required = true
), array(
required = Fill this, please
)));
On
Sure. I'm working on a first run script and I'll include it.
But I don't mind smuggling it in for a box of cigars ;)
-Original Message-
From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com]
On Behalf Of Reynier Perez Mira
Sent: 20 May 2009 19:19
To:
Could you include PostgreSQL also? I live in Cuba and because blocking from US
I can't download nothing related to MySQL
Ing. Reynier Pérez Mira
Dirección Técnica IP
-Original Message-
From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On
Behalf Of David
Wotcha Guys and Gals,
I've just launched a site which allows you to download a Virtual Machine
setup and ready to run against Symfony and Zend.
It's based on Ubuntu Server x86, comes with the latest versions of Apache,
MySQL, subversion, PHP Zend - and includes Symfony 1.0, 1.1, 1.2 and 1.3
Hi David,
This is a great idea and it will be a very valuable resource for the symfony
development commnunity.
Pablo
On Wed, May 20, 2009 at 12:54 PM, David Ashwood
da...@inspiredthinking.co.uk wrote:
Wotcha Guys and Gals,
I’ve just launched a site which allows you to download a Virtual
Thanks again, David.
I have tried owingSide: true and false. No joy.
I also tried onUpdate: SET NULL, which didn't work either.
I tried explicitly defining Cart::id but then I got a problem loading
fixtures.
In the generated MySQL table, I can create a Cart row with a null
buyer_id, so the
I've also just noticed this line in the Doctrine documentation:
Now it is impossible to create orders with a product_id that does not
appear in the product table.
Just above here:
http://www.doctrine-project.org/documentation/manual/1_0/en/defining-models
Hello everyone,
I recently started implementing sfDoctrineGuardPlugin on the intranet
of the company I work for. Currently, their database of employees is
separated in two main models: Department and Employee. A Department
has many Positions and a Position has many employees.
When implementing
Once again, a shameless bump!
I tried several approaches to no avail.
Halp!
On May 19, 12:48 pm, Crafty_Shadow vankat...@gmail.com wrote:
Thanks for the links, but those are of no help to me.
Each and every single of the resources you have pointed me to are
about propel 1.2.
As I mentioned
I define a variable in action: $this-url='bla';
I want to use this variable in the layout.php, but I got this message
Notice: Undefined variable: url in /www/apps/frontend/templates/
layout.php on line 28
Could any body tell me what's the problem? What should I do if I want
to set a variable on
Hi Stephen,
u can use $request-setAttribute('url','bla'); in your actions class
and use it in layout by using
$sf_request-getAttribute('url');
On Thu, May 21, 2009 at 7:04 AM, Stephen stephen.j.t...@gmail.com wrote:
I define a variable in action: $this-url='bla';
I want to use this variable
28 matches
Mail list logo