[symfony-users] Re: missing field names in posted form --> Unexpected extra form field "0" ...

2010-08-25 Thread Lutz
Just in case somebody read my question and was wondering 

The problem seems to be related to access rights on the Sever and does
not seem to have
anything special to do with Symfony.

I was able to reproduce and show the mysterious behaviour by just
printing the received $_POST and without
any involvement of Symfony in the reception.

Still wondering how to fix this reliably ...

Cheers,
Lutz

On 23 Aug., 22:40, Lutz  wrote:
> Hi,
> I do have a problem in processing forms on my hosts server.
> I am using the sfDoctrineApply-Plugin and stumbled over the problem
> with the sfApplyForm and the execute apply action. These files are
> unmodified with respect to a fresh plugin installation.
> The processing of the posted form works fine on my development PC.
> The very same project copied to my hosts server leads to a message
> 'Unexpected extra form field "x"' where the x stands for the position
> of the parameter in the parameter array.
> Checking the Request Details in the Debug Toolbar shows a difference
> between the two systems:
>
> Result on my dev-PC (works perfectly fine, the index names are
> correctly set):
> ...
> parameterHolder:
>   action: apply
>   module: sfApply
>   sfApplyApply: { username: usr_name, password: pwdpwdpwd, password2:
> pwdpwdpwd, email: email1, email2: email2, fullname: 'full name', id:
> '', _csrf_token: 8909056ff9b94213c66e5b9554d233f5 }
> ...
>
> Result on the host-server (failing, the index names are not set, so
> the binding fails ... I guess)
> ...
> parameterHolder:
>   action: apply
>   module: sfApply
>   sfApplyApply: [usr_name, pwdpwdpwd, pwdpwdpwd, email1, email2, 'full
> name', '', 073aae6e16feaa1de4ea0be45d73fb94]
> ...
>
> I wonder why the host-server somewhere loses the index-names? Btw. I
> don't have access to the php.ini on the host-server.
> Has anybody an idea what is going wrong?
>
> I use Symfony version: 1.4.3 .
>
> PHP-version on my Dev-PC is:
> php: 5.3.2-1ubuntu4.2 (as you see Ubuntu 10.04 with Apache)
>
> PHP-version on server:
> php: 5.3.2 (I don't know which Hardware/OS/Web-Server)
>
> With best regards,
> Lutz Pape

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] setCookie with a different domain

2010-08-25 Thread Mariano Sola
Hi all, how is it going?

I'd like to ask you how can I set a domain that is not the same the
setCookie method is invoked in order to be read from other domain.

Currently I'm doing the following but the cookie is not created:

$response = sfContext::getInstance()->getResponse();
$response->setCookie("TestCookie", "valorCookie", null, "/", "
www.example.com", 0, 0);

The weird thing here is that if I replace "www.example.com" with "" the
cookie is being created correctly using as domain "localhost" which is my
Dev environment domain.

Somebody faced with this issue? Is there some piece of the configuration I
missed?

Thanks in advance!
*mariano ::*

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Trying to replace the default 'Required' message

2010-08-25 Thread Michał Piotrowski
2010/8/24 Javier Garcia :
>  Sorry, could you paste the entire validator? I dont understand..

$this->validatorSchema['email_address'] = new sfValidatorAnd(array(
  new sfValidatorEmail(array('max_length' => 255), array('invalid'
=> 'Poprawny adres ma postać np. przyk...@przyklad.pl', 'max_length'
=> 'Tekst w tym polu może mieć maksymalną długość 255 znaków.')),
  new sfValidatorDoctrineUnique(array('model' => 'sfGuardUser',
'column' => 'email_address'), array('invalid' => 'Podany adres jest
już przez kogoś używany.'))
), array('required' => true), array('required' => 'Pole wymagane.'));

The last two arrays are required to change default message.

BTW. You can check such things in the code documentation
http://www.symfony-project.org/api/1_4/sfValidatorAnd
http://trac.symfony-project.org/browser/branches/1.4/lib/validator/sfValidatorAnd.class.php
I had the same problem - I just looked to the docs and everything become clear.

Regards,
Michal

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: Storing a list of arbitrary length to the DB

2010-08-25 Thread json2001
Ok, so I got a chance to look over some of the examples of the many-to-
many relationship in jobeet and askeet and I still have a question.
The many-to-many relationship described in those places makes perfect
sense to me if there aren't any other variables associated with each
item.

But since you input quantities (in differing units of measurement in
my case) along with ingredients I'm wondering if you wouldn't set up a
three tables:

Recipes
Ingredients
ingredientsUsedInRecipes (not a real table name :P )

Where Recipes would have foreign keys to ingredientsUsedInRecipes and
ingredientsUsedInRecipes would have foreign keys to Ingredients which
would have the actual name of the ingredient and any other information
about it that doesn't change.

First, is this the best way to set this up (I'm kinda hoping it's
not!)? Second, is there an easy way to accomplish this (updating 2
tables) from one form in Symfony?

Thanks again.

On Aug 23, 5:53 pm, Daniel Lohse  wrote:
> You are going to model this as a many-to-many relation between a (one) Recipe 
> and its (many) Ingredients where each Recipe can have an infinite number of 
> ingredients and one ingredient can belong to an infinite number of recipes. 
> :) You'll find a description of how to do many-to-many relationships in the 
> Jobeet tutorial. Hopefully this makes more sense when you do read it.
>
> PS: Yes, you could also model this as a one-to-many relation between Recipe 
> and Ingredient but then the ingredient "milk" would be duplicated over and 
> over again (because the ingredient would save the ID of the recipe it belongs 
> to and can hence only save one parent (recipe)) and could not have attributes 
> of its own that could be changed independently of the recipes. That would 
> lead so serious duplication.
>
> Hope that helps,
> Daniel
>
> On 23.08.2010, at 23:44,json2001wrote:
>
>
>
> > I'm very new to symfony, in fact I'm still reading the gentle intro
> > and working through Jobeet, and this question is probably very simple
> > (I hope!) as I image this comes up all the time.
>
> > Users will be creating recipes. I would like to keep another table of
> > ingredients for autocompletion on the Create Recipe form.
>
> > Clearly, not all recipes have the same number of ingredients and I
> > can't imagine having a recipe table that has ingredient_id_1,
> > ingredient_id_2, ingredient_id_3, etc! So, how can I store an
> > arbitrary number of ingredients to a single field- "ingredient_ids."
> > Is there a way to store an array? Or is it typical to just use a coma
> > separated listing and parse it in the model?
>
> > Thanks.Really just looking for best practice sorts of advice at this
> > point so I can start to wrap my head around the method.
>
> > --
> > If you want to report a vulnerability issue on symfony, please send it to 
> > security at symfony-project.com
>
> > 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, send email to
> > symfony-users+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/symfony-users?hl=en

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Junior and Mid-level PHP Developer Jobs in Leeds, UK

2010-08-25 Thread Stephen Melrose
MadeByPi in Leeds are looking to hire a Junior and Mid-level PHP
developer.

For more information, please see the following,

http://www.madebypi.co.uk/news/php-development-roles.aspx

Cheers,

Steve

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: headers already sent

2010-08-25 Thread Stéphane
Yes, it is the HTTP headers, not the HTML  thing.

Before Printing, Think about Your Environmental Responsibility!
Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!


On Wed, Aug 25, 2010 at 7:11 PM, Florian wrote:

> IMHO, this is not a HTML header problem but a HTTP headers problem. It
> happens when php tris to send http headers (via header() function )
> after having sent some http body response!
>
>
> On 25 août, 12:57, Lutz  wrote:
> > This message generally occurs, when the webserver is asked to send the
> > header of the HTML-page, but some content of the body-section had
> > already been send to the  client (and so the header).
> > I experienced this behaviour when working with symfony (1.4), when you
> > do have an 'echo' or any other html-output in your action class.
> > Use the action class for actions and for output the templates, this
> > should solve the problem.
> >
> > The comment about the space, carriage return or closing '?>' I saw
> > several times as solution for this issue also, but me personally was
> > never able to reproduce that in my cases.
> >
> > BR,
> > Lutz
> >
> > On 25 Aug., 11:33, bibob  wrote:
> >
> >
> >
> > > Hi,
> > > Thank you for your answer.
> > > I don't find a "bad" space character anywhere in the actions.class or
> > > templates of my project.
> > > It's curious because when I modify a existing report, I have no
> > > problem, but when I create a new one, the problem appears.
> > > Maybe, I miss a step !
> >
> > > On 20 août, 23:25, Jochen Daum  wrote:
> >
> > > > > Hi,
> >
> > > > > On Sat, Aug 21, 2010 at 1:13 AM, bibob 
> wrote:
> > > > >> Bonjour,
> > > > >> lors du lancement d'un rapport d'administration au format .csv
> dans
> > > > >> l'actions.class.php du module concerné, j'ai le message, en fin de
> > > > >> fichier, "cannot modifiy header information -headerssentin /lib/
> > > > >> vendor/symfony/lib/response/sfWebResponse.class.php" puis un
> paquet de
> > > > >> commandes HTML
> > > > >> J'ai vérifié la présence d'espace dans les scripts que j'ai
> modifiés,
> > > > >> j'ai retapé toutes les lignes, sans résultat. quelqu'un a-t-il une
> > > > >> solution ? Merci
> >
> > > > > its nearly always some characters after the closing ?> of the file.
> I
> > > > > think this happens because of transmission/charset problems most of
> th
> > > > > time.
> >
> > > > > Short term solution is to find the file which has the additional
> space
> > > > > characters. Long term remove ?> at the end of files. I don't know
> what
> > > > > Symfony's policy is for that.
> >
> > > > > Kind Regards,
> >
> > > > > Jochen Daum
> >
> > > > > P.S.: My french is very weak.- Zitierten Text ausblenden -
> >
> > > - Zitierten Text anzeigen -
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> 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, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: headers already sent

2010-08-25 Thread Florian
IMHO, this is not a HTML header problem but a HTTP headers problem. It
happens when php tris to send http headers (via header() function )
after having sent some http body response!


On 25 août, 12:57, Lutz  wrote:
> This message generally occurs, when the webserver is asked to send the
> header of the HTML-page, but some content of the body-section had
> already been send to the  client (and so the header).
> I experienced this behaviour when working with symfony (1.4), when you
> do have an 'echo' or any other html-output in your action class.
> Use the action class for actions and for output the templates, this
> should solve the problem.
>
> The comment about the space, carriage return or closing '?>' I saw
> several times as solution for this issue also, but me personally was
> never able to reproduce that in my cases.
>
> BR,
> Lutz
>
> On 25 Aug., 11:33, bibob  wrote:
>
>
>
> > Hi,
> > Thank you for your answer.
> > I don't find a "bad" space character anywhere in the actions.class or
> > templates of my project.
> > It's curious because when I modify a existing report, I have no
> > problem, but when I create a new one, the problem appears.
> > Maybe, I miss a step !
>
> > On 20 août, 23:25, Jochen Daum  wrote:
>
> > > > Hi,
>
> > > > On Sat, Aug 21, 2010 at 1:13 AM, bibob  wrote:
> > > >> Bonjour,
> > > >> lors du lancement d'un rapport d'administration au format .csv dans
> > > >> l'actions.class.php du module concerné, j'ai le message, en fin de
> > > >> fichier, "cannot modifiy header information -headerssentin /lib/
> > > >> vendor/symfony/lib/response/sfWebResponse.class.php" puis un paquet de
> > > >> commandes HTML
> > > >> J'ai vérifié la présence d'espace dans les scripts que j'ai modifiés,
> > > >> j'ai retapé toutes les lignes, sans résultat. quelqu'un a-t-il une
> > > >> solution ? Merci
>
> > > > its nearly always some characters after the closing ?> of the file. I
> > > > think this happens because of transmission/charset problems most of th
> > > > time.
>
> > > > Short term solution is to find the file which has the additional space
> > > > characters. Long term remove ?> at the end of files. I don't know what
> > > > Symfony's policy is for that.
>
> > > > Kind Regards,
>
> > > > Jochen Daum
>
> > > > P.S.: My french is very weak.- Zitierten Text ausblenden -
>
> > - Zitierten Text anzeigen -

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Symfony 1.4 Doctrine BIG problem clob Oracle

2010-08-25 Thread Gabo
Hello Symfony -users

I have Big problem with SYMFONY 1.4+ DOCTRINE AND fiels clob and blob:

return Oracle-Clob-return-Resource-id-3

How do I get support symfony clob and blob fields?

thanks!

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] How to set an error message for invalid login with sfGuardAuth plugin?

2010-08-25 Thread Peter Peltonen
I am using symfony 1.2.12 and sfGuardAuth for logging in the users.

If user fails to produce a valid username or password, no error
message is shown.

I've set in sfGuardFormSigninCustom a validator:

$this->validatorSchema->setPostValidator(new sfGuardValidatorUser(
  array(), array('invalid' => 'Wrong
username or password.')));

But I get no error message?

Regards,
Peter Peltonen

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] change html for how mergeRelation embeds?

2010-08-25 Thread Tofuwarrior
Hi,

Is ther any way to stop mergeRelation embedding in the right hand td
of the form table?

I want it to just continue the existing table and, ideally, write a
title for the relation and then embed in subsequent trs just as other
widgets wouold if it wasn't a relation.

Anyone guide the ignorant? I'm not very genned up on styling forms, I
presume you can do this?

Cheers,

Paul

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: Credentials for actions in admin generated module

2010-08-25 Thread Thor
there is the credential conditions under the object_actions , you can
do something similar to this in your generator.yml to hide the actions

list:
  title: something
  object_actions:
_edit:  # no credentials needed
_delete:  { credentials: [[ credential_name ]] }  # that privilege
is needed to show the link to the action.


you still have to secure the modules though

On 25 Ago, 15:14, Tomasz Ignatiuk  wrote:
> Hi
>
> I have credentials for module as well as for actions. Unfortunatelly
> this doesn't work as it should:
>
> all:
>   is_secure:   on
>   credentials: [[all, product]]
>
> edit:
>   is_secure:   on
>   credentials: product_edit
>
> delete:
>   is_secure:   on
>   credentials: product_delete
>
> - So module is secured well (GOOD)
> - Both list td actions are being shown (NOT GOOD, they shouldn't).
> - if I click Edit, access error is being shown (GOOD)
> - if I click Delete and confirm, object is deleted (NOT GOOD)
>
> In admin generator plugin in templates I found this function used:
> addCredentialCondition
> But it doesn't work. Also in cache in action links credentials are not
> passed as a link parameter.
>
> Any guess why it doesn't work? I can override this manually by
> changing admin generator plugin template, but I would like to know if
> this is an error.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] sfWidgetFormDoctrineChoice problem

2010-08-25 Thread Gustavo Adrian
The dropdown must show every available choice, regardless an option is
already selected or not (What would you do if you need to update an item and
you want to change that value?). If you need to show only the option
selected, you could change the table method used by the widget to change the
list of choices to only the one is selected (in case an ID is set by default
and you need to show only that value). Or change it to a hidden field. In
both cases you could use an option on the form to select which widget to
use.


Cheers.

On Wed, Aug 25, 2010 at 6:16 AM, Andro Fumero  wrote:

> Hi there,
>
> Does anyone tried to limit the result of dropdown to only 1? or atleast
> just keep the dropdown hidden with selected value?
>
> I already set the id of the following dropdown, and i dont need to show
> other choices anymore.
>
>  public function executeNew(sfWebRequest $request)
>   {
>   $detail = new Companyproductdetail();
>  $detail->setCompany_Info_Id($request->getParameter('com_id'));
>   $this->form = new companyproductdetailForm($detail);
>   }
> The selected Id should now be the only one to show..
>
> any help would be great.
>
> Thanks
>
>
>  --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> 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, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Credentials for actions in admin generated module

2010-08-25 Thread Tomasz Ignatiuk
Hi

I have credentials for module as well as for actions. Unfortunatelly
this doesn't work as it should:

all:
  is_secure:   on
  credentials: [[all, product]]

edit:
  is_secure:   on
  credentials: product_edit

delete:
  is_secure:   on
  credentials: product_delete

- So module is secured well (GOOD)
- Both list td actions are being shown (NOT GOOD, they shouldn't).
- if I click Edit, access error is being shown (GOOD)
- if I click Delete and confirm, object is deleted (NOT GOOD)

In admin generator plugin in templates I found this function used:
addCredentialCondition
But it doesn't work. Also in cache in action links credentials are not
passed as a link parameter.

Any guess why it doesn't work? I can override this manually by
changing admin generator plugin template, but I would like to know if
this is an error.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] custom url for doctineRouteCollection

2010-08-25 Thread axel at
hello,

Car:
  class: sfDoctrineRouteCollection
  options:
model:Car
module:   car
prefix_path:  /car
column:   id
with_wildcard_routes: true

to generate the edit url I can use:
url_for('@car_edit?id=' . $car->getId());
generates /car/12345/edit

but how can I generate an url for a new action for example

url_for('@car_showCertificate?id=' . $car->getId());
should generate car/12345/showCertificate

mapped to
modules/car/actions/actions.class.php -> function
executeShowCertificate(...)?


-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: Two questions about sfDoctrineApplyPlugin

2010-08-25 Thread Javier Garcia
Well, when i say " As I action in the same in the both pages" I mean
"as the action is the same in both pages".

On Aug 25, 2:19 pm, Javier Garcia  wrote:
> No idea?
>
> On Aug 24, 3:08 pm, Javier Garcia  wrote:
>
> >   Hi,
>
> > I have found in sfDoctrineApplyPlugin a template called applyAfter.php
> > that shows a message like "You have registered ok...". It is called from
> > the apply action this way "return 'After';" when the apply form is valid.
>
> > What kind of template is that? I never saw that way (return 'After';)  
> > of calling a template. Can someone give me info about that?
>
> > Second question: I show a layout with a language select when the the
> > apply form is printed. I wouldn't like to show that language select in
> > the page that shows the message "You have registered ok...". As I action
> > in the same in the both pages(sfApply/apply), what should i do to hide
> > the language select in the verification page?
>
> > --
>
> > Javi
>
> > Ubuntu 8.04, sf 1.4

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: Two questions about sfDoctrineApplyPlugin

2010-08-25 Thread Javier Garcia
No idea?

On Aug 24, 3:08 pm, Javier Garcia  wrote:
>   Hi,
>
> I have found in sfDoctrineApplyPlugin a template called applyAfter.php
> that shows a message like "You have registered ok...". It is called from
> the apply action this way "return 'After';" when the apply form is valid.
>
> What kind of template is that? I never saw that way (return 'After';)  
> of calling a template. Can someone give me info about that?
>
> Second question: I show a layout with a language select when the the
> apply form is printed. I wouldn't like to show that language select in
> the page that shows the message "You have registered ok...". As I action
> in the same in the both pages(sfApply/apply), what should i do to hide
> the language select in the verification page?
>
> --
>
> Javi
>
> Ubuntu 8.04, sf 1.4

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: headers already sent

2010-08-25 Thread Lutz
This message generally occurs, when the webserver is asked to send the
header of the HTML-page, but some content of the body-section had
already been send to the  client (and so the header).
I experienced this behaviour when working with symfony (1.4), when you
do have an 'echo' or any other html-output in your action class.
Use the action class for actions and for output the templates, this
should solve the problem.

The comment about the space, carriage return or closing '?>' I saw
several times as solution for this issue also, but me personally was
never able to reproduce that in my cases.

BR,
Lutz

On 25 Aug., 11:33, bibob  wrote:
> Hi,
> Thank you for your answer.
> I don't find a "bad" space character anywhere in the actions.class or
> templates of my project.
> It's curious because when I modify a existing report, I have no
> problem, but when I create a new one, the problem appears.
> Maybe, I miss a step !
>
> On 20 août, 23:25, Jochen Daum  wrote:
>
>
>
> > > Hi,
>
> > > On Sat, Aug 21, 2010 at 1:13 AM, bibob  wrote:
> > >> Bonjour,
> > >> lors du lancement d'un rapport d'administration au format .csv dans
> > >> l'actions.class.php du module concerné, j'ai le message, en fin de
> > >> fichier, "cannot modifiy header information -headerssentin /lib/
> > >> vendor/symfony/lib/response/sfWebResponse.class.php" puis un paquet de
> > >> commandes HTML
> > >> J'ai vérifié la présence d'espace dans les scripts que j'ai modifiés,
> > >> j'ai retapé toutes les lignes, sans résultat. quelqu'un a-t-il une
> > >> solution ? Merci
>
> > > its nearly always some characters after the closing ?> of the file. I
> > > think this happens because of transmission/charset problems most of th
> > > time.
>
> > > Short term solution is to find the file which has the additional space
> > > characters. Long term remove ?> at the end of files. I don't know what
> > > Symfony's policy is for that.
>
> > > Kind Regards,
>
> > > Jochen Daum
>
> > > P.S.: My french is very weak.- Zitierten Text ausblenden -
>
> - Zitierten Text anzeigen -

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: headers already sent

2010-08-25 Thread bibob
Hi,
Thank you for your answer.
I don't find a "bad" space character anywhere in the actions.class or
templates of my project.
It's curious because when I modify a existing report, I have no
problem, but when I create a new one, the problem appears.
Maybe, I miss a step !

On 20 août, 23:25, Jochen Daum  wrote:
> > Hi,
>
> > On Sat, Aug 21, 2010 at 1:13 AM, bibob  wrote:
> >> Bonjour,
> >> lors du lancement d'un rapport d'administration au format .csv dans
> >> l'actions.class.php du module concerné, j'ai le message, en fin de
> >> fichier, "cannot modifiy header information -headerssentin /lib/
> >> vendor/symfony/lib/response/sfWebResponse.class.php" puis un paquet de
> >> commandes HTML
> >> J'ai vérifié la présence d'espace dans les scripts que j'ai modifiés,
> >> j'ai retapé toutes les lignes, sans résultat. quelqu'un a-t-il une
> >> solution ? Merci
>
> > its nearly always some characters after the closing ?> of the file. I
> > think this happens because of transmission/charset problems most of th
> > time.
>
> > Short term solution is to find the file which has the additional space
> > characters. Long term remove ?> at the end of files. I don't know what
> > Symfony's policy is for that.
>
> > Kind Regards,
>
> > Jochen Daum
>
> > P.S.: My french is very weak.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] sfWidgetFormDoctrineChoice problem

2010-08-25 Thread Andro Fumero
Hi there,


Does anyone tried to limit the result of dropdown to only 1? or atleast just 
keep the dropdown hidden with selected value?

I already set the id of the following dropdown, and i dont need to show other 
choices anymore.

 public function executeNew(sfWebRequest $request)
  {
  $detail = new Companyproductdetail();
 $detail->setCompany_Info_Id($request->getParameter('com_id'));
  $this->form = new companyproductdetailForm($detail);
  }
The selected Id should now be the only one to show..

any help would be great.

Thanks


  

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] symfony Day Cologne 2010

2010-08-25 Thread Dennis Benkert
Hi,

this year we are organizing a symfony Day again here in Cologne,
Germany on 8th October. As last year the conference will be one day
long with a sessions and a workshop track. Speakers for this year will
be Fabien Potencier, Jonathan Wage, Kris Wallsmith, Pierre Joye,
Christian Schaefer and Gaylord Aulke. As last year Stefan Koopmanschap
will lead the workshop track.

The early bird period ends next Tuesday (31. August). So if you want
to get your ticket for lower price be sure to get them as soon as
possible!

If you want to get a ticket or need more information check out our
website www.symfonyday.com.

Hope to see you there,
Dennis

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Change multiple checkboxes to multiple integers as percentages

2010-08-25 Thread Mihai Rusoaie
Hello all!

I am collecting some demografic data with checkboxes right now:

0-4 years, 5-9 years, 10-14 years, etc.

The user checks which age ranges matches the demographic data.

Here is the schema:

bdn_location: - table with the locations

bdn_age:
  id:  ~
  age: { type: varchar(10) }

bdn_location_age:
  location_id: { type: integer, primaryKey: true,
foreignReference: id, foreignTable: bdn_location, onDelete: cascade,
onUpdate: cascade, required: true }
  age_id:  { type: integer, primaryKey: true,
foreignReference: id, foreignTable: bdn_age, onDelete: cascade,
onUpdate: cascade, required: true }

What I want is to add percentages to each entry in the
bdn_location_age object:

10% are between 0 and 4 years, 30% are between 10 and 14 years and 60
percent are between 20 and 24 years.

Is there any chance I can create the forms automatically just by
adding a percentage field to the bdn_location_age table? If yes, how
do I generate and process the form?

Is there another simpler way of doing this?

Thank you!

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en