On 1 February 2010 17:00, l3ia-etu wrote:
> hi everyone,
>
> i would like to customize an edit action: i would like to disallow the
> modification of a field from user that has not a credential:
>
> i can disallow the edition of a field for all users:
> config:
> form:
>display:
> NONE:
As for me, I usually keep generator.yml in it's default form. All of
my customizations are done by overriding the generated classes and
templates. Keeps me more sane.
On Feb 3, 11:35 pm, "a...@speedypin.com" wrote:
> I think he means not making a template but messing around with the
> generator y
sfOutputEscaperObjectDecorator::offsetExists
On Feb 4, 12:38 am, Mark Smith
wrote:
> Hi,
>
> In my template I only want to print properties that exist.
>
> In pure PHP I would use isset:
>
> echo isset($object->property) ? $object->property : "";
>
> However when the object is an sfOutputEscaperO
I ran into a form with this customer[amount[text]
What is that [text]? And how do I apply it to other fields? I have
been having issues with other fields and I believe the [text] is the
answer.
--
You received this message because you are subscribed to the Google Groups
"symfony users" group.
T
Holy /&%$·&(***:X
.. well i have an excuse: it was late!!!
of course you're right, the code is:
$audiencia = new Audiencia();
//DATOS//
$ordenado =
sfContext::getInstance()->getUser()->getEmpleadoUsuario('id');
$correlativo= Audi
What should this snippet do?
You do not call any setter of your model.
btw:
'.date('Y').'-'.date('m').'-01' -> date('Y-m').'-01' looks better :P
Am 03.02.2010 um 22:23 schrieb Germana Oliveira:
im trying to make the system to save some data, so i do this:
$audiencia = new Audiencia();
im trying to make the system to save some data, so i do this:
$audiencia = new Audiencia();
//DATOS//
$ordenado =
sfContext::getInstance()->getUser()->getEmpleadoUsuario('id');
$correlativo= Audiencia::obtenerCorrelativo();
$tipo_proceso_i
Hi,
Take a loot at sfValidatorCallback and validatorSchema post validation.
Cheers,
Before Printing, Think about Your Environmental Responsibility!
Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!
On Tue, Feb 2, 2010 at 2:13 PM, jignesh patel
wrote:
> Hiii i am new to the s
You should have a look at this doc page:
http://www.symfony-project.org/book/1_0/19-Mastering-Symfony-s-Configuration-Files#Symfony%20Settings
The logging in production environment has to be enabled via the
"logging_enabled" flag in the settings.yml first. Otherwise the
logging.yml will be ig
Hiii i am new to the symfony framework.
I am having form with some widgets and respected validators.
Now my question is how can i create validator which dependent on
previous or any of the widgets values.
I am having price text field and not_price checkbox, if i check check
box not_priced price
Hi,
In my template I only want to print properties that exist.
In pure PHP I would use isset:
echo isset($object->property) ? $object->property : "";
However when the object is an sfOutputEscaperObjectDecorator, isset
always returns false, even when the property is there.
As a workaround I am
Between, the sfConfig::get('app_upload_avatars') have the following
value = "users/avatars/"
--
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, se
Hi, i'm getting a problem on the images source.
Here: http://localhost/frontend_dev.php/settings - My image works
fine.
Here: http://localhost/frontend_dev.php/settings/edit - My image
doesn't work fine.
The problem is that he looks to the action like a folter and the
source should be
inste
Someone implemented "Input Widgets" in Symfony 1.2 ... 1.4?
Thanks
--
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to
symfony-use
I think he means not making a template but messing around with the
generator yaml.
On Feb 1, 10:50 am, Richtermeister wrote:
> Hey there,
>
> I know that sounds like a good idea, but it really isn't.
> The right place to control access to form fields is in the form class
> itself, because think a
Is there a way to do this in the generator instead of the template?
I think the generator needs a good chapter on it. Does anyone know
where such documentation on the generator exists. this specific
question, plus others like how to embed nested/a set of doctrine
elements in the same tool while on
Actually, the example I thought of was done with two separate widgets. But I
found another, a form where the user can enter measurements in a choice of
units (inches or centimeters). The etWidgetFormJQuerySliderWithUnits widget
renders a jQuery UI slider. The unit widget is used over several mea
Hello.
I did. Fixtures' size was ~400kb total. Symfony 1.2, Doctrine 1.0. I had to
increase memory_limit to (IIRC) 128Mb.
This issue looks for me pretty easy-explainable. Doctrine_Import currently
is actually forced to store ALL the objects recreated from fixtures in
memory while importing becaus
I thought a custom widget would be the way to go. However, I've never
made one with multiple fields within it. Can you give me/link me to an
example of how to do this?
Thanks.
On 3 Feb, 14:34, Stefan Paschke wrote:
> Hi Stephen
>
> If you don't want to have to write all 4 fields individually in
Hi Stephen
If you don't want to have to write all 4 fields individually in the view, you'd
need a custom widget, I don't see how an embedded form would do this. I have
written a few custom widgets that represent several correlated values, such as
'clothing size' and 'clothing size key', which a
I have a database table with the following fields,
address_1
address_2
address_3
address_4
Currently in my generated form there are 4 sfWidgetFormInputText
widgets, one for each field. These render out in their own rows with
their own labels, errors, etc.
I'd like to group these 4 fields into 1
Thanks Eddie, I believe installing plugins with svn:externals is
considered best practice anyway.
On Jan 17, 6:07 pm, EddieG wrote:
> Hi Kevin,
>
> thanx, that helped a lot! I now have it running, using svn:externals
> set to the 0.9.1. release.
> Works like charme and I think your plugin really
By reading the discussion, I didn't noticed any DRY solution...
this one could help you, even if it's -maybe- not the fastest, but the
DRY'est :
//for sf 1.3
in lib/form/BaseForm.class.php
{{{
public function setup() {
parent::setup();
foreach($this->getValidatorSchema()->getFields(
By reading the discussion, I didn't noticed any DRY solution...
this one could help you, even if it's -maybe- not the fastest, but the
DRY'est :
//for sf 1.3
in lib/form/BaseForm.class.php
{{{
public function setup() {
parent::setup();
foreach($this->getValidatorSchema()->getFields(
that doesn't works:
Fatal error: Can't use method return value in write context
On 2 fév, 17:33, Tom Ptacnik wrote:
> Try
> unset($this->validatorSchema['yourfild']);
>
> On 2 ún, 10:52, l3ia-etu wrote:
>
> > yes, that's good !
>
> > so, i will set the widget readonly:
>
> >
Hi,
just that.
Javi
--
You received this message because you are subscribed to the Google Groups "symfony
users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com.
For more optio
Thanks for all your help with this - I've now got the propel tasks working by
generating a new project and changing the ProjectConfiguration.class.php to
enable sfPropelPlugin and now the Propel tasks are displayed and I am just
updating the source from svn. Why the enabling of the sfPropelPlug
27 matches
Mail list logo