[symfony-users] sfForm sfFormField without foreach

2010-01-27 Thread DoRiaN
Hello (i'm french excuse me for my english)

How to get sfFormField in sfForm withtout foreach ?

When I use sfForm, I can get all my widget like that

foreach ($this as $oWidget) {

$oWidget-render()...
}

But i can't to do [B][I]each[/I][/B] or [B][I]while (list(, $oWidget)
= each($this))[/I][/B].

Always I need to break my foreach to start a new input template and
loop on last inputs withtout name or index.

Thanks,
Dorian

-- 
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=en.



[symfony-users] XSS escaping_strategy escaping_method not work

2010-01-27 Thread smellycat37
hello,

I use symfony 1.2.9 with doctrine...
I would like to escape all the special html character that user can
put in form html...
So I add in the section .all .settings of my settings.yml file the
followings lines:
escaping_strategy: both
escaping_method:   ESC_ENTITIES

With a form, I save an object annonce contained a description field
scriptalert('hello')/script
I display $announce-getDescription() but the javascript is
executed...
When i check the source code I've got script type=text/
javascriptalert('bonjour')/script and not gt;lt;scriptgt;alert
('hello')lt;/scriptgt;

thanks for your help

-- 
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=en.



[symfony-users] Re: What do you use symphony for?

2010-01-27 Thread Pax95
Symfony is a very cool alternative if you want to start coding fast,
not caring about base (if you know what i mean).

-- 
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=en.



[symfony-users] Doctrine inheritance and i18n forms

2010-01-27 Thread Thibault Jouannic
Hello symfony users,

I think I might have found a bug in Symfony, and I require your point
of view before a submit a bug entry.

The problem is about i18n forms in inherited doctrine models.

Let's pretend I've got this schema.yml :

blockquote
Article:
  actAs:
Timestampable: ~
I18n:
  fields: [ title, header, body ]
  actAs:
Sluggable: { fields: [ title ], uniqueBy: [ lang, title ] }

  columns:
title: { type: string(255), notnull: true }
header: { type: clob, notnull: true }

News:
  inheritance:
extends: Article
type: concrete

  columns:
body { type: clob, notnull: true }


Here's the inheritance schema that symfony generate :

NewsForm  BaseNewsForm  ArticleForm  BaseArticleForm 
BaseFormDoctrine

This seems correct to me, as I can configure all my Article related
forms in one place by tweaking the ArticleForm::configure function.

However, here's the i18n inheritance schema :

NewsTranslationForm  BaseNewsTranslationForm  BaseFormDoctrine

Here's my question : why doesn't the BaseNewsTranslationForm extends
ArticleTranslationForm ? I changed it manually, be it will be
overriden next time I build forms.

So, is this a normal behavior ? Could it be changed, and should I
submit a bug report ?

Thank you for reading,
regards,
Thibault Jouannic.

-- 
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=en.



Re: [symfony-users] sfForm sfFormField without foreach

2010-01-27 Thread Gábor Fási
You can access a field directly via `$form[fieldname]`, if that's
what you're asking.

On Wed, Jan 27, 2010 at 10:19, DoRiaN doria...@gmail.com wrote:
 Hello (i'm french excuse me for my english)

 How to get sfFormField in sfForm withtout foreach ?

 When I use sfForm, I can get all my widget like that

 foreach ($this as $oWidget) {
 
 $oWidget-render()...
 }

 But i can't to do [B][I]each[/I][/B] or [B][I]while (list(, $oWidget)
 = each($this))[/I][/B].

 Always I need to break my foreach to start a new input template and
 loop on last inputs withtout name or index.

 Thanks,
 Dorian

 --
 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=en.



-- 
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=en.



[symfony-users] Re: sfForm sfFormField without foreach

2010-01-27 Thread DoRiaN
No, i want loop.

Always I need to break my foreach to start a new input template and
loop on last inputs without name or index.

foreach (...)
... break;

Then I want loop again without foreach (because reset).

each() or while (list(, $oWidget) = each($this)) don't work




On 27 jan, 12:13, Gábor Fási maerl...@gmail.com wrote:
 You can access a field directly via `$form[fieldname]`, if that's
 what you're asking.

 On Wed, Jan 27, 2010 at 10:19, DoRiaN doria...@gmail.com wrote:
  Hello (i'm french excuse me for my english)

  How to get sfFormField in sfForm withtout foreach ?

  When I use sfForm, I can get all my widget like that

  foreach ($this as $oWidget) {
  
  $oWidget-render()...
  }

  But i can't to do [B][I]each[/I][/B] or [B][I]while (list(, $oWidget)
  = each($this))[/I][/B].

  Always I need to break my foreach to start a new input template and
  loop on last inputs withtout name or index.

  Thanks,
  Dorian

  --
  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 
  athttp://groups.google.com/group/symfony-users?hl=en.

