Re: [symfony-users] How to set the Html 'value' attribute from a sfWidgetFormInputHidden

2009-11-19 Thread Gareth McCumskey
http://www.symfony-project.org/forms/1_2/en/01-Form-Creation#chapter_01_sub_defining_default_values_for_fields

On Fri, Nov 20, 2009 at 12:39 AM, gato chlr  wrote:

> hi!
>
> How to set the Html 'value' attribute from a sfWidgetFormInputHidden
>
> i mean,
> $a = new sfWidgetFormInputHidden();
> how can i do somthing like $a->setValue($myValue);
>
> so ,when i print the $form (echo $form)
> the html printed result as next:
>
> ..
> 
> ..
>
>  Thanks a lot
>
> --
> 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.
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=.
>



-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

--

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 options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




Re: [symfony-users] Re: Separating Presentation from Symfony

2009-11-19 Thread Gareth McCumskey
They don't need to ;)

On Thu, Nov 19, 2009 at 9:50 PM, Simon Cast  wrote:

> They didn't want to learn the Symfony forms. :(
>
> On Sep 29, 10:34 pm, Eno  wrote:
> > On Tue, 29 Sep 2009,SimonCast wrote:
> > > I would like to use the full Symfony layer but the person doing the
> > > presenation/HTML doesn't want to use Symfony.
> >
> > Because? (Just curious if they have any good reasons for not using a
> > framework - do they like a different framework?).
> >
> > --
>
> --
>
> 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.
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=.
>
>
>


-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

--

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 options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




[symfony-users] Re: Create form manually, but add csrf-token?

2009-11-19 Thread Dennis
http://groups.google.com/group/symfony-users/browse_thread/thread/08d7a1e4b53f3bb0

On Nov 18, 8:20 pm, "Antoine S." 
wrote:
> Hi,
>
> if your customised form extends sfForm, it should not be a problem,
> and include the csrf, and valid it.
>
> Don't forget to display it in the template if you don't use 'echo
> $form'
>
> On Nov 10, 9:59 am, Sebastian Göttschkes
>
>  wrote:
> > Hello,
>
> > I'm a bit lost here as I try to create a form manually.
>
> > My goal is this: I want to add a login form to every page within the
> > project. So I added this form (written manually) to the layout.php,
> > which works ok! When I send the login-form, symfony handels the
> > request ok and uses the correct module and action, but struggles as
> > there is no csrf-token present (which is obvious, as I didn't add
> > one).
>
> > Can anybody help me out how to solve this problem?
>
> > Regards,
> > Sebastian
>
>

--

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 options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




[symfony-users] Re: Create form manually, but add csrf-token?

2009-11-19 Thread Dennis
addCSRFProtection(null);
http://groups.google.com/group/symfony-users/browse_thread/thread/08d7a1e4b53f3bb0

On Nov 18, 8:20 pm, "Antoine S." 
wrote:
> Hi,>
> if your customised form extends sfForm, it should not be a problem,
> and include the csrf, and valid it.
>
> Don't forget to display it in the template if you don't use 'echo
> $form'
>
> On Nov 10, 9:59 am, Sebastian Göttschkes
>
>  wrote:
> > Hello,
>
> > I'm a bit lost here as I try to create a form manually.
>
> > My goal is this: I want to add a login form to every page within the
> > project. So I added this form (written manually) to the layout.php,
> > which works ok! When I send the login-form, symfony handels the
> > request ok and uses the correct module and action, but struggles as
> > there is no csrf-token present (which is obvious, as I didn't add
> > one).
>
> > Can anybody help me out how to solve this problem?
>
> > Regards,
> > Sebastian
>
>

--

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 options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




[symfony-users] Re: Forms - a mini survey

2009-11-19 Thread Dennis
Well, no one likes to tag onto a 'whining' post. I shouldn't be
surprised :-)

When I'm rich, (because of using symfony), I will hire somebody to
produce 'database mentality' documentation. (See Postgres docs, or
Oracle docs)