-- 
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=en.



[symfony-users] Re: Subdomain dynamicly

2010-01-27 Thread Tom Ptacnik
So, if you change content of index.php in your web project directory
to something like ?php echo hello; ? (included my previous
recomendation) and nothing is showed. Problem is in the virtualhost
settings (apache... php...)

If you see hello text. Problem should be in your symfony
application.


On 26 led, 16:26, seifolah Ghaderi sepel...@gmail.com wrote:
 No !! It doesn't work.



 On Tue, Jan 26, 2010 at 6:45 PM, Tom Ptacnik to...@tomor.cz wrote:
  What if you add a 127.0.0.1 test.my.com to the hosts file and
  ServerAlias test.my.com to the virtualhost config. Does this
  subdomain works?

  On 26 led, 09:17, seifolah Ghaderi sepel...@gmail.com wrote:
  Hi again.
  For test sub domain I have a problem .
  I have a win xp and installed wamp on it.
  After some googleing I find how to confige virtual host name based.I
  use this confige in my host file(in C:\WINDOWS\system32\drivers\etc)

  127.0.0.1       localhost
  127.0.0.1   mysite.web
  127.0.0.1  www.my.com
  127.0.0.1   *.my.com

  And in my httpd.conf :

  VirtualHost *:80
    DocumentRoot E:/wamp/www

  ServerName localhost
    DirectoryIndex index.php
  /VirtualHost

  VirtualHost *:80
    DocumentRoot E:/dev/sfproject/mysite/web
    ServerAlias *.my.com
  ServerNamewww.my.com
    DirectoryIndex index.php
  /VirtualHost

  Now I can access my host withwww.my.comButI can't access
  subdomains.For example example1.my.com,It show page not found error.
  Any idea?

  On Wed, Jan 20, 2010 at 11:00 AM, seifolah Ghaderi sepel...@gmail.com 
  wrote:
   Thanks .I try it.

   On Tue, Jan 19, 2010 at 6:14 PM, wissl andreas.wi...@googlemail.com 
   wrote:
   There is the excellente part Advanced Routing of the 2009 symfony
   advent calendar, that is related to your topic. Have you read it?
   Otherwise give it a try!

  http://www.symfony-project.org/advent_calendar/2/en
  http://www.symfony-project.org/advent_calendar/3/en

   On 19 Jan., 14:36, sepelloo sepel...@gmail.com wrote:
   Hi all.
   I want to generate these url based on one of my tables.
   For example for each record in table section I want to generate:
   section_1.mysite.com
   or section_X.mysite.com
   and if then user select one of my caregory then url will
   be:section_1.mysite.com/cat/id/1
   I want to  refer these url to on module.
   Any idea?

   --
   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 
   athttp://groups.google.com/group/symfony-users?hl=en.

  --
  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 
  athttp://groups.google.com/group/symfony-users?hl=en.

-- 
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=en.



[symfony-users] Re: Sandbox

2010-01-27 Thread Tom Ptacnik
The sandbox is a pre-packaged symfony project. With classic Symfony
instalation you have to do some more configuration.

On 26 led, 18:41, Pax95 piotre...@gmail.com wrote:
 What are the differences between Sandbox than original Symfony package?

-- 
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=en.



[symfony-users] Re: method_for_query semantics

2010-01-27 Thread Tom Ptacnik
Because you can create a query/redirect by passing an object e.g.

$this-redirect(array('sf_route' = 'jobeet_edit', 'sf_subject' =
$job));

and the url will be created automaticaly - he knows the slug, the
company_slug etc. - you haven't to create URL by hand, only specify
the route name and the object



On 26 led, 21:58, Patrick Leblanc pat.lebl...@gmail.com wrote:
 My question is really more semantic related rather than technical,
 since it works.
 But from the Day 6 of jobeet:
 --
 # apps/frontend/config/routing.yml
 job_show_user:
   url:     /job/:company_slug/:location_slug/:id/:position_slug
   class:   sfDoctrineRoute
   options:
     model: JobeetJob
     type:  object
     method_for_query: retrieveActiveJob
   param:   { module: job, action: show }
   requirements:
     id: \d+
     sf_method: [GET]
 --

 Why do we specify the model JobeetJob if symfony is going to check for
 retrieveActiveJob in the JobeetJobTable class?

 Thank you for helping me understand the conventions :)

-- 
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=en.



[symfony-users] Re: What do you use symphony for?

2010-01-27 Thread Davide Borsatto
By the way, it's Symfony, not Symphony.

On Jan 27, 1:37 am, raviu ravi.undupit...@gmail.com wrote:
 Hello,

 Could you tell us what you use symphony for, and how it has helped.
 Just a summary of one or two lines. I'm making up a report and would
 like some output from the symphony community.

 Thanks for any help.

 Best,
 Ravi

-- 
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=en.



[symfony-users] Re: sfEasyGMapPlugin only one info window displayed for markers

2010-01-27 Thread robdex
Hello.

You have to insert the fourth parameter of GMapMarker object
constructor: the marker javascript name:

$marker = new GMapMarker($object-getLatitude(), $object-getLongitude
(), array(), 'marker_'.$object-getId());

otherwise the listener call always the same marker object (the last
one).


Ciao,
Rob.

-- 
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=en.



Re: [symfony-users] problem d'installation ( creation de la structure FRONTEND)

2010-01-27 Thread nassim fouchal
ou es ce que je peut trouver la directive de configuration ServerName pour
lui ajouter les parametre du serveur virtuels .
et avant j'ai ouvert le fichier HTTP.CONF et y avai ça
#
# MySQL server administration.
#
Alias /phpMyAdmin /var/www/myadmin
Directory /var/www/myadmin
 DirectoryIndex index.php
 Options Indexes Includes ExecCGI
 AllowOverride None
 Order deny,allow
 Allow from all
/Directory
et j ai ajouter ça


# Be sure to only have this line once in your configuration

NameVirtualHost 127.0.0.1:8080

# This is the configuration for Jobeet

Listen 127.0.0.1:8080

VirtualHost 127.0.0.1:8080

DocumentRoot /home/sfprojects/jobeet/web

DirectoryIndex index.php

Directory /home/sfprojects/jobeet/web

AllowOverride All

Allow from All

/Directory

Alias /sf /home/sfprojects/jobeet/lib/vendor/symfony/data/web/sf

Directory /home/sfprojects/jobeet/lib/vendor/symfony/data/web/sf

AllowOverride All

Allow from All

/Directory

/VirtualHost
 c'est ce qu'il fallai faire , j'esper que je ne me trompe pas  ,???

2010/1/26 Stéphane stephane.er...@gmail.com

 English here :-)
 Il te manque le nom de l'app à la fin de ta commande.

 Cheers,

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



 On Tue, Jan 26, 2010 at 12:48 AM, Moi foucha...@gmail.com wrote:

 bonjour
 mon problem c'est que quand je tape
 $ php symfony generate:app --escaping-strategy=on
 j'ai se resultat


 the execution of task ''generate:app'' failed.
 - Not enough arguments.
 symfony generate:app [--escaping-strategy=''..] [--csrf-secret=..]
 app


  quelqu'un peut m'orienter pour trouver la solution a ça svp.
 et merci

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


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


-- 
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=en.



Re: [symfony-users] Re: sfForm sfFormField without foreach

2010-01-27 Thread Bernhard Schussek
That's no problem the form framework can solve for you, it's a
programmatic problem.

You can either:

1. Output the fields manually

echo $form['field']

2. Add conditionals in the loop

foreach ($form as $name = $field)
{
  if (in_array($name, array('name', 'address')))
  {
...
  }
  else if ($name != 'foobar')
  {
...
  }
}


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.
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] problem d'installation ( creation de la structure FRONTEND)

2010-01-27 Thread Stéphane
Il faut que tu places ce que tu as ajouté dans un fichier vhosts.conf par
exemple, ensuite dans le httpd.conf tu devra rajouter une ligne du genre
Include conf/extra/httpd-vhosts.conf