On Nov 12, 8:40 pm, Dennis  wrote:
> I have had nothing but grief when it comes to using forms in Symfony.
> I find that if I build a page using a form for one table, well of
> course that works. But any time that I want more than one table's
> information to go to or from a user, and with validation/file upload/
> widgets, LOTS of extra coding is needed in several places and it seems
> inconsistent with each different approach I've seen on the web.
>
> ONE way that I've heard of a successful company doing it without
> having to fight the minimal documentation and side effects with
> embedding/merging is DON'T do either. Use a custom sfForm with hand
> built validators and widgets. THEN use the ORM to save things.
>
> So the survey is do you do your forms with:
>
> A/ Only single table user displayed forms.
>
> B/ Using symfony embedding or merging functions.
>
> C/ Custom forms and handle parent child data in the Actions.
>
> D/ Use database views which symfony treats as just a table ( and you
> get exactly
>     the form you want by specifying the view. (IS THIS POSSIBLE ;-) ?
>
> I'll give this 1-2 weeks 'out there', then I will summarize the
> results in a post to this.

--

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 options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




[symfony-users] Displaying form validation erros using ->renderGlobalErrors()

2009-11-19 Thread Chris Renfrow
I have no clue why I am having such a hard time with this, I have used
the symfony form validation before, but for some reason I just can't
get the errors messages to display using the renderGlobalErrors() form
method. the $form['field']->hasError() works and I am using it to turn
the input box borders red, but I also want the error messages.

Is there something special I need to turn on, include or configure? I
have been trying all day, reading the Forms sections from the
tutorials and still have not see what I am missing.

propel form object configure() method
[code]
   $this->validatorSchema['password'] = new sfValidatorAnd
(array(
$this->validatorSchema['password'],
new sfValidatorString(array('required' => true, 
'min_length' => 5),
array('required' => 'Password is required';
$this->validatorSchema['email'] = new sfValidatorAnd(array(
$this->validatorSchema['email'],
new sfValidatorEmail(array(), array('invalid' => 'The 
email address
is invalid.';
$this->validatorSchema['address_1'] = new sfValidatorAnd(array(
$this->validatorSchema['address_1'],
new sfValidatorString(array('required' => true;
[/code]

html (crud) generated template
[code]



isMultipart
() and print 'enctype="multipart/form-data" ' ?>>
  getObject()->isNew()): ?>
  
  
  

  getObject()->isNew()) : ?>
  
Created At: 
getObject()->getCreatedAt(); ?>
  
  
Updated Last:
getObject()->getUpdatedAt(); ?>
  
  
  
renderHiddenFields() ?>
 Cancel
  getObject()->isNew()): ?>
   getObject()->getId(), array('method' => 'delete', 'confirm' => 'Are
you sure?')) ?>
  
  
  


  renderGlobalErrors() ?>
  
Login Information
  
[/code]

Thanksl

--

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 options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




[symfony-users] Re: The template "TestTwigSuccess.php" does not exist or is unreadable in "".

2009-11-19 Thread Richtermeister
You're not doing anything with the output of twig. as far as the
surrounding symfony application is concerned, you're executing the
TestTwig action, and it's looking for a corresponding template. In
your case you want to echo the twig output and then say:
return sfView::NONE, or stick the twig output into the response
directly..

Hope this helps,
Daniel


On Nov 19, 5:12 pm, ReynierPM  wrote:
> Hi every:
> I'm trying to use Twig on Symfony 1.4RC1. After read the docs I've wrote
> this piece of code:
>
> function preExecute() {
>      require_once sfConfig::get('sf_lib_dir').'/twig/Autoloader.php';
>      Twig_Autoloader::register();
>
> }
>
> public function executeTestTwig() {
>      $loader = new
> Twig_Loader_Filesystem(sfConfig::get('sf_web_dir').'/themes/default');
>      $twig = new Twig_Environment($loader, array(
>                      'cache' => sfConfig::get('sf_cache_dir').'/templates'
>      ));
>
>      $twig->loadTemplate('install.index.html');
>
> }
>
> But surprise when I call the method I get this error:
>
> 500 | Internal Server Error | sfRenderException
> The template "TestTwigSuccess.php" does not exist or is unreadable in "".
>
> What I'm doing wrong?
> Cheers and thanks in advance

--

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 options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




Re: [symfony-users] Re: Doctrine_Record_UnknownPropertyException

2009-11-19 Thread Paul Witschger
I did a little trial and error and found out that if you change your 
method call to:

in my case getAddress_2()
in your case getPhone_1()

it will work. I'm not sure why it camel cases the function call, if it 
doesn't work, but I do think it may have something to do with it only 
containing a digit at the end and no alpha charaters. But either way, if 
you have Doctrine build anything off of that table, you are going to 
have to change the function call to add in the underscore.

As you said, this is more then likely a Doctrine issue and not a Symfony 
issue.

Hope this helps




Jan Fabry wrote:
> On Nov 4, 6:56 am, theprodigy  wrote:
>   
>> I'm receiving an error of type:
>> Doctrine_Record_UnknownPropertyException (Unknown method
>> Company::getAddress2)
>> 
>
> I am seeing the same problem with a column named 'phone_1'. Maybe it
> is related to the digit at the end of the column name? If that is the
> case, this is a problem with Doctrine, not Symfony.
>
> I am trying to find where the name is converted to CamelCase, that is
> also a nice way to learn to know the inner workings of Doctrine :-)
>
> Jan
>
> --
>
> 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.
> For more options, visit this group at 
> http://groups.google.com/group/symfony-users?hl=.
>
>
>
>   

--

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 options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




Re: [symfony-users] Re: Save embedded forms at diferent times

2009-11-19 Thread Germana Oliveira
Wel i have this in my lib/form/AudienciaForm.class.php

public function configure()
{
if ($this->isNew())
{
$conciliadorForm = new AudienciaConciliadorForm();
$denuncianteForm = new PersonaForm(null, array('tipo' => 
'natural'));
$denunciadoForm = new PersonaForm(null, array('tipo' => 
'juridica'));
 }else{
$clase = new AudienciaConciliador();
$conciliador = $clase->getEmpleado();
$conciliadorForm = new AudienciaConciliadorForm( $conciliador );

$denunciante = 
$this->getObject()->getPersonaRelatedByDenuncianteId();
$denuncianteForm = new PersonaForm($denunciante);

$denunciado = $this->getObject()->getPersonaRelatedByDenunciadoId();
$denunciadoForm = new PersonaForm($denunciado);
}
$this->embedForm('conciliador', $conciliadorForm);
$this->embedForm('denunciante', $denuncianteForm);
$this->embedForm('denunciado', $denunciadoForm);

}


Stefan Paschke escribió:
> Hi Germana
>
> did you aggregate the object that populates the embedded form? In the main 
> forms configure():
>
>   public function configure()
>   {
> ...
>
> if ( $this->object->getPersona() == null )
> {
>   $this->object->setPersona( new Persona() );
> }
> $persona_form = new PersonaForm( $this->object->getPersona(), 
> $this->options );
> $this->embedForm( "persona", $persona_form );
>   }
>
> otherwise, the Audienca object won't know what to do with the embedded 
> Persona, I guess.
>
> regards
>
> Stefan
>
>
> On Nov 19, 2009, at 5:16 PM, Germana Oliveira wrote:
>
>   
>> Stefan Paschke escribió:
>> 
>>> Hi Germana
>>>
>>>
>>>   
 I have to embedded Forms into a main Form, and i have to do this process:

 1. Save the embedded  Form number1
 2. Save the main Form (the main Form have some Foreing Key from Embedded
 Form number1)

 
>>> that is pretty much standard. why does it not work? How do you configure 
>>> the first embedded form?
>>>
>>>
>>>   
 3. Save embedded Form number2 (this embedded Form have some Foreign Key
 from Main Form)

 
>>> Stefan
>>>
>>>
>>>   
>> This is what i do:
>>
>> i have a mainForm :  Audiencia
>> 1 embeddedForm:  Persona
>> 1 embeddedForm: AudienciaConciliador
>> 
>
> --
>
> 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.
> For more options, visit this group at 
> http://groups.google.com/group/symfony-users?hl=.
>
>
>   


-- 
Germana Oliveira

Movilnet:   0426 7457105
Digitel:0412 0386159 
Correo-e:   germanaoliveirab_at_gmail.com
Blog:   http://slcarabobo.wordpress.com
Usuario Linux : #493487

Carabobo, Venezuela.

--

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 options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




[symfony-users] The template "TestTwigSuccess.php" does not exist or is unreadable in "".

2009-11-19 Thread ReynierPM
Hi every:
I'm trying to use Twig on Symfony 1.4RC1. After read the docs I've wrote 
this piece of code:

function preExecute() {
 require_once sfConfig::get('sf_lib_dir').'/twig/Autoloader.php';
 Twig_Autoloader::register();
}

public function executeTestTwig() {
 $loader = new 
Twig_Loader_Filesystem(sfConfig::get('sf_web_dir').'/themes/default');
 $twig = new Twig_Environment($loader, array(
 'cache' => sfConfig::get('sf_cache_dir').'/templates'
 ));

 $twig->loadTemplate('install.index.html');
}

But surprise when I call the method I get this error:

500 | Internal Server Error | sfRenderException
The template "TestTwigSuccess.php" does not exist or is unreadable in "".

What I'm doing wrong?
Cheers and thanks in advance

--

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 options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




Re: [symfony-users] Not quite symfony but very related (and cool)

2009-11-19 Thread Sid Bachtiar
Hahaha, very nice ... thanks for the link

On Fri, Nov 20, 2009 at 1:31 PM, a...@speedypin.com  wrote:
> http://www.youtube.com/watch?v=a0qMe7Z3EYg&feature=player_embedded&aia=true
>
> Dudes pretty cool, very funny, good info presented well/authentic.
>
> I just wanted to share, hopefully all Symfony developers are upper
> crust developers of the industry so may find this worth a view. (I
> certainly like it and I am a Symfony developer)
>
> This is a troll disclamer!: "Trolls don't tell me this isn't the right
> google group to post this, as I already acknowledged that in my
> subject, (give me a little freedom, )"
>
> Sombody should pay this guy (just like somebody should be paying
> Sensio Labs for $ymfony).
>
> --
>
> 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.
> For more options, visit this group at 
> http://groups.google.com/group/symfony-users?hl=.
>
>
>



-- 
Blue Horn Ltd - System Development
http://bluehorn.co.nz

--

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 options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




[symfony-users] Not quite symfony but very related (and cool)

2009-11-19 Thread a...@speedypin.com
http://www.youtube.com/watch?v=a0qMe7Z3EYg&feature=player_embedded&aia=true

Dudes pretty cool, very funny, good info presented well/authentic.

I just wanted to share, hopefully all Symfony developers are upper
crust developers of the industry so may find this worth a view. (I
certainly like it and I am a Symfony developer)

This is a troll disclamer!: "Trolls don't tell me this isn't the right
google group to post this, as I already acknowledged that in my
subject, (give me a little freedom, )"

Sombody should pay this guy (just like somebody should be paying
Sensio Labs for $ymfony).

--

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.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




Re: [symfony-users] Bonjour - nouvel utilisateur a un probleme 'unable to write cache file'

2009-11-19 Thread Sid Bachtiar
Hi Malcolm,

Nice to meet you :D

Some of us could probably help if we could speak French

2009/11/19 Malcolm :
> Bonjour a tous!
>
> Avant que vous ne me sautiez dessus - le probleme est un peu plus
> complexe qu'au premier regard.
>
> Je dois travailler sur un projet existant, sous Symfony 1.021.
> J'ai acquis la le projet du SVN.  Etant sous Mac os, et mon disque dur
> etant formate en case-insensitive, j'ai du monter un disk image
> formatte en case sensitive et etablir le projet la dessus pour que le
> svn checkout puisse reussir.
>
> J'ai verifier les permissions des dossier cache et log - ils sont
> 777.  Je n'arrive pas a determiner pourquoi je continue a obtenir
> l'erreur:
>
> [sfCacheException]
> Unable to write cache file "/Volumes/devImage/bubadub/cache/frontend/
> dev/config/config_config_handlers.yml.php".
> stack trace
>
>    * at ()
>      in SF_ROOT_DIR/lib/symfony/cache/sfFileCache.class.php line
> 538 ...
>             535.
>             536.     if (!$fp = @fopen($tmpFile, 'wb'))
>             537.     {
>             538.       throw new sfCacheException(sprintf('Unable to
> write cache file "%s".', $path.$file));
>             539.     }
>             540.
>             541.     if ($this->readControl)
>
> -
>
> D'autres infos qui peuvent vous etre utiles: j'ai voulu tenter le
> tutorial Jobeet, sous Symfony 1.2, et j'arrive a servir le virtual
> host sans problemes, sans erreurs.
> De meme pour un autre projet installe avec symfony 1.2.
>
> Autre detail, quant je vais dans le dossier immediatement au dessus de
> la ou syfony tente d'ecrire le fichier /Volumes/devImage/bubadub/cache/
> frontend/dev/config/config_config_handlers.yml.php, j'y trouve ce qui
> ressemble a des fichiers temporaires nommes:
>
> config_config_handlers.yml.php5FLkgi
> config_config_handlers.yml.phphLeNYq
>
> etc
>
> a chaque tentative, un nouveau fichier temporaire s'ecrit.
>
> Je serai bien content de savoir ce qui freine mon progres, ici!
>
> Merci d'avance et au plaisir de decouvrir plus de symfony!
>
> Malcolm
>
> --
>
> 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.
> For more options, visit this group at 
> http://groups.google.com/group/symfony-users?hl=.
>
>
>



-- 
Blue Horn Ltd - System Development
http://bluehorn.co.nz

--

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.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




[symfony-users] JIRA, Confluence, Bamboo, Fisheye... all $10 each!

2009-11-19 Thread Lee Bolding
Hey guys,

I just saw on Twitter than Atlassian are offering their startup kits again - 
most (all?) of their products, limited to 10 users (except Crowd - 50 users) 
for $10 apiece.

These are some SERIOUSLY good bits of software. If you have a small development 
team, I can't recommend them highly enough.

Go take a look here : http://www.atlassian.com/starter/


--

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.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




[symfony-users] How to set the Html 'value' attribute from a sfWidgetFormInputHidden

2009-11-19 Thread gato chlr
hi!

How to set the Html 'value' attribute from a sfWidgetFormInputHidden

i mean,
$a = new sfWidgetFormInputHidden();
how can i do somthing like $a->setValue($myValue);

so ,when i print the $form (echo $form)
the html printed result as next:

..

..

 Thanks a lot

--

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.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




Re: [symfony-users] SVN repo not authenticating?

2009-11-19 Thread Lee Bolding
Thanks anyway, Fabian.

I just resolved it by making a fresh checkout, then manually overwriting all of 
the changed files. Not sure why that worked, I was still prompted for my 
authentication details, and still entered the same... 

Anyway, that means there's a brand spanking new sfErrorHandlerPlugin in SVN. I 
have to admit I haven't had the time to test it myself - I just applied a bunch 
of patches I'd received, and fixed a bug I knew already existed... so if 
anybody is feeling brave, download it from SVN and have a play. Let me know if 
anything is broken.

Features / Fixes in this version :
- errors in dev env now reported into web debug toolbar
- fixed double rendering of error page when sfAction::forward is used
- set HTTP 500 headers on fatal errors when thrown by sfErrorHandler
- fixed issue when sfSecurityException thrown
- fixed incorrect constant E_WARN

Thanks to Martin Schnabel and Jussi Holm for providing patches :)

On 18 Nov 2009, at 14:54, Fabian Lange wrote:

> Not me,
> I don't have svn powers anymore
> 
> Fabian
> 
> On Wed, Nov 18, 2009 at 1:10 AM, Lee Bolding  wrote:
>> Hey guys,
>> 
>> Who should this be directed to? Fabi(e|a)n? Stefan?
>> 
>> I'm trying to commit a bunch of fixes that people have contributed to 
>> sfErrorHandlerPlugin recently, but I keep getting an authentication failure 
>> on the SVN repo when trying to commit. Any ideas what's wrong there?
>> 
>> Cheers
>> 
>> Lee
>> 
>> 
>> --
>> 
>> 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.
>> For more options, visit this group at 
>> http://groups.google.com/group/symfony-users?hl=.
>> 
>> 
>> 
> 
> --
> 
> 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.
> For more options, visit this group at 
> http://groups.google.com/group/symfony-users?hl=.
> 
> 

--

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.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




RE: [symfony-users] Re: DBFinderPlugin future

2009-11-19 Thread Daniel Kucharski
It would be indeed nice if some effort could be made to get this plugin
working on symfony 1.3/1.4.  I can't migrate my 1.2 project to 1.3 as it
heavily depends on this plugin.  My original plan was to migrate my project
at some point in the future to Doctrine and ease the transaction-pain by
temporary using the dbfinderplugin to write propel (criteria) queries.

Go go :-)

  
-Original Message-
From: Jan Fabry [mailto:jan.fa...@monkeyman.be] 
Sent: Thursday, November 19, 2009 15:05
To: symfony users
Subject: [symfony-users] Re: DBFinderPlugin future

On Nov 19, 12:20 pm, Gareth McCumskey  wrote:
> You can stick with Propel can't you? Doctrine is only the default plugin
and
> can be changed to use Propel instead.

Yes, the standard functionality of DbFinder might work (the simpler
querying), but I was thinking about the admin generator stuff.
However, it seems that does not even work too well under Symfony 1.2,
so it might be better to just go with 1.3, and do the required admin
changes manually, or with other plugins.

Still, it would be nice to have a current, working and widely used
DbFinderPlugin, certainly with the transition to Doctrine as the
default ORM. Is anyone still motivated to look at the open bugs, or is
extra help required to get them fixed?

Greetings,

Jan Fabry

>
> On Thu, Nov 19, 2009 at 11:18 AM, Jan Fabry 
wrote:
> > Hello,
>
> > Is anyone working on updating DbFinderPlugin for Symfony 1.3/1.4, and
> > the included versions of the ORM frameworks? I don't know whether
> > François will spend more time on it, and I don't see any other
> > activity.
>
> > I would like to use it for a new project, but I guess the best way to
> > do this is start with Symfony 1.2 now, wait for the plugin, and
> > upgrade to 1.3/1.4 when it is ready?
>
> > If it is clear that no-one is planning to spend time on it, I might
> > try it. I come from a Propel background, but my knowledge of the
> > internals of Doctrine and Symfony needs work.
>
> > Greetings,
>
> > Jan Fabry
>
> > --
>
> > 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.
> > For more options, visit this group at
> >http://groups.google.com/group/symfony-users?hl=.
>
> --
> Gareth McCumskeyhttp://garethmccumskey.blogspot.com
> twitter: @garethmcc

--

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.
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=.



--

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.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




[symfony-users] Re: Separating Presentation from Symfony

2009-11-19 Thread Simon Cast
Progress update on using Symfony as API with frontend dealt with
elsewhere.

It is working surprising well.  The MVC aspect of Symfony makes
creating REST web services easy and the View layer helps return the
data nicely formatted.

Symfony has been well suited to this approach.

-Simon

On Sep 29, 7:15 pm, Simon Cast  wrote:
> Hi,
>
> Thanks for the info.
>
> Having read the manual some more along with the Jobeet Tutorial it
> seems the best way to do this is to use the full Symfony MVC but
> instead of rendering HTML render JSON/XML.
>
> http://www.symfony-project.org/jobeet/1_2/Doctrine/en/16
>
> Regards,
>
> Simon
>
> On Sep 28, 5:09 pm, Eno  wrote:
>
> > On Mon, 28 Sep 2009,SimonCast wrote:
> > > One pitfall that I haven't resolved is how the HTML/JS pages and
> > > Symfony are going to site on the same server and play nice together.
> > > I could see problems with going towww.example.comandSymfony
> > > index.php taking over but that is probably resolved by changing the
> > > htmldocs directory.
>
> > You can edit the .htaccess file and specify which URLs should not go to
> > the symfony controller...
>
> > > On a similar note, does anyone know if there will be problems with
> > > calling actions straight without first going through the index.php?
>
> > Since the controller sets variables, loads configuration, and creates the
> > context, you would have to do that yourself if you are not using the
> > symfony controller.
>
> > --

--

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.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




[symfony-users] Re: Separating Presentation from Symfony

2009-11-19 Thread Simon Cast
No, I was following the MVC symfony stuff as described in the
documents.  It was the thought of learning something new.  Big thing
came down to he didn't want to learn the forms or the templating
helpers for Symfony.  In the end I couldn't be bothered trying to
convince him of the better way of doing it.

One advantage of doing the API way is that a templating system can be
added on top at a later date.

On Oct 1, 12:45 pm, Gareth McCumskey  wrote:
> I hope this isn't because you are generating HTML inside your actions or
> model and passing it to the view to render that way? Then I could understand
> a non-symfony/PHP person being scared to work with symfony's template. One
> of the strenghts of symfony, if you follow best practices of HTML only in
> the view, is that the templating/HTML side of the app is totally seperated
> from business logic and so editing HTML doesn't break logic and vice versa.
>
> Twist his arm and get him into it and he'll realise how cool it is ;). The
> time spent trying to do it this special way will far exceed time spent for
> him just to learn the directory structure
>
>
>
> On Tue, Sep 29, 2009 at 9:23 PM, Simon Cast  wrote:
>
> > Why? Quite simply my programming skills/experience doesn't extend tong to
> > doing what you talk about in the time I have.
>
> > It is a trade-off.
>
> > I written the application to use the full Symfony framework however
> > the person responsible for the UI doesn't want to learn Symfony
> > templating to fix my mediocre HTML pages.
>
> > -Simon
>
> > On Sep 28, 7:28 pm, Gareth McCumskey  wrote:
> > > Personally I don't see why you would even bother with symfony then. The
> > > whole point is that symfony is an MVC, not just M and half a C. Sure, you
> > > probably could just use the bits you want but if your not using symfony's
> > > view/templating system why not just use Propel on its own, tack on your
> > own
> > > "actions" class, etc and let that HTML you are talking about do the rest.
> > > Then you don't have to worry about hacking symfony up to do half its job.
>
> > > On Mon, Sep 28, 2009 at 5:55 PM, Simon Cast 
> > wrote:
>
> > > > Hi,
>
> > > > I'm working on a project where we are going to not use the presenation/
> > > > view layer of symfony to render pages.  All the actions, business
> > > > logic and database access will be handled by Symfony but the
> > > > presenation/page generation will be handled using straight HTML/JS
> > > > (don't ask). Symfony in effect manages API calls.
>
> > > > Does any one have advice or tips on potential pitfalls?
>
> > > > One pitfall that I haven't resolved is how the HTML/JS pages and
> > > > Symfony are going to site on the same server and play nice together.
> > > > I could see problems with going towww.example.comandSymfony
> > > > index.php taking over but that is probably resolved by changing the
> > > > htmldocs directory.
>
> > > > On a similar note, does anyone know if there will be problems with
> > > > calling actions straight without first going through the index.php?
>
> > > > Thanks for any pointers.
>
> > > > Regards,
>
> > > > Simon
>
> > > --
> > > Gareth McCumskeyhttp://garethmccumskey.blogspot.com
> > > twitter: @garethmcc
>
> --
> Gareth McCumskeyhttp://garethmccumskey.blogspot.com
> twitter: @garethmcc

--

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.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




[symfony-users] Re: Separating Presentation from Symfony

2009-11-19 Thread Simon Cast
Yes and that's how I learnt it.  But he saw the 100+ pages and didn't
want to learn and honestly didn't want to keep the argument going.

API has worked generally well.

On Sep 30, 3:28 pm, david  wrote:
> The sf for web designers is pretty easy reading:  
> http://www.symfony-project.org/forms/1_2/en/
>
> On Wed, 30 Sep 2009 17:24:04 +0200, webPragmatist  
>
>
>
>  wrote:
>
> > On Sep 29, 5:35 pm, Eno  wrote:
> >> On Tue, 29 Sep 2009,SimonCast wrote:
> >> > I written the application to use the full Symfony framework however
> >> > the person responsible for the UI doesn't want to learn Symfony
> >> > templating to fix my mediocre HTML pages.
>
> >> Symfony templating is generally just bits of PHP inside mostly HTML  
> >> pages.
> >> The only 'difficult' part is learning how to figure from routing what
> >> template file to edit.
>
> >> --
>
> > And I'd argue it's going to take more time to figure out how do it
> > this way (if bickering over not wanting to learn symfony hasn't
> > already) :)
>
> --
> Using Opera's revolutionary e-mail client:http://www.opera.com/mail/

--

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.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




[symfony-users] Re: Separating Presentation from Symfony

2009-11-19 Thread Simon Cast
Ended up going with API and he can write it using PHP files & JS how
he likes.  There is a point where it becomes easier.

On Sep 30, 3:24 pm, webPragmatist  wrote:
> On Sep 29, 5:35 pm, Eno  wrote:
>
> > On Tue, 29 Sep 2009,SimonCast wrote:
> > > I written the application to use the full Symfony framework however
> > > the person responsible for the UI doesn't want to learn Symfony
> > > templating to fix my mediocre HTML pages.
>
> > Symfony templating is generally just bits of PHP inside mostly HTML pages.
> > The only 'difficult' part is learning how to figure from routing what
> > template file to edit.
>
> > --
>
> And I'd argue it's going to take more time to figure out how do it
> this way (if bickering over not wanting to learn symfony hasn't
> already) :)

--

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.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




[symfony-users] Re: Separating Presentation from Symfony

2009-11-19 Thread Simon Cast
No, they aren't using a framework at all and simply used PHP with JS.
The frontend guy is more designer than dev.

On Sep 30, 4:06 am, Ant Cunningham  wrote:
> SimonCast wrote:
> > Why? Quite simply my programming skills/experience doesn't extend to
> > doing what you talk about in the time I have.
>
> > It is a trade-off.
>
> > I written the application to use the full Symfony framework however
> > the person responsible for the UI doesn't want to learn Symfony
> > templating to fix my mediocre HTML pages.
>
> Sounds like you need a new frontend developer :-)
>
> Were they expecting a static site or are they used to a different
> templating system?
>
> -ant

--

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.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




[symfony-users] Re: Separating Presentation from Symfony

2009-11-19 Thread Simon Cast
Yes but he got stuck on the 100 pages about the framework and honestly
didn't want to argue.

On Sep 29, 10:35 pm, Eno  wrote:
> On Tue, 29 Sep 2009,SimonCast wrote:
> > I written the application to use the full Symfony framework however
> > the person responsible for the UI doesn't want to learn Symfony
> > templating to fix my mediocre HTML pages.
>
> Symfony templating is generally just bits of PHP inside mostly HTML pages.
> The only 'difficult' part is learning how to figure from routing what
> template file to edit.
>
> --

--

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.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




[symfony-users] Re: Separating Presentation from Symfony

2009-11-19 Thread Simon Cast
They didn't want to learn the Symfony forms. :(

On Sep 29, 10:34 pm, Eno  wrote:
> On Tue, 29 Sep 2009,SimonCast wrote:
> > I would like to use the full Symfony layer but the person doing the
> > presenation/HTML doesn't want to use Symfony.
>
> Because? (Just curious if they have any good reasons for not using a
> framework - do they like a different framework?).
>
> --

--

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.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




RE: [symfony-users] symfony 1.3 - propel build error

2009-11-19 Thread Daniel Kucharski
Fabian,

I updated the symfony library to the latest SVN version, now it works fine.

-Original Message-
From: Fabian Lange [mailto:fabian.la...@symfony-project.com] 
Sent: Wednesday, November 18, 2009 16:29
To: symfony-users@googlegroups.com
Subject: Re: [symfony-users] symfony 1.3 - propel build error

Is that using the latest RC/SVN?
I think there has been a bug, but this should be fixed.
I checked my project and it works
Fabian

On Wed, Nov 18, 2009 at 2:38 PM, Daniel Kucharski 
wrote:
> Here you are:
>
> BaseBloggableHasTagPeer.php à http://pastebin.org/54843
>
> Schema.yml à http://pastebin.org/54845
>
>
>
>
>
> From: Alexandre SALOME [mailto:alexandre.sal...@gmail.com]
> Sent: Wednesday, November 18, 2009 13:07
> To: symfony-users@googlegroups.com
> Subject: Re: [symfony-users] symfony 1.3 - propel build error
>
>
>
> Could you create a pastebin with the full BasePeer code, and one with your
> model definition ?
>
> Thanks,
>
> Alexandre
>
> 2009/11/18 Daniel Kucharski 
>
> Hi,
>
>
>
> I am trying to port a symfony 1.2 application to 1.3.  When regenerating
the
> model, I get following parse error below.  It looks that something goes
> wrong when the  symfony behaviors code is added to the propel generated
code
> (a ‘}’ for closing the method doUpdate is missing).  Anybody any idea how
to
> resolve this issue?
>
>
>
> D:\wamp\www\xerias_13>php symfony propel:build --all-classes
>
>>> schema    converting "D:/wamp/www/xerias_13/config/schema.yml" to XML
>
>>> schema    putting D:/wamp/www/xerias_13/config/generated-schema.xml
>
>>> propel    Running "om" phing task
>
>>> file- D:/wamp/www/xerias_13/config/generated-schema.xml
>
>>> file- D:/wamp/www/xerias_13/config/generated-schema-transformed.xml
>
>>> autoload  Resetting application autoloaders
>
>>> file-
>>> D:/wamp/www/xerias_13/cache/fro.../config/config_autoload.yml.php
>
>>> propel    generating form classes
>
> PHP Parse error:  parse error, expecting `T_FUNCTION' in
> D:\wamp\www\xerias_13\l
>
> ib\model\om\BaseBloggableHasTagPeer.php on line 1597
>
>
>
>
>
> To be more specific, this is the context:
>
>
>
>     $ret = BasePeer::doUpdate($selectCriteria, $criteria,
$con);
>
>     }
>
>     // symfony_behaviors behavior
>
>     foreach
(sfMixer::getCallables('BaseBloggableHasTagPeer:doUpdate:post')
> as $sf_hook)
>
>     {
>
>   call_user_func($sf_hook, 'BaseBloggableHasTagPeer', $values, $con,
> $ret);
>
>     }
>
>
>
>     return $ret;
>
> // LINE 1597
>
>
>
>     /**
>
>      * Method to DELETE all rows from the bloggable_has_tag
> table.
>
>      *
>
>      * @return int The number of affected rows (if
supported
> by underlying database driver).
>
>      */
>
>     public static function doDeleteAll($con = null)
>
>
>
>
>
>
>
> --
>
> 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.
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=.
>
>
> --
> Alexandre Salomé -- alexandre.sal...@gmail.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-us...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=.
>
> --
>
> 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.
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=.
>

--

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.
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=.



--

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.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




[symfony-users] add class="error" to all widgets when 0 < count($errors)

2009-11-19 Thread Jack Bates
How can I add a default attribute, class="error", when any for widget
is rendered and 0 < count($errors) and a class attribute isn't
specified?

e.g. I want,



- to output,



- if this field has a validation error

I looked at the sfWidgetFormFormatter classes, which control the
markup around widgets - but don't think these classes can control the
markup of the actual widget - like adding a class="error" attribute if
this field has a validation error

--

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.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




[symfony-users] Re: Unsubscribe from the group

2009-11-19 Thread larry
Something is wrong with Google. Just yesterday it started emailing me
every messages posted here, even though I've always had my preferences
set to "no email".

Let's hope they get this fixed quickly.


On Nov 19, 12:26 pm, "Patrick Landolt" 
wrote:
> Same problem here!
>
> please remove me, too.
>
> thanks
>
> Von: Damien Brugne [mailto:dbru...@x-prime.com]
> Gesendet: Donnerstag, 19. November 2009 18:22
> An: symfony-users@googlegroups.com
> Betreff: [symfony-users] Unsubscribe from the group
>
> Hello Admins,
>
> Please unsubscribe me from this list. I tried to send an email to
> symfony-users+unsubscr...@googlegroups.com and received an error message:
>
> Delivery to the following recipient failed permanently:
>
>      symfony-users+unsubscr...@googlegroups.com
>
> Technical details of permanent failure:
>
> The membership of this group is handled by an external system, you
>
> cannot remove your membership via mail commands.
>
> I cannot unsubscribe by Web, because my email has no Google account.
>
> In addition I don't how my e-mail address has arrived in the subscriber list
> of this group one week ago.
>
> Thank you,
>
> Damien.
>
> --
>
> 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.
> For more options, visit this group 
> athttp://groups.google.com/group/symfony-users?hl=.

--

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.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




AW: [symfony-users] Unsubscribe from the group

2009-11-19 Thread Patrick Landolt
Same problem here!

 

please remove me, too.

 

thanks

 

Von: Damien Brugne [mailto:dbru...@x-prime.com] 
Gesendet: Donnerstag, 19. November 2009 18:22
An: symfony-users@googlegroups.com
Betreff: [symfony-users] Unsubscribe from the group

 

Hello Admins, 

 

Please unsubscribe me from this list. I tried to send an email to
symfony-users+unsubscr...@googlegroups.com and received an error message: 

 

Delivery to the following recipient failed permanently: 

 

 symfony-users+unsubscr...@googlegroups.com 

 

Technical details of permanent failure: 

The membership of this group is handled by an external system, you 

cannot remove your membership via mail commands. 

 

I cannot unsubscribe by Web, because my email has no Google account.

 

In addition I don't how my e-mail address has arrived in the subscriber list
of this group one week ago.

 

Thank you,

 

Damien.

--

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.
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=.

--

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.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




[symfony-users] Unsubscribe from the group

2009-11-19 Thread Damien Brugne
Hello Admins,

Please unsubscribe me from this list. I tried to send an email to 
symfony-users+unsubscr...@googlegroups.com and received an error message:

Delivery to the following recipient failed permanently:

 symfony-users+unsubscr...@googlegroups.com

Technical details of permanent failure:
The membership of this group is handled by an external system, you
cannot remove your membership via mail commands.

I cannot unsubscribe by Web, because my email has no Google account.

In addition I don't how my e-mail address has arrived in the subscriber list of 
this group one week ago.

Thank you,

Damien.

--

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.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




Re: [symfony-users] Re: Save embedded forms at diferent times

2009-11-19 Thread Stefan Paschke
Hi Germana

did you aggregate the object that populates the embedded form? In the main 
forms configure():

  public function configure()
  {
...

if ( $this->object->getPersona() == null )
{
  $this->object->setPersona( new Persona() );
}
$persona_form = new PersonaForm( $this->object->getPersona(), 
$this->options );
$this->embedForm( "persona", $persona_form );
  }

otherwise, the Audienca object won't know what to do with the embedded Persona, 
I guess.

regards

Stefan


On Nov 19, 2009, at 5:16 PM, Germana Oliveira wrote:

> Stefan Paschke escribió:
>> Hi Germana
>> 
>> 
>>> I have to embedded Forms into a main Form, and i have to do this process:
>>> 
>>> 1. Save the embedded  Form number1
>>> 2. Save the main Form (the main Form have some Foreing Key from Embedded
>>> Form number1)
>>> 
>> 
>> that is pretty much standard. why does it not work? How do you configure the 
>> first embedded form?
>> 
>> 
>>> 3. Save embedded Form number2 (this embedded Form have some Foreign Key
>>> from Main Form)
>>> 
>> 
>> Stefan
>> 
>> 
> This is what i do:
> 
> i have a mainForm :  Audiencia
> 1 embeddedForm:  Persona
> 1 embeddedForm: AudienciaConciliador

--

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.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




Re: [symfony-users] Re: Save embedded forms at diferent times

2009-11-19 Thread Germana Oliveira
Stefan Paschke escribió:
> Hi Germana
>
>   
>> I have to embedded Forms into a main Form, and i have to do this process:
>>
>> 1. Save the embedded  Form number1
>> 2. Save the main Form (the main Form have some Foreing Key from Embedded
>> Form number1)
>> 
>
> that is pretty much standard. why does it not work? How do you configure the 
> first embedded form?
>
>   
>> 3. Save embedded Form number2 (this embedded Form have some Foreign Key
>> from Main Form)
>> 
>
> Stefan
>
>   
This is what i do:

i have a mainForm :  Audiencia
1 embeddedForm:  Persona
1 embeddedForm: AudienciaConciliador

So, my doSave function is this:

  protected function doSave($con = null)
   {
  if (is_null($con))
  {
$con = $this->getConnection();
  }

  $this->updateObject();

//EMBDDED FORMS//
$forms = $this->getEmbeddedForms();

   //HERE I TRY TO PREDICT THE ID OF THE AUDIENCIA//
   ---> this code seems not to be working.
I dont know if i can save an embeddedForm one by one, so i 
have to do this because i have to save all embeddedForm toguether.
> So why it's not working? any ideas ?

   $audiencias = AudienciaPeer::doCount( new Criteria() );
   $id = ($audiencias > 0)  ? ($audiencias + 1) : 0;
   $clase = new AudienciaConciliador();
   $clase->setAudienciaId( $id );


$this->saveEmbeddedForms($con);

$denunciante_id = $forms['denunciante']->getObject()->getId();
$denunciado_id = $forms['denunciado']->getObject()->getId();

$this->getObject()->setDenuncianteId($denunciante_id);
$this->getObject()->setDenunciadoId($denunciado_id);


 //STATICS VALUES OF THE MAIN FORMA
 $ordenado = 
sfContext::getInstance()->getUser()->getEmpleadoUsuario('id');
 $fecha = date('d').'-'.date('m').'-'.date('Y');
 $correlativo = Audiencia::obtenerCorrelativo();

 $this->getObject()->setOrdenado($ordenado);
 $this->getObject()->setCorrelativo($correlativo);
 $this->getObject()->setFecha($fecha);
 $this->getObject()->setSistema(false);

 $this->getObject()->save($con);

-- 
Germana Oliveira

Correo-e:   germanaoliveirab_at_gmail.com
Blog:   http://slcarabobo.wordpress.com
Usuario Linux : #493487

Carabobo, Venezuela.

--

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.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




[symfony-users] Error 500 index metatags in the application

2009-11-19 Thread symfony
Hello everyone,
I developed a small symfony applications in which I position in
google, the problem is that when I go to check the metatags of the
home page (index.php) I get a 500 error when I consult with tools like
"http://www. submitexpress.com / analyzer / ", but to enter another
page not error me out. only occurs in the index
the aplicaion,
Is mounted on a godaddy shared server and to configure only enter the
public folder (web), I play to create a symbolic link, that for safety
reasons and to maintain friendly urls.
If someone's in something similar happened, I would appreciate a
little help, because at present I have not positioned the domain which
is on the air more than 15 days.


In advance thank you very much.

--

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.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




[symfony-users] Re: cant load data from fixture to database through doctrine:data-load

2009-11-19 Thread rosb
Checks Privileges on your User db

On Nov 19, 5:01 am, Shahzeb Farooq  wrote:
> hi all ,
> i am facing a problem that i have created a project all gone well but
> im stuck at symfony doctrine:data-load when ever i tried to load data
> from /fixtures  to database.
> when i execute the command it shows following message
>
> >> doctrine  loading data fixtures from "/ho...fprojects/jobeet/data/fixtures"
> >> doctrine  Data was successfully loaded
>
> but still there is no data in the database.i have followed all steps
> as it is inhttp://www.symfony-project.org/jobeet/1_2/Doctrine/en/03
> but...
>
> please help me
> shahzeb Farooq Chohan
> sftra...@yahoo.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-us...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




Re: [symfony-users] Raising sfValidatorError inside action?

2009-11-19 Thread Bernhard Schussek
The solution is to put the check into a pre or post validator in the
form. You can pass everything into the form that is required to
perform the check.

Bernhard

--

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.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




[symfony-users] Raising sfValidatorError inside action?

2009-11-19 Thread Christian Hammers
Hello

Inside the executeXYZ() function of an actions.class.php I check a condition
that can not be put into validators. If that condition fails I still want
to have a red error message on top of the formular. How is this possible?

I.e.:

   public function executeXYZ(sfWebRequest $request) {
$this->form = new MyForm();
$this->form->bind($request->getParameter($this->form->getName()));

// check for something
if ( ! reallyValid()) {
   $this->form->insertGlobalError("That something failed.");
   $this->setTemplate('edit');
   return;
}

... normal stuff with isValid() and $this->form->save() ...
   }

bye,

-christian-

--

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.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




[symfony-users] Re: I18n, Doctrine, Postgres, Schemas

2009-11-19 Thread jakub novotny
Problem solved. We have just added parameter tableName:
schema.table_name to section I18n in file schema.yml and it works.

On Nov 2, 2:34 pm, jakub novotny  wrote:
> I18n, Doctrine, Postgres, Schemas
>
> I have been working on project written in Symfony 1.2.9 with Doctrine
> 1.2, where
> we use several schemas on Postgres database. We use task that renames
> lib/model
> classes from TableName to SchemaTableName and sets table name to
> schema.table_name,
> because, as we found out, Doctrine can not work with schemas yet.
>
> The problem is, that when we need to use I18n Doctrine behavior,
> Doctrine is
> trying to select translation from schema_table_name_translation, not
> from schema.table_name_translation. It seems that it only transforms
> class name from camel case to underscore and appends translation.
>
> Is it possible to set constraint to table with translation and still
> keep the I18n behavior?
> Or is there another solution?

--

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.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




[symfony-users] Symfony 1.3 doctrine:build-schema error

2009-11-19 Thread PhiKapJames
I just updated my libraries to what is in the repository this
morning.  I had made a change to my existing MySQL database schema, so
I wanted to regenerate the models, etc.  When I went to rebuild the
schema this time, I ran into this error:

jwh...@sejam-linux:~/TestSymfony$ ./symfony doctrine:build-schema
>> doctrine  generating yaml schema from database


  Missing class name.


jwh...@sejam-linux:~/TestSymfony$




I pulled the RC1 off of the site and had the same issues.  Luckily, I
had the ALHPA2 sitting around still, so I moved that version over and
tried it and it worked perfectly:

jwh...@sejam-linux:~/TestSymfony$ ./symfony doctrine:build-schema
>> doctrine  generating yaml schema from database
>> doctrine  Generate YAML schema successfully from database
jwh...@sejam-linux:~/TestSymfony$

--

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.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




Re: [symfony-users] Thanks to the devs of symfony

2009-11-19 Thread Sid Ferreira
UP!

On Thu, Nov 19, 2009 at 11:55, Gareth McCumskey wrote:

> I know this isn't exactly an issue that needs resolving but I just had to
> send my thanks to the symfony developers for producing such a great
> framework. Why? you might ask. This morning our company directors held a
> breakfast demo to numerous companies and potential clients to show the
> products and services we supply. Amongst the most positive feedback was an
> interface, written in symfony, to our email security backend (spam scanning
> etc). The attendees loved it and couldn't stop heaping praises on us for the
> slickness, professionalism and intuitiveness of the interface.
>
> A large part of this success is due to the fact that symfony includes so
> much within its code that makes developing applications a breeze, allowing
> us as developers to focus almost exclusively on business and application
> logic and functionality as opposed to worrying about database abstractions,
> Javascript/Ajax (symfony helpers help a ton), security issues (we do take
> security seriously just so much is automated), speed to bring new
> functionality in thanks to the MVC structure and so much more.
>
> I think many of us developers forget how fantastic symfony really is, so
> after this morning I realised our success was in large part due to symfony
> and the guys that build it. Keep up the great work guys and THANKS!!
>
> --
> Gareth McCumskey
> http://garethmccumskey.blogspot.com
> twitter: @garethmcc
>
> --
> 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.
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=.
>



-- 
Sidney G B Ferreira
Desenvolvedor Web

--

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.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




[symfony-users] Re: DBFinderPlugin future

2009-11-19 Thread Jan Fabry
On Nov 19, 12:20 pm, Gareth McCumskey  wrote:
> You can stick with Propel can't you? Doctrine is only the default plugin and
> can be changed to use Propel instead.

Yes, the standard functionality of DbFinder might work (the simpler
querying), but I was thinking about the admin generator stuff.
However, it seems that does not even work too well under Symfony 1.2,
so it might be better to just go with 1.3, and do the required admin
changes manually, or with other plugins.

Still, it would be nice to have a current, working and widely used
DbFinderPlugin, certainly with the transition to Doctrine as the
default ORM. Is anyone still motivated to look at the open bugs, or is
extra help required to get them fixed?

Greetings,

Jan Fabry

>
> On Thu, Nov 19, 2009 at 11:18 AM, Jan Fabry  wrote:
> > Hello,
>
> > Is anyone working on updating DbFinderPlugin for Symfony 1.3/1.4, and
> > the included versions of the ORM frameworks? I don't know whether
> > François will spend more time on it, and I don't see any other
> > activity.
>
> > I would like to use it for a new project, but I guess the best way to
> > do this is start with Symfony 1.2 now, wait for the plugin, and
> > upgrade to 1.3/1.4 when it is ready?
>
> > If it is clear that no-one is planning to spend time on it, I might
> > try it. I come from a Propel background, but my knowledge of the
> > internals of Doctrine and Symfony needs work.
>
> > Greetings,
>
> > Jan Fabry
>
> > --
>
> > 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.
> > For more options, visit this group at
> >http://groups.google.com/group/symfony-users?hl=.
>
> --
> Gareth McCumskeyhttp://garethmccumskey.blogspot.com
> twitter: @garethmcc

--

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.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




[symfony-users] Thanks to the devs of symfony

2009-11-19 Thread Gareth McCumskey
I know this isn't exactly an issue that needs resolving but I just had to
send my thanks to the symfony developers for producing such a great
framework. Why? you might ask. This morning our company directors held a
breakfast demo to numerous companies and potential clients to show the
products and services we supply. Amongst the most positive feedback was an
interface, written in symfony, to our email security backend (spam scanning
etc). The attendees loved it and couldn't stop heaping praises on us for the
slickness, professionalism and intuitiveness of the interface.

A large part of this success is due to the fact that symfony includes so
much within its code that makes developing applications a breeze, allowing
us as developers to focus almost exclusively on business and application
logic and functionality as opposed to worrying about database abstractions,
Javascript/Ajax (symfony helpers help a ton), security issues (we do take
security seriously just so much is automated), speed to bring new
functionality in thanks to the MVC structure and so much more.

I think many of us developers forget how fantastic symfony really is, so
after this morning I realised our success was in large part due to symfony
and the guys that build it. Keep up the great work guys and THANKS!!

-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

--

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.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




[symfony-users] Re: cant load data from fixture to database through doctrine:data-load

2009-11-19 Thread cosmy
post your fixtures and your schema

On 19 Nov, 10:01, Shahzeb Farooq  wrote:
> hi all ,
> i am facing a problem that i have created a project all gone well but
> im stuck at symfony doctrine:data-load when ever i tried to load data
> from /fixtures  to database.
> when i execute the command it shows following message
>
> >> doctrine  loading data fixtures from "/ho...fprojects/jobeet/data/fixtures"
> >> doctrine  Data was successfully loaded
>
> but still there is no data in the database.i have followed all steps
> as it is inhttp://www.symfony-project.org/jobeet/1_2/Doctrine/en/03
> but...
>
> please help me
> shahzeb Farooq Chohan
> sftra...@yahoo.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-us...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




Re: [symfony-users] DBFinderPlugin future

2009-11-19 Thread Gareth McCumskey
You can stick with Propel can't you? Doctrine is only the default plugin and
can be changed to use Propel instead.

On Thu, Nov 19, 2009 at 11:18 AM, Jan Fabry  wrote:

> Hello,
>
> Is anyone working on updating DbFinderPlugin for Symfony 1.3/1.4, and
> the included versions of the ORM frameworks? I don't know whether
> François will spend more time on it, and I don't see any other
> activity.
>
> I would like to use it for a new project, but I guess the best way to
> do this is start with Symfony 1.2 now, wait for the plugin, and
> upgrade to 1.3/1.4 when it is ready?
>
> If it is clear that no-one is planning to spend time on it, I might
> try it. I come from a Propel background, but my knowledge of the
> internals of Doctrine and Symfony needs work.
>
> Greetings,
>
> Jan Fabry
>
> --
>
> 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.
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=.
>
>
>


-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

--

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.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




[symfony-users] cant load data from fixture to database through doctrine:data-load

2009-11-19 Thread Shahzeb Farooq
hi all ,
i am facing a problem that i have created a project all gone well but
im stuck at symfony doctrine:data-load when ever i tried to load data
from /fixtures  to database.
when i execute the command it shows following message
>> doctrine  loading data fixtures from "/ho...fprojects/jobeet/data/fixtures"
>> doctrine  Data was successfully loaded

but still there is no data in the database.i have followed all steps
as it is in http://www.symfony-project.org/jobeet/1_2/Doctrine/en/03
but...

please help me
shahzeb Farooq Chohan
sftra...@yahoo.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-us...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




[symfony-users] symfony: cant load data from fixture to database through doctrine:data-load

2009-11-19 Thread Shahzeb Farooq
hi all ,
i am facing a problem that i have created a project all gone well but
im stuck at symfony doctrine:data-load when ever i tried to load data
from /fixtures  to database.
when i execute the command it shows following message

>> doctrine  loading data fixtures from "/ho...fprojects/jobeet/data/fixtures"
>> doctrine  Data was successfully loaded

but still there is no data in the database.i have followed all steps
as it is in http://www.symfony-project.org/jobeet/1_2/Doctrine/en/03
but...

please help me
shahzeb Farooq Chohan
sftra...@yahoo.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-us...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




[symfony-users] Bonjour - nouvel utilisateur a un probleme 'unable to write cache file'

2009-11-19 Thread Malcolm
Bonjour a tous!

Avant que vous ne me sautiez dessus - le probleme est un peu plus
complexe qu'au premier regard.

Je dois travailler sur un projet existant, sous Symfony 1.021.
J'ai acquis la le projet du SVN.  Etant sous Mac os, et mon disque dur
etant formate en case-insensitive, j'ai du monter un disk image
formatte en case sensitive et etablir le projet la dessus pour que le
svn checkout puisse reussir.

J'ai verifier les permissions des dossier cache et log - ils sont
777.  Je n'arrive pas a determiner pourquoi je continue a obtenir
l'erreur:

[sfCacheException]
Unable to write cache file "/Volumes/devImage/bubadub/cache/frontend/
dev/config/config_config_handlers.yml.php".
stack trace

* at ()
  in SF_ROOT_DIR/lib/symfony/cache/sfFileCache.class.php line
538 ...
 535.
 536. if (!$fp = @fopen($tmpFile, 'wb'))
 537. {
 538.   throw new sfCacheException(sprintf('Unable to
write cache file "%s".', $path.$file));
 539. }
 540.
 541. if ($this->readControl)

-

D'autres infos qui peuvent vous etre utiles: j'ai voulu tenter le
tutorial Jobeet, sous Symfony 1.2, et j'arrive a servir le virtual
host sans problemes, sans erreurs.
De meme pour un autre projet installe avec symfony 1.2.

Autre detail, quant je vais dans le dossier immediatement au dessus de
la ou syfony tente d'ecrire le fichier /Volumes/devImage/bubadub/cache/
frontend/dev/config/config_config_handlers.yml.php, j'y trouve ce qui
ressemble a des fichiers temporaires nommes:

config_config_handlers.yml.php5FLkgi
config_config_handlers.yml.phphLeNYq

etc

a chaque tentative, un nouveau fichier temporaire s'ecrit.

Je serai bien content de savoir ce qui freine mon progres, ici!

Merci d'avance et au plaisir de decouvrir plus de symfony!

Malcolm

--

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.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




[symfony-users] Re: sfguarduser. How to check before login ?

2009-11-19 Thread Avani
Hi Gareth,

thanks verymuch.

It helped.

I added below line code in sfGuardBasicSecurityFilter

//signour if guest user and click on login page
if($this->getContext()->getUser()->getGuardUser()->getIsGuest())
{
$this->getContext()->getUser()->signOut();
}

Thanks Again.

On Nov 19, 1:39 pm, Gareth McCumskey  wrote:
> What about doing a pre-filter?
>
> http://www.symfony-project.org/book/1_2/06-Inside-the-Controller-Laye...
>
>
>
> On Thu, Nov 19, 2009 at 6:08 AM, Avani  wrote:
> > Hi friends,
>
> > In my "before login" pages, there are 3 "tabs"
>
> > 1. Register (register page)
> > 2. Login (login page)
> > 3. Guest (visit site as guest)
>
> > Now, here, what I have done is.. when user clicks on "guest" he will
> > be automatically logged in as "guest" user and can access some
> > functionality of the site. So, sfguard sessions will be set.
>
> > Now the problem is.. when user click on "guest"  it will be
> > automatically logged in as "guest user". Now, if it clicks on "login",
> > it will be redirected to "profile" as user is already login... ( I
> > want to appear login here only for guest user)
>
> > But I want to put a check.. if guest user.. then click on login page,
> > logout guest user and show login form. (instead of going to profile)
>
> > My problem is .. where to write code for it ? I am not able to find
> > which file is executing and checking that "if already login and click
> > on login page, then send to profile page instead of showing login form
> > "
>
> > Can anybody help me?
>
> > thanks in advance.
>
> > --
>
> > 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.
> > For more options, visit this group at
> >http://groups.google.com/group/symfony-users?hl=.
>
> --
> Gareth McCumskeyhttp://garethmccumskey.blogspot.com
> twitter: @garethmcc

--

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.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




[symfony-users] DBFinderPlugin future

2009-11-19 Thread Jan Fabry
Hello,

Is anyone working on updating DbFinderPlugin for Symfony 1.3/1.4, and
the included versions of the ORM frameworks? I don't know whether
François will spend more time on it, and I don't see any other
activity.

I would like to use it for a new project, but I guess the best way to
do this is start with Symfony 1.2 now, wait for the plugin, and
upgrade to 1.3/1.4 when it is ready?

If it is clear that no-one is planning to spend time on it, I might
try it. I come from a Propel background, but my knowledge of the
internals of Doctrine and Symfony needs work.

Greetings,

Jan Fabry

--

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.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.