Tu peux me faire ceci : créer un répertoire ou tu pourras mettre tous tes
vhosts (un vhost par fichier), puis écrire dans httpd.conf Include
conf/extra/*
Apache cherchera tous les fichiers de conf, les chargera et tu auras séparer
tes vhosts par fichier, plus clair à entretenir.

Cheers,



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


On Wed, Jan 27, 2010 at 3:37 PM, nassim fouchal foucha...@gmail.com wrote:

 ou es ce que je peut trouver la directive de configuration ServerName pour
 lui ajouter les parametre du serveur virtuels .
 et avant j'ai ouvert le fichier HTTP.CONF et y avai ça
 #
 # MySQL server administration.
 #
 Alias /phpMyAdmin /var/www/myadmin
 Directory /var/www/myadmin
  DirectoryIndex index.php
  Options Indexes Includes ExecCGI
  AllowOverride None
  Order deny,allow
  Allow from all
 /Directory
 et j ai ajouter ça


 # Be sure to only have this line once in your configuration

 NameVirtualHost 127.0.0.1:8080

 # This is the configuration for Jobeet

 Listen 127.0.0.1:8080

 VirtualHost 127.0.0.1:8080

ServerName myServerName
ServerAlias ifNeeded

 DocumentRoot /home/sfprojects/jobeet/web

 DirectoryIndex index.php

 Directory /home/sfprojects/jobeet/web

 AllowOverride All

 Allow from All

 /Directory

 Alias /sf /home/sfprojects/jobeet/lib/vendor/symfony/data/web/sf

 Directory /home/sfprojects/jobeet/lib/vendor/symfony/data/web/sf

 AllowOverride All

 Allow from All

 /Directory

 /VirtualHost
  c'est ce qu'il fallai faire , j'esper que je ne me trompe pas  ,???

 2010/1/26 Stéphane stephane.er...@gmail.com

 English here :-)
 Il te manque le nom de l'app à la fin de ta commande.

 Cheers,

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



 On Tue, Jan 26, 2010 at 12:48 AM, Moi foucha...@gmail.com wrote:

 bonjour
 mon problem c'est que quand je tape
 $ php symfony generate:app --escaping-strategy=on
 j'ai se resultat


 the execution of task ''generate:app'' failed.
 - Not enough arguments.
 symfony generate:app [--escaping-strategy=''..] [--csrf-secret=..]
 app


  quelqu'un peut m'orienter pour trouver la solution a ça svp.
 et merci

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


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


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


-- 
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=en.



[symfony-users] Multiple content div loading with ajax/json

2010-01-27 Thread thrtst
Hi,

I was wondering if could get help with the following,

I have implemented external content loading using Ajax (see javascript
code below). And now I would like to add multiple container loading
functionality using a Json object code I have (see json object code
below).

Could you please help me incorporate the json object code into the
Ajax code. My knowledge in coding is very limited :)

Here is the detailed info:

Here is the json object:

var json = [{'id': 'content', 'wrapper': '__content-wrapper'},{'id':
'content', 'wrapper': '__content-wrapper'}]

$.each(json, function(i, itm) {
$('#'+itm.id).wrap('div id=' + itm.wrapper + '/div');
pageload(itm.id, itm.wrapper);
}

function pageload (id, wrapper) {

}


Here is the Ajax code:

$(document).ready(function() {

var contentWrapID = '___content-wrapper';

$('#content').wrap('div id=' + contentWrapID + '/div');

function showNewContent() {
$(# + contentWrapID).slideDown();
$('#load').fadeOut();
}

function pageload(hash) {
if(hash) {
$(# + contentWrapID).load(hash +  #content,'',function
(){
if($('img:last',this).get(0)) {
$('img:last',this).load(function(){
showNewContent();
});
} else {
showNewContent();
}

});
} else {
$(# + contentWrapID).load(index.html #content);
}
}
$.historyInit(pageload);

$('#topnav li a').click(function(){

var hash = $(this).attr('href');
hash = hash.replace(/^.*#/, '');
$(# + contentWrapID).slideUp(300,function(){
$.historyLoad(hash);
});
if(!$('#load').get(0)) {
$('#container').append('span id=loadLOADING.../
span');
}
$('#load').fadeIn('normal');
   $('#topnav li a').removeClass
('current');
   $(this).addClass('current');
return false;



});

});



As far as I understand I have  to replace this line:

var contentWrapID = '___content-wrapper';

with the json object:

var json = [{'id': 'content', 'wrapper': '__content-wrapper'},{'id':
'content2', 'wrapper': '__content-wrapper2'}];

But I also have to change the pageload function so that it works with
the new variables that are passed:

function pageload (id, wrapper) {

}

I'd be very grateful for any help

Best regards
Paul

-- 
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=en.



[symfony-users] Re: Doctrine inheritance and i18n forms

2010-01-27 Thread Thibault Jouannic
So, an idea anyone ?

-- 
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=en.



[symfony-users] Re: sfForm sfFormField without foreach

2010-01-27 Thread DoRiaN
Thanks, i thought to do that but why there is not solution ?

On 27 jan, 15:40, Bernhard Schussek bschus...@gmail.com wrote:
 That's no problem the form framework can solve for you, it's a
 programmatic problem.

 You can either:

 1. Output the fields manually

 echo $form['field']

 2. Add conditionals in the loop

 foreach ($form as $name = $field)
 {
   if (in_array($name, array('name', 'address')))
   {
     ...
   }
   else if ($name != 'foobar')
   {
     ...
   }

 }

 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.
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 properly migrate doctrine schema?

2010-01-27 Thread Darren884
Hello all, hope everyone is having a good day. I need to learn the
proper command to migrate my doctrine schema properly, or my classes
along with my schema in a whole.

I have tried

symfony doctrine:migrate
symfony doctrine:generate-migrations-db

However it does not work. This is if I change just a small thing in my
schema file.

Thanks,
Darren

-- 
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=en.



[symfony-users] How to render embedded forms properly ?

2010-01-27 Thread Romain Pouclet
Hi all,

I'm working on a quiz module in my Symfony application, so I have a 
NoeQuizParticipationForm which is supposed to include all my questions 
subforms. Thus, I have a NoeQuizParticipationAnswerForm class which handles the 
user's answer to each question, in this class I only have one sfWidgetChoice 
widget.

So here is what I do :

?php
abstract class PluginNoeQuizParticipationForm extends 
BaseNoeQuizParticipationForm
{
  public function configure()
  {
parent::configure();

// questions
$questions = $this-getObject()-getQuiz()-getQuestions();

$subForm = new sfForm();
foreach ($questions as $qId = $question)
{
  if (!$question-hasProposals())
  {
continue;
  }
  
  $answer = new NoeQuizParticipationAnswer(null);
  $answer-setParticipation($this-getObject());
  $answer-setQuestion($question);
  
  $qForm = new NoeQuizParticipationAnswerForm($answer);

  $subForm-embedForm(sprintf('question%d', $qId), $qForm);
}

$this-embedForm('questions', $subForm);
  }
}

In my view, I want to render something like : 
div class=quiz
h3[Question Label]/h3
[Question form]
/div

So here is what I do :
div class=article quizz
  h2span?php echo $quiz-getTitle() ?/span/h2
  
  ?php foreach ($quizParticipationForm['questions'] as $questionForm) : ?
div class=question
  h3?php echo '...' ?/h3
/div
  ?php endforeach ?
/div

My big problem is, my $questionForm var is an instance of sfFormFieldSchema 
instead of NoeQuizParticipationAnswerForm...
Is there anyway for me to reach my related NoeQuizParticipationAnswerForm form 
so I can use getObject()-getQuestion-getLabel() to display my question's 
label ?

Thanks  !

Romain

-- 
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=en.



[symfony-users] Re: What do you use symphony for?

2010-01-27 Thread Darren884
We use it for eCommerce management and I personally use it for my
projects as well. When you have common sense and logic packed into a
package its a versatile tool.

On Jan 27, 5:38 am, Davide Borsatto lloy...@gmail.com wrote:
 By the way, it's Symfony, not Symphony.

 On Jan 27, 1:37 am, raviu ravi.undupit...@gmail.com wrote:

  Hello,

  Could you tell us what you use symphony for, and how it has helped.
  Just a summary of one or two lines. I'm making up a report and would
  like some output from the symphony community.

  Thanks for any help.

  Best,
  Ravi

-- 
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=en.



Re: [symfony-users] What do you use symphony for?

2010-01-27 Thread Diego Bello
On Tue, Jan 26, 2010 at 9:37 PM, raviu ravi.undupit...@gmail.com wrote:
 Hello,

 Could you tell us what you use symphony for, and how it has helped.
 Just a summary of one or two lines. I'm making up a report and would
 like some output from the symphony community.



 Thanks for any help.

 Best,
 Ravi

 --
 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=en.



I'm using it to develop a web system to keep information of our
deployed systems. I'm also using it in a side work to build an
e-commerce site. It is really useful when common features of CMS are
not enough (or the client has a very good imagination :p).

Regards,
-- 
Diego Bello Carreño

-- 
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=en.



[symfony-users] I have internationalization in frontend but I don't want that in backend !!

2010-01-27 Thread dziobacz
I have international frontend application and normal backend. I have
model Firm with column: id and model FirmTranslation with column:
offer. In frontend everything is ok but in backend when I use for
example query:
Doctrine_Query::create()-from('Firm')-execute();
I can show all data from model Firm but not from FirmTranslation -
they are empty. If I write before this query:
$this-getUser()-setCulture('pl');
then I see also data from FirmTranslation - only then everything is
ok, but why ? I have in file settings.yml in backend:
default_culture:   pl_PL
but $this-getUser()-getCulture() show me culture: sf
why ? I can't write before each query:
$this-getUser()-setCulture('pl');  - it isn't comfortable :/

-- 
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=en.



[symfony-users] Re: Testing emails in development environment?

2010-01-27 Thread Alter Ego
I was just working on this today. All of this assumes you are using
SwiftMailer. I am using this on symfony 1.4

In my factories.yml (apps/app_name/config/factories.yml) I have:

dev:
  mailer:
param:
  delivery_strategy: single_address
  delivery_address: my_em...@my_domain.com




On Jan 22, 5:03 pm, Darren884 darren...@gmail.com wrote:
 How do I getemailsto work in thedevelopmentenvironment? Is there a
 log I am supposed to check somewhere? Thank you for the help.

-- 
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=en.



[symfony-users] Re: Slow template rendering

2010-01-27 Thread axel at
I just wrote the same code with standard php - direct database
access, the request took 0,7 seconds! (same system as used above,
intel cor...@3ghz with 8 gigs ram)


On 27 Jan., 19:58, axel at axel.zu...@gmail.com wrote:
 hello list,

 symfony seems to be extrem slow - compared to native php
 a request with the following code takes ~26 seconds (count($event-

 getUserList()) == 5000)

 ?php foreach ($event-getUserList() as $user):  ?
        tr
           td?php echo $user-getFirstname().  . $user-getLastname
 (); ?/td
         /tr
  ?php endforeach; ?

 type    calls   time (ms)       time (%)
 Configuration   13      1932.20 7
 Factories       1       361.77  1
 Database (Doctrine)     8       0.06    0
 Action event/listAction     1       19.53   0
 View Success for event/listAction       1       25653.20        93
 Partial event/_assets       1       1.41    0
 Partial event/_flashes      1       5.31    0
 Component address/menuItems 1       68.60   0
 Partial address/_menuItems  1       3.23    0
 Component address/loginState        1       0.06    0
 Partial address/_loginState 1       2.06    0

 the doctrine database query is ok
 I don't think that the templating is the problem, (I tried to do the
 output with echo $user-... from within the action what took as long
 as if I used the template engine. for me it seems to be a doctrine
 problem (foreach...?)

 is there a way to improove this poor results?

-- 
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=en.



[symfony-users] Issues with an IIS server and symfony 1.0.

2010-01-27 Thread Sid Ferreira
Im having issues with an IIS server and symfony 1.0.
I know symfony 1.0 isn't supported anymore, but it wasn't up to me
this decision.
I hope someone have experience about this to share, IF I can't change
the host.

http://www.artenossa.net/index.php/moveis

The specified CGI application misbehaved by not returning a complete
set of HTTP headers.

Thanks in advance
  Sidney Ferreira

-- 
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=en.



Re: [symfony-users] Issues with an IIS server and symfony 1.0.

2010-01-27 Thread Eno
On Wed, 27 Jan 2010, Sid Ferreira wrote:

 Im having issues with an IIS server and symfony 1.0.
 I know symfony 1.0 isn't supported anymore, but it wasn't up to me
 this decision.
 I hope someone have experience about this to share, IF I can't change
 the host.
 
 http://www.artenossa.net/index.php/moveis
 
 The specified CGI application misbehaved by not returning a complete
 set of HTTP headers.

Usually that's because the script died. So look in your logs.

(I can't stress enough how much troubleshooting can be solved by looking 
at the symfony or web server error logs!).



-- 


-- 
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=en.



Re: [symfony-users] Re: Slow template rendering

2010-01-27 Thread Eno
On Wed, 27 Jan 2010, axel at wrote:

 I just wrote the same code with standard php - direct database
 access, the request took 0,7 seconds! (same system as used above,
 intel cor...@3ghz with 8 gigs ram)

Err, did really you expect a framework to be faster than straight PHP?



-- 


-- 
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=en.



[symfony-users] Include css and js without layout

2010-01-27 Thread Vincent UNG
Hi !!

In my project, I have many _from that I have to view withou layout (I
already set the $this-setLayout method at false), and I woul like to
include a specific CSS and a specific JS file.

I tried use_javascript('form') and use_stylesheet('form'), maybe I
passed the wrong parameter...
How can I do to include just one CSS file and one JS file (and not all
the CSS file as include_stylesheets do)?

Thanks for help ;)
Bye !

-- 
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=en.



[symfony-users] Re: What do you use symphony for?

2010-01-27 Thread rekarnar
Hi Ravi,

We use Symfony for everything from our simple Blog sites to Gallery
and Portfolio's. Aswell as the occasional E-Com and other misc web
apps.

It has helped by enabling us to build and deploy all the above quickly
and efficiency with the use of the awesome toolset the Symfony
Framework provides. (Not to mention the great community and
documentation)

On Jan 27, 1:37 pm, raviu ravi.undupit...@gmail.com wrote:
 Hello,

 Could you tell us what you use symphony for, and how it has helped.
 Just a summary of one or two lines. I'm making up a report and would
 like some output from the symphony community.

 Thanks for any help.

 Best,
 Ravi

-- 
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=en.



Re: [symfony-users] Use Transaction call directly or use other method like Postsave()

2010-01-27 Thread Dong YANG
Hi,


   Cool, thanks for your reply. I will try these methods later.

   Have a nice day.

JoJo



2010/1/25 Земсков Юрий y...@zemskov.name

  See no difference. Maybe symfony tutorial is a bit outdated. Using pre-
 post- methods you can do the same stuff while writing less code.


 Just don't forget to use $con passed to pre- post- methods in a parameter
 and your database changes will run inside a transaction, started in
 BaseObject::save() method.


 Вы писали 25 января 2010 г., 0:48:43:


   

 Hello everyone,



   I got a question about Propel Transactions.



   As in symfony tutorial, it proposes to override the save method for using
 transaction. For example:


   $con-beginTransaction();

   try {

 $ret = parent::save($con);

 // Some code here for other treatement

 $con-commit();

 return $ret;

   } catch (Exception $e) {

 $con-rollBack();

 throw $e;

   }


   But in propel tutorial, it proposes to use pre-, post- methods, like
 postsave(), preinsert() etc.


   For transaction usage, are there any differences between these

 two ways?


   Thanks a lot.



 JoJo


 --

 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.comsymfony-users%2bunsubscr...@googlegroups.com
 .

 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en.




 --

 С уважением,

  Земсков Юрий  
 mailto:y...@zemskov.namey...@zemskov.name

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


-- 
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=en.



Re: [symfony-users] Include css and js without layout

2010-01-27 Thread Gábor Fási
In such a case I'd go for manually creating the neccesary style or
script tag in your _form template.
A bit better version may be to call include_javascripts_for_form() and
include_stylesheets_for_form().

On Wed, Jan 27, 2010 at 22:36, Vincent UNG ung.vinc...@gmail.com wrote:
 Hi !!

 In my project, I have many _from that I have to view withou layout (I
 already set the $this-setLayout method at false), and I woul like to
 include a specific CSS and a specific JS file.

 I tried use_javascript('form') and use_stylesheet('form'), maybe I
 passed the wrong parameter...
 How can I do to include just one CSS file and one JS file (and not all
 the CSS file as include_stylesheets do)?

 Thanks for help ;)
 Bye !

 --
 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=en.



-- 
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=en.



[symfony-users] Symfony NYC user group

2010-01-27 Thread Jesse
I did a bit of searching and could not for the life of me find a
Symfony user group in the new york metro area. So I started one. How
many users on this list are interested in meeting every once in a
while to discuss Symfony and related topics?

http://www.meetup.com/symfony-nyc

http://www.facebook.com/pages/New-York-NY/Symfony-NYC/275705216620

I look forward to any and all help/suggestions/comments.

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



Re: [symfony-users] Symfony NYC user group

2010-01-27 Thread Eno
On Wed, 27 Jan 2010, Jesse wrote:

 I did a bit of searching and could not for the life of me find a
 Symfony user group in the new york metro area.

There is. Its part of NYPHP:
http://lists.nyphp.org/mailman/listinfo/symfony

I started that group but there's very little traffic so far.



-- 


-- 
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=en.



[symfony-users] Re: Issues with an IIS server and symfony 1.0.

2010-01-27 Thread Darren884
Why not upgrade?

On Jan 27, 12:58 pm, Eno symb...@gmail.com wrote:
 On Wed, 27 Jan 2010, Sid Ferreira wrote:
  Im having issues with an IIS server and symfony 1.0.
  I know symfony 1.0 isn't supported anymore, but it wasn't up to me
  this decision.
  I hope someone have experience about this to share, IF I can't change
  the host.

 http://www.artenossa.net/index.php/moveis

  The specified CGI application misbehaved by not returning a complete
  set of HTTP headers.

 Usually that's because the script died. So look in your logs.

 (I can't stress enough how much troubleshooting can be solved by looking
 at the symfony or web server error logs!).

 --

-- 
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=en.



[symfony-users] Re: sfForm sfFormField without foreach

2010-01-27 Thread ken
If you mean like dividing your form into different fieldsets/groups
then what you can to is add like a public property in the form
organizing the fields.

someForm extends sfForm {
  public $fieldsets = array(
   'Profile' = array(
  'field_a'
)
  )
}


?php foreach($fieldsets['Profile'] as $name):?
?php echo $form[$name]?
?php endforeach;?


On Jan 27, 11:46 pm, DoRiaN doria...@gmail.com wrote:
 Thanks, i thought to do that but why there is not solution ?

 On 27 jan, 15:40, Bernhard Schussek bschus...@gmail.com wrote:



  That's no problem the form framework can solve for you, it's a
  programmatic problem.

  You can either:

  1. Output the fields manually

  echo $form['field']

  2. Add conditionals in the loop

  foreach ($form as $name = $field)
  {
    if (in_array($name, array('name', 'address')))
    {
      ...
    }
    else if ($name != 'foobar')
    {
      ...
    }

  }

  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.
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] External user authentication with sfDoctrineGuardPlugin

2010-01-27 Thread ashton
I have my external authentication working, but the problem that I am
running into is that there needs to be a user in the sfGuardUser table
that matches the username submit in the login form, otherwise the
login fails.

So when I currently add 'return true;' to the top of the external auth
function, I can login with any password, for users that exist in the
sf_guard_table, but not with usernames that do not exist.

I was wondering if there was a solution out there (ideally user
creation in the sfGuardUser table upon successful external
authentication), allowing me to perform my external checks even if the
username does not exist in the sf_guard_user table would work too,
because then I could just manually create the user if the external
auth was successful.

thanks!
ashton

-- 
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=en.



[symfony-users] Re: Slow template rendering

2010-01-27 Thread axel at
I didn't expect it to be faster than straight PHP, but it's about 35
times slower!!! do you have any constructive ideas for performance
tuning?

On 27 Jan., 21:59, Eno symb...@gmail.com wrote:
 On Wed, 27 Jan 2010, axel at wrote:
  I just wrote the same code with standard php - direct database
  access, the request took 0,7 seconds! (same system as used above,
  intel cor...@3ghz with 8 gigs ram)

 Err, did really you expect a framework to be faster than straight PHP?

 --

-- 
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=en.



[symfony-users] Making sure a login id only has one session at any moment

2010-01-27 Thread yth

Dear all,

When a user logins, the controller calls the following function in the 
myUser.class. The problem is, if he doesn't logout but then logins in 
another computer/browser, the old session does not get killed. I tried to 
use setAuthenticated(false) on users who have already authenticated, hoping 
that his old session will get killed before he gets a new one. But it 
doesn't work.


Many thanks to you all.

// Viewable in http://pastebin.com/f765fff66

public function login($loginId,$pwd){

   $member=MemberPeer::getByLoginIdAndPassword($loginId,$pwd);

   if(!is_null($member)) {

  if($this-isAuthenticated())
  $this-setAuthenticated(false);  // I would like to 
logout the user if he/she already has a session, but it doesn't work


   $this-setAuthenticated(true);
   $member-setLastLoginAt(time());
   $member-save();
   $this-setAttribute('member_id', $member-getMemberId());

   return true;
   }
   return false;
} 


--
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=en.



Re: [symfony-users] Re: Slow template rendering

2010-01-27 Thread Eno
On Wed, 27 Jan 2010, axel at wrote:

 I didn't expect it to be faster than straight PHP, but it's about 35
 times slower!!! do you have any constructive ideas for performance
 tuning?

People always make such a simplistic comparisons. There's lots you can do, 
like optimize queries, use fumctional and template caching, etc. You also 
forget all the conveniences that using a framework brings you for free.

You do actually have to learn a framework more fully before you can write 
code that makes such a comparison meaningful.


-- 



-- 
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=en.



[symfony-users] Re: I have internationalization in frontend but I don't want that in backend !!

2010-01-27 Thread dziobacz
I think this is a bug: http://trac.symfony-project.org/ticket/8194#preview

On 27 Sty, 19:23, dziobacz aaabbbcccda...@gmail.com wrote:
 I have international frontend application and normal backend. I have
 model Firm with column: id and model FirmTranslation with column:
 offer. In frontend everything is ok but in backend when I use for
 example query:
 Doctrine_Query::create()-from('Firm')-execute();
 I can show all data from model Firm but not from FirmTranslation -
 they are empty. If I write before this query:
 $this-getUser()-setCulture('pl');
 then I see also data from FirmTranslation - only then everything is
 ok, but why ? I have in file settings.yml in backend:
 default_culture:       pl_PL
 but $this-getUser()-getCulture() show me culture: sf
 why ? I can't write before each query:
 $this-getUser()-setCulture('pl');  - it isn't comfortable :/

-- 
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=en.