Re: [symfony-users] Versionable behavior not working for Doctrine query

2011-06-09 Thread Gábor Fási
Doctrine's Versionable behavior has no dql update listener. Retrieve
the BankUser object first, update and save that and it'll work.

On Thu, Jun 9, 2011 at 06:47, Raju yadavrajesh25j...@gmail.com wrote:
 hi ,

 versionable not working on this query


  public function updateUserBankBranch($userid,$bank_branch_id){
     $q = $this-createQuery()
              -update('BankUser b')
              -set('b.bank_branch_id', $bank_branch_id)
              -where(b.user_id = '$userid')
              -execute();
    return true;
  }


 while versioning working on symfony generated module can someone help
 me on this


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

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


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

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


Re: [symfony-users] Re: Versionable behavior not working for Doctrine query

2011-06-09 Thread Gábor Fási
I was thinking more along the lines of

$a = BankUserTable::getInstance()-findOneByUserId($user_id);
$a-bank_branch_id = $bank_branch_id;
$a-save();

As far as I understand doctrine internals, you need to create a
version of versionable that extends Doctrine_Record_Listener, and
implement the preDqlUpdate function. Never did this, so can't help you
there. Unless you're updating a lot of objects in a batch, you're
better off using the code above.

--mrl

On Thu, Jun 9, 2011 at 12:44, RYadav yadavrajesh25j...@gmail.com wrote:
 @Gabor,
 yes you are right if i wrote like this

  $a =new Bank;
  $a-set('bank_name', 'yadav')
  -save();

 its insert a new record and make its version also, how can i make a
 versional listener for dql.

 On Jun 9, 2:53 pm, Gábor Fási maerl...@gmail.com wrote:
 Doctrine's Versionable behavior has no dql update listener. Retrieve
 the BankUser object first, update and save that and it'll work.

 On Thu, Jun 9, 2011 at 06:47, Raju yadavrajesh25j...@gmail.com wrote:
  hi ,

  versionable not working on this query

   public function updateUserBankBranch($userid,$bank_branch_id){
      $q = $this-createQuery()
               -update('BankUser b')
               -set('b.bank_branch_id', $bank_branch_id)
               -where(b.user_id = '$userid')
               -execute();
     return true;
   }

  while versioning working on symfony generated module can someone help
  me on this

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

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

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

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


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

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


Re: [symfony-users] Multiple projects, changing the httpd.conf file

2011-06-05 Thread Gábor Fási
The following is how I set up a new project. The steps are for linux,
but the same logic was applicable on windows when I last checked.

First, edit /etc/hosts (IIRC it's somewhere under c:\windows with the
same name) to add a new domain:

127.0.0.1 projectname.local

Edit httpd.conf to add a new virtual host:

VirtualHost *:80
  ServerName projectname.local
  DocumentRoot /var/www/projectname/web
  Directory /var/www/projectname/web
AllowOverride all
  /Directory
/VirtualHost

Notice the lack of the /sf alias - I prefer to use
plugin:publish-assets to create a symlink.

After all this, restart apache and point your browser to
http://projectname.local. It's a lot easier to remember than localhost
and some obscure port for every project.

--mrl

On Sun, Jun 5, 2011 at 06:21, Parijat Kalia kaliapari...@gmail.com wrote:
 Hi Harris, that did not work. I had the same configuration when I had a
 single project and it would take me to the project title just fine. Any
 further ideas?

 On Sat, Jun 4, 2011 at 8:10 PM, Haris Fauzi haris.fa...@gmail.com wrote:

 If you use alias directive:
 Alias /sf some_directory
 Then when you access anything under it you should put the subdirectory:
 http://localhost:8080/sf/frontend_dev.php
 Instead of going to root directory like you did. Otherwise you won't get
 to the files under some_directory.
 Regards,
 Haris

 On 5 June 2011 12:16, Parijat Kalia kaliapari...@gmail.com wrote:

 Hello!
 Coming back onto the symfony mailing list after long. I now have a new
 project that I am undertaking and running into a slight few niggles with
 seeing it over my localhost. Let me explain:
 1. My original project exists here : c:\dev\sfproject. I introduce a new
 project in C:\dev\sfproject2
 2. In my httpd.conf file, I make the necessary changes, and here is what
 it looks like:
   ServerName Question_Machine
   DocumentRoot c:\dev\sfproject\web
   DirectoryIndex index.php
   Directory c:\dev\sfproject\web
     AllowOverride All
     Allow from All
   /Directory
   Alias /sf C:\dev\sfproject\lib\vendor\symfony-1.2.9\data\web\sf
   Directory C:\dev\sfproject\lib\vendor\symfony-1.2.9\data\web\sf
     AllowOverride All
     Allow from All
   /Directory
 /VirtualHost
  I browsed to localhost:8080/frontend_dev.php, but it redirects me back
 to my original project. Not sure how this is happening, Any insights?
 Anybody want to point what I am missing out or getting wrong?

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

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

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

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

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

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


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

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


Re: [symfony-users] Strange routing

2011-05-30 Thread Gábor Fási
Enable mod_rewrite.

-- mrl

On Sun, May 29, 2011 at 12:11, Michele Pierri
michele442-symf...@yahoo.it wrote:
 Hi,
 I have this routing file:
 # You can find more information about this file on the symfony website:
 # http://www.symfony-project.org/reference/1_4/en/10-Routing
 # default rules
 homepage:
   url:   /
   param: { module: campaign, action: index }
 # generic rules
 # please, remove them by adding more specific rules
 default_index:
   url:   /:module
   param: { action: index }
 default:
   url:   /:module/:action/*
 So, If in my browser I type (1)
 http://www.mydomain.com.localhost/web/campaign I have returned 404Error.
 If I type (2) http://www.mydomain.com.localhost/web/index.php/campaign it
 works.
 How can I correct this problem, and make the (1) URL working?
 Thank you so much.
 PS: Sorry but I am a newbie of symfony!

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

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


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

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


Re: [symfony-users] Doctrine build-model problem

2011-05-30 Thread Gábor Fási
Show us your schema.yml.

-- mrl

On Sun, May 29, 2011 at 02:11, Nabil Karous karous1na...@gmail.com wrote:
 Hi
 I have problem with symfony Doctrine : build-model  help please
 -message ERREUR
 doctrine  generating model classes
 file+     C:\Users\Nabil\AppData\Local\Temp/doctrine_schema_59434.yml


   No yml schema found in
 C:\Users\Nabil\AppData\Local\Temp/doctrine_schema_59434.yml

 --
 Cordialement
 KAROUS NabiL

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

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


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

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


Re: [symfony-users] Doctrine or Propel

2011-05-26 Thread Gábor Fási
Doctrine. It's the default ORM since 1.3, and it's easier for a beginner.

--mrl

On Thu, May 26, 2011 at 11:34, jlassi zied jlassi.z...@gmail.com wrote:
 Hi ,

 I'am newer in symfony and I want to know with wich ORM to develop ?
 doctine or propel ?

 Thanks .

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

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


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

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


Re: [symfony-users] how to check if email address existed in db

2011-05-23 Thread Gábor Fási
Two points:

- you're trying to overwrite the existing validator of the email field

- as the error message says: sfValidatorPropelUnique may only be used
as a post validator. Here's an example:

$this-validatorSchema-setPostValidator(
  new sfValidatorPropelUnique(array(
throw_global_error  =  false,
model   =  sfGuardUser,
column  =  username,
field   =  array(email),
  ), array(
invalid =  Már használt e-mail cím!,
  ))
);

-- mrl

2011/5/22 Ethan ruanx...@gmail.com:
 hello,everyone,
 i created a register form:
 class RegForm extends sfForm{
 public function configure(){
                $this-setWidgets(array(
                       ...
                        'email'= new
 sfWidgetFormInputText(array('label'='email address:','default'='@')),
                      
                 ));
                 $this-setValidators(array(
                        ...
                        'email'=new
 sfValidatorEmail(array(),array('required'='Email cannot
 empty','invalid'='Email invalid')),
                        ...
                ));
               $this-setValidator('email',new
 sfValidatorPropelUnique(array('model'='Userinfo','column'=array('Uemail')),array('invalid'='email
 EXISTS.')));
         }
 }
 and i want to check whether email address existed in db before user
 register. according to document, it seems need to
 use sfValidatorPropelUnique ,but when i try to add the red code, i received
 an error

 You must pass an array parameter to the clean() method (this validator can
 only be used as a post validator).

 can someone told me the right way to do this process?



 --
          少许诺多兑现
 --


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

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


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

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


Re: [symfony-users] How to overload the method which load the values in an edit form ?

2011-05-11 Thread Gábor Fási
Overwrite the updateDefaultsFromObject function.
http://trac.symfony-project.org/browser/branches/1.4/lib/plugins/sfDoctrinePlugin/lib/form/sfFormDoctrine.class.php#L254

On Tue, May 10, 2011 at 13:46, Vincent B. vincent.bounho...@gmail.com wrote:
 Hi,

 I work with Symfony 1.4.

 I try to find a way to overload the method which load the values in an
 edit form but don't find anything on the web.

 I use sfWidgetFormDateJQueryUI widget to setup a date. It works very
 well in the create form but in the edit form the default value is
 the mysql date value. I need to format this mysql date with
 date_format helper. The problem is that I don't know where can I apply
 date_format function to influence the edit form.

 Any idea ?

 Regards,
 Vincent B.

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

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


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

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


Re: [symfony-users] letter

2011-05-08 Thread Gábor Fási
http://www.doctrine-project.org/projects/orm/1.2/docs/manual/behaviors/en

On Sat, May 7, 2011 at 11:02, salmyke salm...@live.fr wrote:
 when I red the documentation in symfony day I fin actAs:
 { Timestampable: ~ }
 realy I didn't know what is the rol of this property in symfony 1.4

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

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


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

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


Re: [symfony-users] cronjob not working

2011-05-06 Thread Gábor Fási
Not sure what you have in your crontab right now, but in your original
post you have a 'root' between the time and the command, and that's
causing the problem - remove it and you'll be fine.

Keep in mind that the command is run as the user who's crontab it is
in - guess you want to run it as root, and that's why you added it
there.

On Fri, May 6, 2011 at 10:24, Helloise Smit helloi...@miranetworks.net wrote:
 i understand nowi ran it and got an email that said:
 cron deamon:
 /bin/sh: root: not found


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

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


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

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


Re: [symfony-users] How to access the view context from model?

2011-05-05 Thread Gábor Fási
I assume you're using sf1. Use `sfConfig::get(sf_web_dir)` to get
the webroot directory.

On Thu, May 5, 2011 at 20:43, theinterned ned...@gmail.com wrote:
 Hi,

 I am trying to read the contents of a public directory from my Model.

 Currently I am doing this:

 public function getFiles()
 {
    $dir = dir(__DIR__ . '/../../../../web/assets/');
    ( ... )
    return $files;
 }

 ... but that's pretty ugly.

 There myst be a better way to do this - for example is there a way to
 get the view context from the model and call the asset helper?

 Thanks!

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

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


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

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


Re: [symfony-users] Re: [symfony2] set magic_quotes_gpc to off on home level ?

2011-05-02 Thread Gábor Fási
By the time your script starts running, the variables are already
escaped, so that ini_set won't help.

On Mon, May 2, 2011 at 16:27, Carl carl.par...@gmail.com wrote:
 Dang, that's a shame that disabling it in your .htaccess file doesn't do the
 trick. I was hoping it would work since that's the quickest and easiest
 solution without editing php.ini. And it's guaranteed to shut it off.

 I assume that your web host can't/won't disable this option on your account?
 If it's shared hosting they generally can't easily disable something like
 that without impacting everyone else on the server. If it absolutely cannot
 be disabled via the php.ini file (for whatever reason), then try adding the
 following to your app.php and app_dev.php files:

 ini_set ('magic_quotes_gpc', 0);

 Put this on the first line (before any includes) in both of those.

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

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


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

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


Re: [symfony-users] permissions issue please help

2011-04-20 Thread Gábor Fási
You may need root rights to change the permissions. On debian prefix
the command with `sudo`, on gentoo you'll need to `su` first, others I
don't know.

On Wed, Apr 20, 2011 at 16:02, Helloise Smit helloi...@miranetworks.net wrote:
 i run ./symfony project:permissions

 then get: Permissions on the following file(s) could not be fixed:
 SF_ROOT_DIR/log
 how must i fix this from the command line please? i have php script im
 running that creates a .txt file and writes to it, but it is not creating
 the file...is it because of the permissions issue??
 please help? thank you

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

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


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

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


Re: [symfony-users] symfony propel:build-model - Giving Error

2011-04-19 Thread Gábor Fási
Make sure you have enabled the xslt php module and restarted apache.
On Apr 19, 2011 11:27 AM, Kush kushagra...@gmail.com wrote:
 Hi,

 We have installed apache friends xampp - 1.7.4 but we are getting the
 below error in build-model command

 C:\xampp\htdocs\workspace\smssymfony propel:build-model
 propel Running om phing task
 [propel-om] Could not perform XLST transformation. Make sure PHP has
 been compiled/configured to support XSLT.
 autoload Resetting application autoloaders
 autoload Resetting CLI autoloader

 Thanks

 Kushagra

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

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

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

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


Re: [symfony-users] Problem with sfWidgetFormI18nChoiceCurrency

2011-04-15 Thread Gábor Fási
Starting from 1.3, all content passed from the action to the view gets
automatically escaped - including that field of your. Gets wrapped in
an sfOutputEscaperObjectDecorator instance.

I believe it works just like when doctrine objects get passed to the
view, you can get the unescaped data with `$w-render(ESC_RAW)`.

And by the way, you may want to look into the forms chapter of the
gentle introduction book.

On Fri, Apr 15, 2011 at 21:04, Fernando  Grassi de Oliveira
fgra...@gmail.com wrote:
 Hi there people ;)

 So... im getting something weird  here.

 If I wrote the code in the IndexSuccess.php like this
  $w = new sfWidgetFormI18nChoiceCurrency(array('culture' =
 'pt_BR'));
  echo $w-render('foo');

 works fine!

 But if I put the part of code on the actions.class.php like this

  $this-w = new sfWidgetFormI18nChoiceCurrency(array('culture' =
 'pt_BR'));

 and the echo on de IndexSucess.php, I get the HTML code echoed...

 What am I doing wrong?

 Thank for any help :)

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

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


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

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


Re: [symfony-users] Re: Aw: riddle me this

2011-04-15 Thread Gábor Fási
It is yet to be released as stable.
On Apr 15, 2011 10:28 PM, violyn coyotenefari...@gmail.com wrote:
 I am using PR6 now... a thanks I see what you are saying. I thought
 though that Symfony 2 was released -- was that retracted?

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

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

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

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


Re: [symfony-users] Route not working when POST

2011-04-12 Thread Gábor Fási
By default sfPropelRoute is only accessible by get. Add this after param:

requirements:
  sf_method: [get, post]

and it shall work.

On Tue, Apr 12, 2011 at 13:25, coviex cov...@gmail.com wrote:
 Hi,

 How could this route
 ---
 profile:
  url: /profile/:login/*
  class: sfPropelRoute
  options: { model: User, type: object }
  param: { module: user, action: index }
 ---
 result in 200 when GET and 404 when POST?

 Regards,
 Kostia

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

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


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

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


Re: [symfony-users] how to revert back to previous vs of symfony??

2011-04-12 Thread Gábor Fási
If you install symfony via pear it's system-global. If you want to
keep different version for each project, do an svn checkout in the
projectroot/lib/vendor/symfony folder. Each release can be found in
/tags on svn.

On Tue, Apr 12, 2011 at 13:41, Helloise Smit helloi...@miranetworks.net wrote:
 I have a project directory:

 ~/traffic_2/phoenix$ the symfony version here is 1.4.11 because I tried to
 install symfony in ANOTHER project directory using the command:
 ~/traffic_2/elemental/webroot$ sudo pear install symfony/symfony
 so it updated to version 1.4.11 in directory ~/traffic_2/phoenix!
 I want to revert back to my previous version of symfony 1.4.2 please in
 above dir???
 please how do I do this?? ~/traffic_2/phoenix$sudo pear install
 symfony/symfony-1.4.2 ?
 thank you

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

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


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

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


Re: [symfony-users] how to revert back to previous vs of symfony??

2011-04-12 Thread Gábor Fási
Go to projectroot/lib/vendor, remove your current symfony directory
(which is most probably a symlink), then do

svn export http://svn.symfony-project.com/tags/RELEASE_1_4_2/ symfony

On Tue, Apr 12, 2011 at 15:56, Helloise Smit helloi...@miranetworks.net wrote:
 i managed to revert back to symfony 1.4.2 in traffic/phoenix directory
 thanks
 symfony was installed globally yes(before i started here) but i have another
 project directory:
 traffic/elemental/webroot
 and want the symfony version 1.4.2 installed there as well...
 how do i do this please?
 please give me step by step instructions for i have no idea on how to
 achieve this...
 i tried:
 ..traffic/elemental/webroot$ sudo pear install symfony/symfony-1.4.2

 and got: symfony/symfony is already installed and is the same as the
 released version 1.4.2
 install failed
  please help??
 thank you very much

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

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


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

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


Re: [symfony-users] how to revert back to previous vs of symfony??

2011-04-12 Thread Gábor Fási
It's not in the webroot, but in your project's root folder.

On Tue, Apr 12, 2011 at 16:08, Helloise Smit helloi...@miranetworks.net wrote:
 i dont have a lib/vendor so i should first:
 ...webroot$ mkdir /lib/vendor
                   cd lib/vendor
 ...webroot/lib/vendor$ svn export
 http://svn.symfony-project.com/tags/RELEASE_1_4_2/ symfony
 ???

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

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


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

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


Re: [symfony-users] Re: how to revert back to previous vs of symfony??

2011-04-12 Thread Gábor Fási
That command creates a symfony directory and puts sf1.4.2 there - to
undo, you just need to remove the newly created symfony folder.

On Tue, Apr 12, 2011 at 17:30, Helloise Smit helloi...@miranetworks.net wrote:
 thank you very much but for now i need to undo:

 ...webroot/lib/vendor$ svn export 
 http://svn.symfony-project.com/tags/RELEASE_1_4_2/
 symfony

 the .php files in the webroot directory DOES NOT require symfony to be
 installed :)

 please it is quite urgent...
 thank you



 On Apr 12, 5:16 pm, Nibsirahsieu nibsirahs...@gmail.com wrote:
 Hi Smit..

 usually i put symfony folder separate from my project. For example
 /var/www/symfony-1.4.2. Then in my config/ProjectConfiguration.class.php,
 change the require_once to point to the symfony directory.

 require_once '/var/www/symfony-1.4.2/lib/autoload/sfCoreAutoload.class.php';

 check in the terminal by typing ./symfony -V to see the symfony version

 May be it help..

 sorry for my poor englsih

 Nibsirahsieu

 On Tue, Apr 12, 2011 at 9:24 PM, Helloise Smit
 helloi...@miranetworks.netwrote:







  can you just show me how to delete undo everything please??

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

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

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

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


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

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


Re: [symfony-users] how to include footer

2011-04-05 Thread Gábor Fási
This should be working. Show us the relevant parts of both files.

On Tue, Apr 5, 2011 at 03:34, Laxmi laxmipsa...@gmail.com wrote:
 I tried to include footer below  ?php  echo $sf_content ? using
 include_slot('footer'), Where i defined slot in a module called home/
 indexsuccess.php. but i did not get any out put. please let me know
 where i am doing mistake .

 Thanks

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

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


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

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


Re: [symfony-users] Re: how to include footer

2011-04-05 Thread Gábor Fási
This looks fine to me, it should be working. Make sure you're seeing
error messages (if any), so access it via your dev front controller.

On Tue, Apr 5, 2011 at 08:55, Laxmi laxmipsa...@gmail.com wrote:
 in the layout i added

 include_slot('footer');

 This is what I added in footersuccess.php which in home module

 ?php slot('footer');?
           a class=footer_link href=About/a
           a class=footer_link href=Contact/a
           a class=footer_link href=Support/a
           a class=footer_link href=Terms of Use/a
           a class=footer_link href=Privacy Policy/a
           a class=footer_link href=Company/a
 ?php end_slot();?

 Thanks for your reply

 On Apr 4, 11:51 pm, Gábor Fási maerl...@gmail.com wrote:
 This should be working. Show us the relevant parts of both files.

 On Tue, Apr 5, 2011 at 03:34, Laxmi laxmipsa...@gmail.com wrote:
  I tried to include footer below  ?php  echo $sf_content ? using
  include_slot('footer'), Where i defined slot in a module called home/
  indexsuccess.php. but i did not get any out put. please let me know
  where i am doing mistake .

  Thanks

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

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

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

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


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

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


Re: [symfony-users] Re: Fatal error: Call to a member function getprenom() on a non-object

2011-03-31 Thread Gábor Fási
Var_dump $utilisateur. Judging from the message doctrine doesn't find a
matching record, thus returns false. Also check the query that is run.
On Mar 31, 2011 12:20 PM, mohamed sabri ben sassi 
mohamedsabri.bensa...@gmail.com wrote:
 its the same thing i wont work have you an other solution

 2011/3/31 Gareth McCumskey gmccums...@gmail.com

 Try using getPrenom not getprenom. Case sensitivity might be the issue
 here.

 On Thu, Mar 31, 2011 at 11:30 AM, mohamed sabri ben sassi 
 mohamedsabri.bensa...@gmail.com wrote:

 pleaaase help


 2011/3/31 mohamed sabri ben sassi mohamedsabri.bensa...@gmail.com

 matricule is an integer value and it is primary key
 also my colomn is named prenom ,,i checked all of this but its nothing
 ,,, it works with the other module i will show the other exemple
 action.class:
 public function executeShow(sfWebRequest $request)
 {
 $this-utilisateur =

Doctrine::getTable('utilisateur')-find(array($request-getParameter('matricule')));
 $this-forward404Unless($this-utilisateur);
 }

 table
 tbody
 tr
 thMatricule:/th
 td?php echo $utilisateur-getmatricule() ?/td
 /tr
 tr
 thPassword:/th
 td?php echo $utilisateur-getpassword() ?/td
 /tr
 tr
 thNom:/th
 td?php echo $utilisateur-getnom() ?/td
 /tr
 tr
 thPrenom:/th
 td?php echo $utilisateur-getprenom() ?/td
 /tr
 tr
 thId groupe:/th
 td?php echo $utilisateur-getid_groupe() ?/td
 /tr
 tr
 thMatr manager:/th
 td?php echo $utilisateur-getmatr_manager() ?/td
 /tr
 tr
 thDate de naissance:/th
 td?php echo $utilisateur-getdate_de_naissance() ?/td
 /tr
 tr
 thLieu de naissance:/th
 td?php echo $utilisateur-getlieu_de_naissance() ?/td
 /tr
 tr
 thAdresse:/th
 td?php echo $utilisateur-getadresse() ?/td
 /tr
 tr
 thTel mobile:/th
 td?php echo $utilisateur-gettel_mobile() ?/td
 /tr
 tr
 thE mail:/th
 td?php echo $utilisateur-gete_mail() ?/td
 /tr
 tr
 thStatus familiale:/th
 td?php echo $utilisateur-getstatus_familiale() ?/td
 /tr
 tr
 thStatus:/th
 td?php echo $utilisateur-getstatus() ?/td
 /tr
 tr
 thCreated at:/th
 td?php echo $utilisateur-getcreated_at() ?/td
 /tr
 tr
 thUpdated at:/th
 td?php echo $utilisateur-getupdated_at() ?/td
 /tr
 /tbody
 /table

 hr /

 you see with this code i can view this module and it manipulate the
same
 function getprenom() ans it works

 2011/3/31 deepak deepakkumar...@gmail.com

 Could you please mention the exact value that you are trying to pass
 to find().

 I would like to know whether its an array or a single value that you
 are passing.

 Regarding getprenom() there must be a column named prenom in your
 DB table. generally its in camel case for example if in your mysql
 database table column name is my_column then we use getMyColumn().

 similarly you may try getPrenom() if your column name is prenom .

 -deepak


 On Mar 31, 2:01 pm, mohamed sabri ben sassi
 mohamedsabri.bensa...@gmail.com wrote:
  yes i tried with this ,,i have passed in find the primary_key weach
 is
  matricule but the same thing ,,i really stocked its bizare,,because
 when i
  generate an other module with showSuccess it works ,,but if i create
 my own
  function in action.class and my own template it makes an error
  Fatal error: Call to a member function getprenom() on a non-object
 
  please give some solutions
  2011/3/31 deepak deepakkumar...@gmail.com
 
 
 
 
 
 
 
   Hi
 
   Please try with
 
   $this-utilisateur =
 Doctrine::getTable('utilisateur')-find($request-
   getParameter('matri cule'));
 
   find tries to search the row on the basis of primary key. That
means
   you must pass primary key in find('PRIMARY_KEY')
 
   try this and post your feedback.
 
   -deepak
 
   On Mar 31, 1:19 pm, mohamed sabri ben sassi
   mohamedsabri.bensa...@gmail.com wrote:
hi guys,,i need help
i have an error when i want to view my name or some information
   extracted
from base with function getprenom or getmatricule ,,,the error
 is:
Fatal error: Call to a member function getprenom() on a
non-object
 in
C:\development\sfprojects\gestion des
competences\apps\frontend\modules\login\templates\CVSuccess.php
on
   line*55*
*
*
*there is the code of fuction executecv:*
*
class loginActions extends sfActions
{
public function executeCv(sfWebRequest $request)
{
 
$this-utilisateur =
 
  

Doctrine::getTable('utilisateur')-find(array($request-getParameter('matri
   cule')));
$this-forward404Unless($this-utilisateur);
 
}
 
and there is the code of cvsSuccess:
 
span class=i3 Votre non/spanspan class=i2?php echo
$utilisateur-getprenom(); ?/span
 
i need help please
*
 
   --
   If you want to report a vulnerability issue on symfony, please
send
 it to
   security at symfony-project.com
 
   You received this message because you are subscribed to the Google
   Groups symfony users group.
   To post to this group, send email to
symfony-users@googlegroups.com
   To unsubscribe from this group, send email to
   symfony-users+unsubscr...@googlegroups.com
   

Re: [symfony-users] Re: Fatal error: Call to a member function getprenom() on a non-object

2011-03-31 Thread Gábor Fási
This is a mailing list, not a chatroom - do not expect an immediate answer.
Also, there's no need to ping your thread that often.

Most probably the value passed to find is incorrect, look around there.
On Mar 31, 2011 12:45 PM, mohamed sabri ben sassi 
mohamedsabri.bensa...@gmail.com wrote:
 help

 2011/3/31 mohamed sabri ben sassi mohamedsabri.bensa...@gmail.com

 its correct s


 2011/3/31 Gábor Fási maerl...@gmail.com

 Var_dump $utilisateur. Judging from the message doctrine doesn't find a
 matching record, thus returns false. Also check the query that is run.
 On Mar 31, 2011 12:20 PM, mohamed sabri ben sassi 
 mohamedsabri.bensa...@gmail.com wrote:
  its the same thing i wont work have you an other solution
 
  2011/3/31 Gareth McCumskey gmccums...@gmail.com
 
  Try using getPrenom not getprenom. Case sensitivity might be the
issue
  here.
 
  On Thu, Mar 31, 2011 at 11:30 AM, mohamed sabri ben sassi 
  mohamedsabri.bensa...@gmail.com wrote:
 
  pleaaase help
 
 
  2011/3/31 mohamed sabri ben sassi mohamedsabri.bensa...@gmail.com
 
  matricule is an integer value and it is primary key
  also my colomn is named prenom ,,i checked all of this but its
 nothing
  ,,, it works with the other module i will show the other exemple
  action.class:
  public function executeShow(sfWebRequest $request)
  {
  $this-utilisateur =
 

Doctrine::getTable('utilisateur')-find(array($request-getParameter('matricule')));
  $this-forward404Unless($this-utilisateur);
  }
 
  table
  tbody
  tr
  thMatricule:/th
  td?php echo $utilisateur-getmatricule() ?/td
  /tr
  tr
  thPassword:/th
  td?php echo $utilisateur-getpassword() ?/td
  /tr
  tr
  thNom:/th
  td?php echo $utilisateur-getnom() ?/td
  /tr
  tr
  thPrenom:/th
  td?php echo $utilisateur-getprenom() ?/td
  /tr
  tr
  thId groupe:/th
  td?php echo $utilisateur-getid_groupe() ?/td
  /tr
  tr
  thMatr manager:/th
  td?php echo $utilisateur-getmatr_manager() ?/td
  /tr
  tr
  thDate de naissance:/th
  td?php echo $utilisateur-getdate_de_naissance() ?/td
  /tr
  tr
  thLieu de naissance:/th
  td?php echo $utilisateur-getlieu_de_naissance() ?/td
  /tr
  tr
  thAdresse:/th
  td?php echo $utilisateur-getadresse() ?/td
  /tr
  tr
  thTel mobile:/th
  td?php echo $utilisateur-gettel_mobile() ?/td
  /tr
  tr
  thE mail:/th
  td?php echo $utilisateur-gete_mail() ?/td
  /tr
  tr
  thStatus familiale:/th
  td?php echo $utilisateur-getstatus_familiale() ?/td
  /tr
  tr
  thStatus:/th
  td?php echo $utilisateur-getstatus() ?/td
  /tr
  tr
  thCreated at:/th
  td?php echo $utilisateur-getcreated_at() ?/td
  /tr
  tr
  thUpdated at:/th
  td?php echo $utilisateur-getupdated_at() ?/td
  /tr
  /tbody
  /table
 
  hr /
 
  you see with this code i can view this module and it manipulate the
 same
  function getprenom() ans it works
 
  2011/3/31 deepak deepakkumar...@gmail.com
 
  Could you please mention the exact value that you are trying to
pass
  to find().
 
  I would like to know whether its an array or a single value that
you
  are passing.
 
  Regarding getprenom() there must be a column named prenom in
 your
  DB table. generally its in camel case for example if in your mysql
  database table column name is my_column then we use
getMyColumn().
 
  similarly you may try getPrenom() if your column name is prenom
.
 
  -deepak
 
 
  On Mar 31, 2:01 pm, mohamed sabri ben sassi
  mohamedsabri.bensa...@gmail.com wrote:
   yes i tried with this ,,i have passed in find the primary_key
 weach
  is
   matricule but the same thing ,,i really stocked its
 bizare,,because
  when i
   generate an other module with showSuccess it works ,,but if i
 create
  my own
   function in action.class and my own template it makes an error
   Fatal error: Call to a member function getprenom() on a
non-object
  
   please give some solutions
   2011/3/31 deepak deepakkumar...@gmail.com
  
  
  
  
  
  
  
Hi
  
Please try with
  
$this-utilisateur =
  Doctrine::getTable('utilisateur')-find($request-
getParameter('matri cule'));
  
find tries to search the row on the basis of primary key. That
 means
you must pass primary key in find('PRIMARY_KEY')
  
try this and post your feedback.
  
-deepak
  
On Mar 31, 1:19 pm, mohamed sabri ben sassi
mohamedsabri.bensa...@gmail.com wrote:
 hi guys,,i need help
 i have an error when i want to view my name or some
 information
extracted
 from base with function getprenom or getmatricule ,,,the
error
  is:
 Fatal error: Call to a member function getprenom() on a
 non-object
  in
 C:\development\sfprojects\gestion des

 competences\apps\frontend\modules\login\templates\CVSuccess.php on
line*55*
 *
 *
 *there is the code of fuction executecv:*
 *
 class loginActions extends sfActions
 {
 public function executeCv(sfWebRequest $request)
 {
  
 $this-utilisateur =
  
   
 

Doctrine::getTable('utilisateur')-find(array($request

Re: [symfony-users] MP4 mime type sfValidatorFile troubles with IE6

2011-03-31 Thread Gábor Fási
Check what mime type is sent by IE. You can use wireshark, or do a quick n'
dirty die(var_dump($_FILE)) in your action.
On Mar 31, 2011 8:35 PM, _kud kud.g...@gmail.com wrote:
 Hello,

 I've some troubles with IE6 (oh, really?), I'd like to validate my mp4
 uploaded file but sf 1.4 answers me it's a wrong mime type.

 What I've done:

 $this-setValidator('video', new sfValidatorFile(
 array(
 'mime_types' = array('video/mpeg','video/mpg','video/
 mp4'),
 'path' = sfConfig::get('sf_upload_dir').'/users/video',
 'required' = false,
 'max_size' = '10485760'

 ),
 ));


 I checked my file with 'file --mime-type example.mp4' in shell
 (macos), it returns 'video/mp4', and when I use my form with Fx4 or
 Safari or Chrome, I've no trouble.

 Do you have any idea how to validate a mp4 file with IE6?

 Thank you.

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

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

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

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


Re: [symfony-users] shows only id not the name-string

2011-03-29 Thread Gábor Fási
Create the __toString() function in your City class.

On Tue, Mar 29, 2011 at 19:42, -Jab- jabirah...@gmail.com wrote:
 i have relation set as http://pastebin.com/L9J1z36m
 but on the add page it only shows ids and not names in the drop down
 it shows 1,2 where as i expect the city names
 not sure why
 any idea

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

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


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

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


Re: [symfony-users] Variable set in action empty inside view.

2011-03-17 Thread Gábor Fási
Does the web debug bar show $js as being passed to the view? What does
`var_dump($js)` echo?

On Thu, Mar 17, 2011 at 05:34, Joeline Becker
xxxtenderloving...@googlemail.com wrote:
 Hello,


 I have something like this in my actions.class.php
 public function executeIndex(sfWebRequest $request)
  {
    $foo = new foo(nar);
    $this-js = $this-generateIndexTable($foo-bar());
  }



 Then in my indexSuccess.php view I access the variable $js from
 actions.class.php as follows:
 echo $js;


 However this does not work. I know the function generateIndexTable()
 works, because if I echo generateIndexTable($foo-bar()); inside the
 actions.class.php, then it will show in the view (obviously at the
 very top of indexSuccess.php).

 Why is this happening? Is this some sort of bug? The
 generateIndexTable() function generates a rather large table. Do you
 think it is due to that?


 Thanks for any help.

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

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


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

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


Re: [symfony-users] Problem with Sending an email with a task

2011-03-17 Thread Gábor Fási
You sure you meant dmContext, and not sfContext?

2011/3/17 Philippe Mangé phili...@magicmanage.be:
 Hi all,

 I am having the following error:

 PHP Catchable fatal error:  Argument 1 passed to
 dmContext::createInstance() must be an instance of
 sfApplicationConfiguration, instance of ProjectConfiguration given,
 called in ...

 my code looks like this
 Somebody an idea ?

  protected function execute($arguments = array(), $options = array())
 {
  // initialize the database connection
    $databaseManager = new sfDatabaseManager($this-configuration);
    $connection = $databaseManager-
getDatabase($options['connection'] ? $options['connection'] : null)-
getConnection();

    // create a context, and load the helper
    $context = dmContext::createInstance($this-configuration);
    $this-configuration-loadHelpers('Partial');

    // create the message
    $message = $this-getMailer()-compose('*@', '*',
 'Subject Line');

    // generate HTML part
    $context-getRequest()-setRequestFormat('html');
    $html  = 'test';
    $message-setBody($html, 'text/html');

    // generate plain text part
    $context-getRequest()-setRequestFormat('txt');
    $plain = 'test';
    $message-addPart($plain, 'text/plain');

    // send the message
    $this-getMailer()-send($message);

  }

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

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


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

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


Re: [symfony-users] Question about a .css file that is not loaded in all the pages of the backend.

2011-03-14 Thread Gábor Fási
Do you have include_stylesheets in your layout? Any of your view.ymls
contain a [-background] directive?

On Mon, Mar 14, 2011 at 12:03, Javier Garcia tirengar...@gmail.com wrote:
 Hi,

 I have this file apps/backend/config/view.yml.

 default:
  http_metas:
    content-type: text/html

  metas:
    #title:        symfony project
    #description:  symfony project
    #keywords:     symfony, project
    #language:     en
    #robots:       index, follow

  stylesheets:    [backend.css]

  javascripts:    []

  has_layout:     true
  layout:         layout

 But the file web/backend.css it is not loaded in all pages of the
 backend.

 Any idea?

 sf 1.4/propel 1.6

 Javier

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

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


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

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


Re: [symfony-users] How to add sorting options to relationship accessors

2011-03-12 Thread Gábor Fási
You can add orderBy to your relation definition like this:

Gallery:
  columns:
title: string(255)
  relations:
Images:
  local: id
  foreign: gallery_id
  foreignAlias: Gallery
  type: many
  orderBy: position

taken from 
http://test.ical.ly/2010/09/30/did-you-know-that-you-can-sort-your-doctrine-relations-by-setting-an-orderby-option-in-your-schema/

On Sat, Mar 12, 2011 at 19:10, Alex Pilon alex.pi...@gmail.com wrote:
 Hello,
 I have a model which has a collection of notes attached to it.
 So for example I access $show-getNotes() and that gives me a
 Doctrine_Collection. However I want it to be sorted by the date it was
 created (ie orderBy('a.created_at').
 What is the best way to do that? Should I simply override the getNotes and
 write a Doctrine query?

 --
 Alex Pilon
 (613) 608-1480

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

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


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

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


Re: [symfony-users] sfWidgetFormDate default date not working

2011-03-08 Thread Gábor Fási
Symfony's going to interpret it via strtotime[1], so use a format it
understands, like Y-m-d. Alternatively, you can pass a unix timestamp
there.

[1] 
http://trac.symfony-project.org/browser/branches/1.4/lib/widget/sfWidgetFormDate.class.php#L73

On Mon, Mar 7, 2011 at 20:00, GaB gabinby...@gmail.com wrote:
 Hi, can anybody tell how to setup the default date for a
 sfWidgetFormDate in SF1.4 ?


     $range  = range('2008', date('Y')+2);
     $years = array_combine($range,$range);
     $dateFormat = '%day%/%month%/%year%';

 *    $dateWidget = new sfWidgetFormDate(array('default' =  '14/12/2010'));*
     $dateWidget-setOption(years, $years);
     $dateWidget-setOption(format, $dateFormat);


 this is not working (notice that the range is working)




 thanks!

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

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


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

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


Re: [symfony-users] How to change default sfValidatorString max length message?

2011-03-06 Thread Gábor Fási
Just a tip, but won't
`sfValidatorBase::setDefaultMessage(max_length, whatever)` work?
This is how I set default required and invalid messages in my project
configuration class.

On Tue, Jan 18, 2011 at 18:47, Basil Hussain
basil.huss...@experience-engine.co.uk wrote:
 I have a couple of forms with many sfValidatorString validators on
 them. The default 'max_length' error message ('%value% is too long
 (%max_length% characters max).') is really not suitable to the way my
 forms are laid out in the HTML, because repeating the too-long value
 within the message throws everything out of alignment.

 So, I want to set a shorter message (e.g. 'Too long, %max_length%
 characters max'), but I don't want to have to add the same message
 array repeatedly for every single sfValidatorString instance on these
 forms - each has 20 of them!

 Is there a way to set a default 'max_length' message once for every
 sfValidatorString on a form?

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

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


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

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


Re: [symfony-users] Remember: how to create a Doctrine project in symfony 1.2?

2011-03-02 Thread Gábor Fási
Remember has nothing to do with it, when you have the documentation.

public function setup()
{
  $this-enablePlugins(array('sfDoctrinePlugin'));
  $this-disablePlugins(array('sfPropelPlugin'));
}

On Wed, Mar 2, 2011 at 10:29, Javier Garcia tirengar...@gmail.com wrote:
 Hi,

 someone can remember how to create a Doctrine project in symfony 1.2?

 Regards

 Javi

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

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


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

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


Re: [symfony-users] Form widgets

2011-02-24 Thread Gábor Fási
That's not the case anymore in 1.3 and 1.4. The default autoloader in
debug mode became sfAutoloadAgain[1], which reloads the class cache if
you're trying to load a nonexistent class.

[1] 
http://www.symfony-project.org/tutorial/1_4/en/whats-new#chapter_a2fae23c9403b0e9ec99806fccf6b53e_sub_sfautoloadagain_experimental

On Thu, Feb 24, 2011 at 07:51, Gareth McCumskey gmccums...@gmail.com wrote:
 Anytime you create a new class, be it a form class or an auto-generated
 class from a new table in your schema or even one of your own classes, you
 MUST clear the cache.


 On 24/02/2011 02:51, Parijat Kalia wrote:

 Oh Thank you. It worked, but somehow did not cross my mind.

 On Wed, Feb 23, 2011 at 4:36 PM, Stéphane stephane.er...@gmail.com wrote:

 sf cc ?

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


 On Thu, Feb 24, 2011 at 1:20 AM, Parijat Kalia kaliapari...@gmail.com
 wrote:

 Hi guys,
 I am following the Symfony form's tutorials and have reached upto listing
 1-2 on http://www.symfony-project.org/forms/1_1/en/01-Form-Creation
 I have executed all steps up until listing 1-2 but while i attempt to run
 the webpage, it reads the following error:
 Fatal error: Class 'RegisterForm' not found
 in C:\dev\sfproject\apps\frontend\modules\questions\actions\actions.class.php on
 line 1623
 Not sure why this is happening because I do have a RegisterForm.class.php
 file in my //lib/form folder (I am talking the lib folder for the entire
 project and not the local module lib folder, P.S: I have also carried out
 the same experiment with the module lib folder, only to get similar
 results).
 Anybody with any leads on what I am missing out here?
 Thanks!
 Parijat Kalia
 --
 If you want to report a vulnerability issue on symfony, please send it to
 security at symfony-project.com

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

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

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

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

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

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

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


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

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


Re: [symfony-users] I get a 500 instead of a 404

2011-02-23 Thread Gábor Fási
Public is only usable within class context - you're missing the `class
defaultActions extends sfActions` line and the connecting brackets.

On Wed, Feb 23, 2011 at 17:00, Manu emmanuel.parf...@gmail.com wrote:
 Hi, I've created custom 404 error pages for my symfony application,
 but they don't seem to work. In dev I see :
    This request has been forwarded to a 404 error page by the action
 blabla.

 But in prod, the page is just blank; I get a 500 error.

 In the logs, the error is :
    PHP Parse error:  syntax error, unexpected T_PUBLIC in /var/www/
 myproject/apps/myapp/modules/default/actions/actions.class.php on line
 7

 default/actions/actions.class.php is the following :
 ?php
 /**
  * Error page for page not found (404) error
  *
  */

 public function executeError404()
 {

 }

 public function executeSecure()
 {

 }
 ?

 What is going on ?

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

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


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

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


Re: [symfony-users]

2011-02-23 Thread Gábor Fási
Did you edit the file? The version in svn [1] has __toString at a
different place, and without arguments.

[1] 
http://trac.symfony-project.org/browser/plugins/DbFinderPlugin/trunk/lib/sfModelFinder.php

On Wed, Feb 23, 2011 at 19:13, Maryam FATIHI maryam.e...@gmail.com wrote:
 Hi everybody!
 I'm new to Symfony,and I wonder if anyone of you has faced this problem
 before:
 Fatal error: Method sfModelFinder::__tostring() cannot take arguments in
 C:\..\..\plugins\DbFinderPlugin\lib\sfModelFinder.php on line 149
 What can I do to solve this problem? thanks in advance.

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

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


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

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


Re: [symfony-users] Is sfWidgetFormPropelChoiceMany class deprecated in sf 1.4?

2011-02-21 Thread Gábor Fási
sfWidgetFormPropelChoice, with multiple=true. That's only what ~Many did anyway.

On Mon, Feb 21, 2011 at 16:46, Javier Garcia tirengar...@gmail.com wrote:
 Hi,

 is sfWidgetFormPropelChoiceMany class deprecated? why? what class
 should i use?

 Javier

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

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


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

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


Re: [symfony-users] Re: [Symfony2] Executing code before the controller action was called

2011-02-15 Thread Gábor Fási
My bad, didn't see the Sf2 flag in the subject.

On Tue, Feb 15, 2011 at 14:21, Justin Fortier justfort...@gmail.com wrote:
 Your solution is Symfony 1.4 based, I'm not sure how this is all
 handled in Symfony2.

 Nikita, I'm also trying to implement something similar in nature, I'll
 let you know if I find a solution.

 On Feb 14, 3:13 pm, Gábor Fási maerl...@gmail.com wrote:
 This is exactly what the Advanced Routing chapter of the More with
 symfony book is 
 about:http://www.symfony-project.org/more-with-symfony/1_4/en/02-Advanced-R...



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

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


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

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


Re: [symfony-users] [Symfony2] Executing code before the controller action was called

2011-02-14 Thread Gábor Fási
This is exactly what the Advanced Routing chapter of the More with
symfony book is about:
http://www.symfony-project.org/more-with-symfony/1_4/en/02-Advanced-Routing

On Mon, Feb 14, 2011 at 19:12, Nikita Korotaev websir...@gmail.com wrote:
 Hi everyone,
 I would like to to make a some kind of a check before the controller action
 is executed.
 Let me briefly explain:
 I have subdomains for every user like:
 user1.example.com
 user2.example.com
 When someone requests a page on any subdomain, I want to perform a check to
 see if this kind of domain exists in the database and get a domain_owner
 object (doctrine entity). If there is no domain like this then redirect to
 404 page.
 The thing is I need to perform this check in several bundles. So I was
 thinking to create a custom base controller and put my checking code into
 constructor. And then extend all other controllers from this controller. But
 the Entity Manager is not available in the constructor. So I don't know how
 should I do it properly. Some kind of init() or boot() function could help,
 but it looks like anything like that is supported by Symfony.
 Any suggestions?
 Regards,
 Nikita

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

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


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

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


Re: [symfony-users] save() - doctrine saving or updating record

2011-02-12 Thread Gábor Fási
$this-isNew()

On Sat, Feb 12, 2011 at 19:23, introvert aljaz.faj...@gmail.com wrote:
 Hello,

 I want to override save() function for my model.

 Is there any way to know if the function being called to INSERT new or
 UPDATE the existing record?

 Thanks for help

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

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


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

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


Re: [symfony-users] Question about sfOutputEscaperArrayDecorator

2011-02-07 Thread Gábor Fási
It is useful to prevent html injection (and a few similar) attacks.
Imagine the following: someone registers as h1username/h1, and
then you create a user list page. If you'd simply output the name, his
name would be quite big, but with symfony's output escaping simply
echoing `$user-username` is safe.

Output escaping is on by default since 1.3, can be turned off at app
generation or in the config directory. However, you should leave it
enabled an use getRaw() when absolutely neccesary.

On Mon, Feb 7, 2011 at 19:17, Javier Garcia tirengar...@gmail.com wrote:
 Hi,

 when i do a sfGuardUserPeer::doSelect(new Criteria()), i get an object
 like this:

 object(sfOutputEscaperArrayDecorator)[114]
  private 'count' = int 1
  protected 'value' =
    array
      0 =
        object(sfGuardUser)[108]
          protected 'profile' = null
          protected 'groups' = null
          protected 'permissions' = null
          protected 'allPermissions' = null
          protected 'id' = int 2
          protected 'username' = string 'sv (length=13)
          protected 'algorithm' = string 'sha1' (length=4)
          protected 'salt' = string
 '473229c98974bde4977f318d65695b4f' (length=32)
          protected 'password' = string
 '4ffdda9d9a980aa7d076911da05f717eff48907a' (length=40)
          protected 'created_at' = string '2011-02-07
 18:51:40' (length=19)
          protected 'last_login' = null
          


 As you can see what I get is an sfOutputEscaperArrayDecorator object.
 But what does it serve for/is usefull? If I have to show the users
 retrieved, I have to use allways getRaw()..

 sf 1.4/propel

 Regards

 Javi

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

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


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

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


Re: [symfony-users] Form problems

2011-02-07 Thread Gábor Fási
Try using sfValidatorDate. Here's a working example (you'll need to
adapt the format):

new sfValidatorDate(array(date_format =
'~(?Pyear\d{4})\.(?Pmonth\d{2})\.(?Pday\d{2})~')));


On Mon, Feb 7, 2011 at 18:41, StephaneQ stephanequan...@gmail.com wrote:
 Hello,

 I have 2 problems with a custom form, which is not based on an object.
 I'm using sf 1.4.8

 First problem is with a validator. I have an input text field which
 should contains a string which looks like a date. The format must be
 dd-mm- (for example 07-02-2011).

 Here is the code where I set the field :


        $this-setWidgets(array(
           'date_debut' = new sfWidgetFormInputText(array(), array(
                'class' = 'format-d-m-y divider-dash'
            ))
        ));

        $this-setValidators(array(
            'date_debut' = new sfValidatorRegex(array(
                'pattern' = '/^\d{2}-\d{2}-\d{4}$/', 'required' =
 false),
                    array('invalid' = Format de date non valide)
            )));


 I tried several regex, it seems symfony doesn't care about it.
 Whatever I write in the field (even letters), the form is always
 validated.


 The second problem is with setDefault method, I want to set a value in
 a field and I used the setDefault method. I tried to put it in the
 form class, in the template and in the constructor but it doesn't
 work, my field stays blank.


 Can someone help me to see what's wrong about these 2 problems ?


 Regards

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

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


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

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


Re: [symfony-users] [Symfony2] need sample use FileField to file upload

2011-02-02 Thread Gábor Fási
Your form is missing the enctype attribute.

On Wed, Feb 2, 2011 at 16:04, stfalcon stepan.tanasiyc...@gmail.com wrote:
 In my symfony2 sample project https://github.com/stfalcon/portfolio I
 need upload screenshots to projects.
 I try use FileField and debug him. But can't get it to work...

 I found no examples or docs of its use. Somebody used FileField in
 form to file upload? It's working?

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

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


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

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


Re: [symfony-users] is it possible to have security set at the application level?

2011-02-01 Thread Gábor Fási
apps/appname/config/security.yml?

On Tue, Feb 1, 2011 at 21:53, matt lawre...@thesecondroad.org wrote:
 Writing a lot of security.yml files for each module seems tedious.
 I've got 20 modules and they all need some security settings. Is there
 a way to set all this info at the application level?

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

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


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

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


Re: [symfony-users] Web page text content i18n

2011-01-30 Thread Gábor Fási
Xliff dictionaries are cached as php arrays, pretty hard to beat that.
On Jan 31, 2011 12:23 AM, Pau Peris sibok1...@gmail.com wrote:
 hi, to handle web page text content translation (i18n) on a web page
 is it always recommended to use xliff dictionaries or ddbb storage? To
 handle i18n on a web page i18n tables are used, but to handle page
 content text translation depending on the client language shouldn't
 ddbb storage be faster than xliff dictionaries? I'm thinking how to do
 it but all the examples i can find use xliff dictionaries.
 PD: I'm not asking for i18n ddbb storage but how to properly handle
 web page text content translation on a wide site, i've read about
 xliff dictionaries but i'm wondering if there is any better method.

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

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

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

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


Re: [symfony-users] Re: German umlauts not retrieved correctly from db

2011-01-27 Thread Gábor Fási
It was just a guess, I'm yet to start experimenting with Sf2.

Check the web debug toolbar if doctrine issues a SET NAMES utf8 query.

On Thu, Jan 27, 2011 at 21:18, pzwosta peter.zwo...@gmx.de wrote:
 I tried phpMyAdmin, the umlauts look correct. phpMyAdmin also shows
 the utf-8 options for collation of the tables and the database and
 shows the following options for MySQL

 MySQL localhost

 Zeichensatz / Kollation der MySQL-Verbindung: utf8_general_ci (charset
 of MySQL connection)

 MySQL
    * Server: localhost via TCP/IP
    * Server Version: 5.1.49-community
    * Protokoll-Version: 10
    * Benutzer: root@localhost
    * MySQL-Zeichensatz: UTF-8 Unicode (utf8)

 Any idea? Do you know where to set the charset/collation using Symfony
 2?

 regards
 Peter

 On 23 Jan., 16:12, Gábor Fási maerl...@gmail.com wrote:
 How do you insert the data? Do they look correct in phpmyadmin, after
 making sure it uses utf8-encoded connection?







 On Sun, Jan 23, 2011 at 15:59, pzwosta peter.zwo...@gmx.de wrote:
  Hi,

  using Doctrine GermanUmlautsare not retrieved correctly from
  database.

  - My database is defined with collation utf8 - utf8_unicode_ci
  (inherited by the tables, MySQL Workbench, Windows).
  - The schema definitions for Doctrine are created automatically by
  doctrine:schema:import.

  When debugging in Eclipse I can see that the values in the Doctrine
  objects are wrong (not only the web page in firefox). My Eclipse
  project editor charset is also UTF-8.

  This is my config.yml. Is there any other place where to config
  charset UTF-8? I wasn't able to find anything in the docs.

  # config.yml
  app.config:
     charset:       UTF-8
  
  doctrine.dbal:
     driver:   PDOMySql
     dbname:   x
     user:     x
     password: 

  Do you have any hint for me?

  Thanks.
  Peter

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

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

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

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


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

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


Re: [symfony-users] German umlauts not retrieved correctly from db

2011-01-23 Thread Gábor Fási
How do you insert the data? Do they look correct in phpmyadmin, after
making sure it uses utf8-encoded connection?

On Sun, Jan 23, 2011 at 15:59, pzwosta peter.zwo...@gmx.de wrote:
 Hi,

 using Doctrine German Umlauts are not retrieved correctly from
 database.

 - My database is defined with collation utf8 - utf8_unicode_ci
 (inherited by the tables, MySQL Workbench, Windows).
 - The schema definitions for Doctrine are created automatically by
 doctrine:schema:import.

 When debugging in Eclipse I can see that the values in the Doctrine
 objects are wrong (not only the web page in firefox). My Eclipse
 project editor charset is also UTF-8.

 This is my config.yml. Is there any other place where to config
 charset UTF-8? I wasn't able to find anything in the docs.

 # config.yml
 app.config:
    charset:       UTF-8
 
 doctrine.dbal:
    driver:   PDOMySql
    dbname:   x
    user:     x
    password: 

 Do you have any hint for me?

 Thanks.
 Peter

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

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


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

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


Re: [symfony-users] I recently upgraded to a new install.

2011-01-20 Thread Gábor Fási
1.4 includes swiftmailer, 1.2 did not, so the programmer most likely
installed it as a plugin. Disable that plugin and update your mail-related
code to use the built-in method. For details, check the mailer chapter of
the book.
On Jan 19, 2011 6:56 PM, Llew melinko2...@gmail.com wrote:

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

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


Re: [symfony-users] Remember checkbox sfGuardAuth

2011-01-19 Thread Gábor Fási
Did you set up the remember me filter?

On Tue, Jan 18, 2011 at 13:03, sinu govind sinugov...@gmail.com wrote:
 Hi,

 I am using the sfForkedDoctrineApplyPlugin and in my layout.php I have the
 following to display the sfGuardAuth signin form

 echo get_component('sfGuardAuth', 'signin_form');

 The register, the login/logout all work fine. But I cannot get the Remember
 checkbox working? Please help!!!

 Sinu

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

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


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

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


Re: [symfony-users] I18n does not encode special chars - W3C validation fails

2011-01-18 Thread Gábor Fási
In xml you also need to strore it encoded - so when you store amp;
in the xml, it comes out as a simple amperstand on the other end. If
you need an encoded one in your output, you need to double-encode it
in the xml: amp;amp;.

On Mon, Jan 17, 2011 at 16:01, chrigu eber...@gmail.com wrote:
 Hi everybody,

 I'm using I18n tags stored in xml files. Recently I checked my page
 with W3C-Validator (validator.w3.org) and received the following
 error: character  is the first character of a delimiter but
 occurred as data.

 I checked my source code and saw that the Ampersand () is decoded. I
 checked in the messages.xml and there it is properly stored as html
 entity (amp ;) as it should be. I checked other special characters
 like umlauts there I have the same problem, they are not encoded. My
 browser displays these characters correctly but the W3C Validator
 complains about them (see above).

 If I do an echo utf8_encode(__(My translation contains an
 ampersand)); it does the trick but I don't wanna add an utf8_encode
 to every internationalisation-tag which could contain special chars.
 Can I overwrite somehow the __(key) function or is this a bug which
 needs to be reported?


 Thank you for any help!!!
 Chrigu

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

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


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

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


Re: [symfony-users] Save the output of a task.

2011-01-11 Thread Gábor Fási
You also need to redirect the stderr:

task  foo.txt 21

this redirects it to the stdout, so it gets logged to the same file.

On Tue, Jan 11, 2011 at 15:56, Javier Garcia tirengar...@gmail.com wrote:
 Hi,

 i have a long error message when i execute a task. In order to save
 the output i'm writing task  foo.txt.

 But when i open foo.txt the error messages are not there.

 Any idea? Any alternative?

 Regards

 Javi

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

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


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

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


Re: [symfony-users] Doctrine i18n Choice Widget

2011-01-10 Thread Gábor Fási
Implement the __toString() function in the zodiac class.

On Sun, Jan 9, 2011 at 05:11, Nils Abegg nils.ab...@googlemail.com wrote:
 Hey Guys,
 i have the following schema.yml and i want to get the zodiac sign ID as a
 selectbox with the zodiac signs in the users language. But i only get the
 primary keys in the Selectbox. Could anyone give me a hint what to do.
 Thanks in advance for any help. ;)

 Girl:
   actAs:
     I18n:
       fields: [name]
   columns:
     name:                     { type: string(50), notnull: true }
 GirlDetail:
   actAs:
     I18n:
       fields: [custom_zodiac_sign]
   columns:
     girl_id:                  { type: integer, notnull: true }
     zodiac_sign_id:           { type: integer }
     custom_zodiac_sign:       { type: string(100) }
   relations:
     GirlZodiacSign:           { onDelete: CASCADE, local: zodiac_sign_id,
 foreign: id, foreignAlias: GirlZodiacSigns }
 GirlZodiacSign:
   actAs:
     I18n:
       fields: [zodiac_sign]
   columns:
     zodiac_sign:              { type: string(100), notnull: true, unique:
 true }

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

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


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

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


Re: [symfony-users] - Symfony 1.4.8 - Problems with a redirect() inside of a try...catch construct in action code

2011-01-10 Thread Gábor Fási
Creating your own exception class is the best way, but I'd still like
to add this alternative: using multiple catch bocks after a try:

try {
  //your stuff
}
catch (sfStopException $e) {
  throw $e; //rethrowing it, nothing else to do
}
catch (Exception $e) {
  //handle error
}

On Mon, Jan 10, 2011 at 16:18, Gabriel Comeau comeaugabr...@gmail.com wrote:
 Hello all,

 I'm having a problem using a redirect inside of my action code.  The
 problem is that the redirect occurs inside of a try block.  Before it
 happens, there is a method call to an object from my model.  If this
 object is not in the right state when the method is called, it throws
 an exception.

 The action code looks like this:

 try
 {
  $this-purchaseOrder-doPurchase();
  $this-redirect('thanks');
 }
 catch (Exception $e)
 {
  $this-getUser()-setFlash('error', 'Sorry - '.$e-getMessage());
  $this-redirect('homepage');
 }

 If the doPurchase() method actually throws an exception, this code
 works exactly as expected.  The problem when the method completes its
 execution without problem.

 The redirect to the 'thanks' action happens, but the flash error gets
 displayed (only the Sorry -  part).  I figured out that this is
 because a redirect throws an sfStopException, which doesn't have a
 message (hence the $e-getMessage() not printing anything out).

 The solution I am thinking of right now is to create a custom
 exception class for my model so that my catch block can instead be
 something like catch (purchaseOrderException $e) and will ignore the
 stopException.

 Is this the right way to go about it or is there a better solution to
 this problem that I'm not seeing.

 This is my first real symfony project, though I've been working with
 PHP for a while.  If there's a framework-specific way of solving this
 problem, I'd love to know about it.

 Thanks very much,

 Gabriel

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

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


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

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


Re: [symfony-users] Question about fixtures: the object is not defined in your data file.

2011-01-10 Thread Gábor Fási
Be careful, the YAML parser won't like you if you mess up with
Indentation. Keep in mind the following simple tips when adding PHP
code to a YAML file:

* The ?php ? statements must always start the line or be
embedded in a value.
* If a ?php ? statement ends a line, you need to explicly output
a new line (\n).

http://www.symfony-project.org/jobeet/1_4/Doctrine/en/06#chapter_06_dynamic_fixtures

On Mon, Jan 10, 2011 at 17:34, Javier Garcia tirengar...@gmail.com wrote:
 Hi,

 I have this code:

 sfGuardUser:
  utente_1:
    username:     j.gar...@esempio.com
    password:     123456
 ?php for($i=2; $i=50; $i++): ?
  utente_?php echo $i?:
    username:     utente_?php echo $i?@esempio.com
    password:     123456
 ?php endfor ?

 sfGuardUserProfile:
  profilo_1:
    user_id:      utente_1
    nome:         Filippo Batistini
    note:         jfkjsdf
 ?php for($i=2; $i=50; $i++): ?
  profilo_?php echo $i?:
    user_id:      utente_?php echo $i?
    nome:         Filippo Batistini
    note:         jfkjsdf
 ?php endfor ?

 And I'm getting the error:


  The object utente_2    nome:         Filippo Batistini from class
 sfGuardUser is not defined in your data file.

 Any idea?

 Regards

 Javi

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

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


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

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


Re: [symfony-users] How to include a form in a template in every page?

2011-01-07 Thread Gábor Fási
This is what components are for.
Here's an example from jobeet:
http://www.symfony-project.org/jobeet/1_4/Doctrine/en/19#chapter_19_language_switching

On Fri, Jan 7, 2011 at 07:33, Eric B ebenza...@gmail.com wrote:
 Hi,

 This may sound like a newbie question, but I just can't figure out the
 right way of doing this.

 I'm looking to put a simple login form in my layout template to appear in
 all pages.  Since I don't have an action associated with the template
 itself, I'm not sure how to instantiate my LoginForm.  I tried within the
 template itself, but I get an error message (rightly so) indicating that the
 class cannot be found.  So I can either manually include the Form class and
 all the hierarchy (which sounds like an incredibly difficult task), or
 figure out another way.

 So far, I've come up with the two following:
 1) Create a filter and instantiate the login form in the filter and insert
 it into the request object.  Then in the template get the form from the
 request object.
 2) Manually create inputs in the template without actually using my sfForm
 LoginForm.

 Problems with these 2 hacks:
 1) Very ugly.  Can't imagine that there isn't a better idea/solution.  It
 just doesn't seem like the right use of the filter.
 2) Am missing the CSRF field.  So I can either disable the CSRF field from
 my action, or manually create that field too.  Also seems ugly.

 I'm sure there must be another solution out there that I can't figure out.

 Can anyone point me in the right direction please?

 Thanks!

 Eric

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

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


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

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


Re: [symfony-users] I18n format_date() in task

2010-12-28 Thread Gábor Fási
Try passing the culture parameter.

function format_date($date, $format = 'd', $culture = null, $charset = null)

On Tue, Dec 28, 2010 at 11:20, hribo hribo...@gmail.com wrote:
 Hi all,

 I want to use cron to send email by using symfony task, in symfony 1.4.9

 My email is i18n mail and should be rendered before sending.

 Everything is internationalized okay, except format_date()
 I created email pattern in lib/email and is extending Swift_Message class.

 I am also setting context and culture in my task like this:
 $context = sfContext::createInstance($configuration);
     $context-getConfiguration()-loadHelpers(array('Url', 'I18N',
 'Tag', 'Date'));
     $context-getI18N()-setCulture($reminder-getUser()-getCulture());

 and outputting body like this:
 $body .= format_date($reminder-getDate(), 'd');

 But date is always rendered in default english. Other strings are rendered
 correctly in provided language.

 Can you help me please?

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

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


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

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


Re: [symfony-users] confirm message on submit

2010-12-26 Thread Gábor Fási
You will need javascript, if you want a confirm box before submitting.

And by the way: submit_tag also used JS.

On Sun, Dec 26, 2010 at 12:58, jimpass cedricd...@gmail.com wrote:
 Hi,
 I'd like to have a confirm dialog box when i submit my form ,
 something like this : ?php echo submit_tag('save','confirm=Are you
 sure?') ?

  it seems that i can't use the submit_tag in my _form template with
 symfony 1.4, and i prefer do not use javascript, someone can help me ?
 Thanks

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

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


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

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


Re: [symfony-users] best way to hide form fields in front_end based on credentials?

2010-12-20 Thread Gábor Fási
Inject the user in the form's constructor via the $options parameter,
use that in the configure() function.

On Mon, Dec 20, 2010 at 16:27, Stan McFarland sfmc...@gmail.com wrote:
 Hi,

 I guess the subject says it all.  :)  Looking for suggestions as to
 how best to hide specific form fields (not in the backend generator,
 but the frontend)  based on user credentials.   Thanks!

 -stan



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

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


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

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


Re: [symfony-users] Symfony page executed twice

2010-12-19 Thread Gábor Fási
Make sure you have no images with an empty src attribute. In a similar
was also check css and js includes.

On Thu, Dec 16, 2010 at 22:28, Norman peinorman...@gmail.com wrote:
 Hi,

 I have a counter incremented each time an object is printed on a page.
 I realized that this counter is always incremented of 2. In log file,
 the page is executed and rendered twice.

 I logged rewrite mod in Apache2, and I saw that a corresponding
 request is sent twice too.

 Then, I refresh the page once, and two requests are sent and the page
 is computed twice.

 I tried to use prod environnent without debug bar, but nothing
 changes.

 How to solve this problem ?

 Thanks in advance

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

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


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

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


Re: [symfony-users] Symfony 1.2

2010-12-05 Thread Gábor Fási
Not that I know of.
Symfony was supposed to run with magic_quotes off anyway.

On Sun, Dec 5, 2010 at 12:55, JohanE johan.a.edl...@gmail.com wrote:
 Hi!

 I'm running symfony 1.2.10 on an Ubuntu server. I upgraded the php
 version recently to 5.3.

 The system seems to run ok.. However, do you guys know if there can be
 any problems (like security issues for instance) of running symfony
 1.2 and php 5.3???

 I saw that magic_quotes is deprecated in php 5.3, does that affect
 anything in Symfony??

 thanks!

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

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


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

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


Re: [symfony-users] Symfony 1.4 + Doctrine + OCI8

2010-12-02 Thread Gábor Fási
You cannot. Doctrine is built on top of PDO.

On Thu, Dec 2, 2010 at 18:08, Vikos make.webp...@gmail.com wrote:
 Hi Guys!

 I need to use Oracel 10g XE in my current project (Symfony 1.4 
 doctrine 1.2).

 I configured it well to use pdo_oci.. but the it has lot bugs...
 especially in CLOB handling [insert, update].

 Please help me to reconfigure the doctrine to use OCI8 instead of
 PDO!!


 database.yml (for pdo_oci)

    class: sfDoctrineDatabase
    param:
      dsn:      oci8:dbname=192.168.0.133/XE;charset=AL32UTF8
      username: ###
      password: ###

 The tried one for oci:
    class: sfDoctrineDatabase
    phptype: oci8
    param:
      dsn:      oracle:dbname=//192.168.0.133:1521/XE;charset=AL32UTF8

 If I use 'oracle:..' in dsn the doctrine says  unable to
 connect..
 and if I use 'oci8:. - Couldn't locate driver named oci8

 Environment : Win7 64 bi, apache2, php 5.3.1 (installed in wamp).


 Thanks

 Vikos

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

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


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

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


Re: [symfony-users] Creating a cron job script

2010-11-29 Thread Gábor Fási
Create a task, and run that from your cronjob.

http://www.symfony-project.org/gentle-introduction/1_4/en/16-Application-Management-Tools#chapter_16_sub_custom_tasks

On Wed, Nov 17, 2010 at 02:32, DrFrow drf...@gmail.com wrote:
 I am wanting to run a daily import script for my symfony site, what I
 want is to setup a cron job in Cpanel and just have it run a script on
 my server. I am running into a problem with setting this script up, I
 can't get it to actually run any code. This was pretty much the only
 thing I could find on the topic: 
 http://www.lampjunkie.com/2008/04/how-to-use-symfony-and-cron/
 and it appears to be kinda old and not working for me at all, tried to
 modify its a little and still no luck. What are people using to get
 symfony fired up and running and then run either a specific module/
 action or just straight code? Any helps is great.

 Thanks.

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

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


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

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


Re: [symfony-users] Re: Admin generator - removing all delete links

2010-11-23 Thread Gábor Fási
Provided that he knows the link, yes. Hiding the button does not mean
your action is inaccessible.

On Tue, Nov 23, 2010 at 10:45, Manu emmanuel.parf...@gmail.com wrote:
 Thanks, that was what I was looking for. Why do you need to
 forward404() on new and delete ? Could someone still execute those
 actions even though the buttons are not there ?

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

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


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

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


Re: [symfony-users] Version control override/extend feature

2010-11-12 Thread Gábor Fási
You can check out an svn repository with git, add a new remote (I
believe it has to be git), and then pull the changes from the original
svn, and commit to the new git repo.

On Thu, Nov 11, 2010 at 11:25, klemens_u klem...@ull.at wrote:
 Hi everyone,

 I've got a dev-workflow question for you:

 Assume I want to modify/extend an existing symfony project versioned
 via svn to which I have no commit access.

 So I begin doing a checkout of the project.
 Now I modify or add some files.
 But now: leaving the modified files as local changes is no option as I
 want to put my changes into a custom repository of my own.

 Any ideas of such a version control override/extend feature?

 Can SVK or GIT help with this issue?

 Thanks for suggestions,
 Klemens

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

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


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

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


Re: [symfony-users] Re: several parallel requests from one client?

2010-11-02 Thread Gábor Fási
sfSessionStorage has a shutdown() function [1] that calls
session_write_close(), but it does not get called in sfUser's
shutdown(), so as far as I can see, in 1.4 you need to call
session_write_close() manually.

[1] 
http://trac.symfony-project.org/browser/branches/1.4/lib/storage/sfSessionStorage.class.php#L180
On Mon, Nov 1, 2010 at 13:37, Gareth McCumskey gmccums...@gmail.com wrote:
 If it IS called in sfSessionStorage then it is called after all as
 sfSessionStorage manages the writes to session.

 On Mon, Nov 1, 2010 at 2:03 PM, axel at axel.zu...@gmail.com wrote:


 On 1 Nov., 12:54, Gareth McCumskey gmccums...@gmail.com wrote:
  $this-getUser()-shutdown() == session_write_close();
 
  No need for both :)
 

 hm in symfony 1.4.6 session_write_close(); is only called within the
 shutdown function of sfSessionStorage class.
 but not called from sfBasicSecurityUser-shutdown() nor from
 sfUser.shutdown()
 so I had to call it after $this-getUser()-shutdown()...

 maybe a symfony change?





 
 
  On Mon, Nov 1, 2010 at 1:36 PM, axel at axel.zu...@gmail.com wrote:
   thx for your help:
 
   adding:
 
   $this-getUser()-shutdown();
   session_write_close();
 
   to the actions that usually take a long time (eg. pdf generation, xls
   exports,...)
   solved our problem
 
   thx a lot!
 
   On 1 Nov., 11:59, Gareth McCumskey gmccums...@gmail.com wrote:
I wrote a blog post about this ages back. Feel free to take a look:
 
  
http://garethmccumskey.blogspot.com/2009/10/php-session-write-locking...
 
On Mon, Nov 1, 2010 at 12:26 PM, axel at axel.zu...@gmail.com
wrote:
 hello,
 
 when I start a symfony web request that needs several seconds to
 be
 finished, other requests to the same server/symfony application
 sent
 from the same client browser are locked until the first request
 is
 finished. (requests started during the processing time of the
 first
 long request that are sent from other clients (with other cookies
 and
 client ips) are processed immediately.
 
 is this a symfony configured behaviour (max parallel requests per
 cookie or per ip?) or rather an apache config issue?
 
 kind regards
 axel
 
 --
 If you want to report a vulnerability issue on symfony, please
 send it
   to
 security at symfony-project.com
 
 You received this message because you are subscribed to the Google
 Groups symfony users group.
 To post to this group, send email to
 symfony-users@googlegroups.com
 To unsubscribe from this group, send email to

 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
  
   symfony-users%2bunsubscr...@googlegroups.comsymfony-users%252bunsubscr...@googlegroups.com
 
 For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
 
--
Gareth McCumskeyhttp://garethmccumskey.blogspot.com
twitter: @garethmcc
 
   --
   If you want to report a vulnerability issue on symfony, please send it
   to
   security at symfony-project.com
 
   You received this message because you are subscribed to the Google
   Groups symfony users group.
   To post to this group, send email to symfony-users@googlegroups.com
   To unsubscribe from this group, send email to
  
   symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/symfony-users?hl=en
 
  --
  Gareth McCumskeyhttp://garethmccumskey.blogspot.com
  twitter: @garethmcc

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

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



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

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

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


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

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at

Re: [symfony-users] Stylesheets issue

2010-11-02 Thread Gábor Fási
You're looking for `use_stylesheet()`. `include_stylesheets()` outputs
the link/ tags for all the css files in your view.yml and
`use_stylesheet()` calls.

On Tue, Nov 2, 2010 at 23:18, xpanshun srhen...@gmail.com wrote:
 Hi all,

 It seems that my pages only want to use the main.css stylesheet even
 though I have the ?php include_stylesheets() ? line in them. What
 could be wrong here?

 Thanks.

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

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


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

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


Re: [symfony-users] several parallel requests from one client?

2010-11-01 Thread Gábor Fási
This is a session issue.

While a request is being processed, others from the same client (same
sessionid) are held back to prevent simultaneous output to the session
storage.
In php, you can use session_write_close() to tell when you're finished
writing to the session array (and php will start processing the next
request in the background), in symfony there's the shutdown() function
of sfUser.

On Mon, Nov 1, 2010 at 11:26, axel at axel.zu...@gmail.com wrote:
 hello,

 when I start a symfony web request that needs several seconds to be
 finished, other requests to the same server/symfony application sent
 from the same client browser are locked until the first request is
 finished. (requests started during the processing time of the first
 long request that are sent from other clients (with other cookies and
 client ips) are processed immediately.

 is this a symfony configured behaviour (max parallel requests per
 cookie or per ip?) or rather an apache config issue?

 kind regards
 axel

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

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


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

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


Re: [symfony-users] Re: several parallel requests from one client?

2010-11-01 Thread Gábor Fási
http://trac.symfony-project.org/browser/branches/1.4/lib/user/sfUser.class.php#L285

It does not call session_write_close().

On Mon, Nov 1, 2010 at 12:54, Gareth McCumskey gmccums...@gmail.com wrote:
 $this-getUser()-shutdown() == session_write_close();
 No need for both :)

 On Mon, Nov 1, 2010 at 1:36 PM, axel at axel.zu...@gmail.com wrote:

 thx for your help:

 adding:

 $this-getUser()-shutdown();
 session_write_close();

 to the actions that usually take a long time (eg. pdf generation, xls
 exports,...)
 solved our problem

 thx a lot!




 On 1 Nov., 11:59, Gareth McCumskey gmccums...@gmail.com wrote:
  I wrote a blog post about this ages back. Feel free to take a look:
 
  http://garethmccumskey.blogspot.com/2009/10/php-session-write-locking...
 
 
 
  On Mon, Nov 1, 2010 at 12:26 PM, axel at axel.zu...@gmail.com wrote:
   hello,
 
   when I start a symfony web request that needs several seconds to be
   finished, other requests to the same server/symfony application sent
   from the same client browser are locked until the first request is
   finished. (requests started during the processing time of the first
   long request that are sent from other clients (with other cookies and
   client ips) are processed immediately.
 
   is this a symfony configured behaviour (max parallel requests per
   cookie or per ip?) or rather an apache config issue?
 
   kind regards
   axel
 
   --
   If you want to report a vulnerability issue on symfony, please send it
   to
   security at symfony-project.com
 
   You received this message because you are subscribed to the Google
   Groups symfony users group.
   To post to this group, send email to symfony-users@googlegroups.com
   To unsubscribe from this group, send email to
  
   symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/symfony-users?hl=en
 
  --
  Gareth McCumskeyhttp://garethmccumskey.blogspot.com
  twitter: @garethmcc

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

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



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

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

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


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

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


Re: [symfony-users] Display html tags from table

2010-10-31 Thread Gábor Fási
That's because symfony escapes the data you pass to the view. If you
want to display it as it is stored in the DB, use

echo $dias-getDescription(ESC_RAW);

http://www.symfony-project.org/gentle-introduction/1_4/en/07-Inside-the-View-Layer#chapter_07_output_escaping

On Sun, Oct 31, 2010 at 03:23, Martin Ibarra Cervantes
ibarra.cervan...@gmail.com wrote:
 hi, iam using the tiny mce wysinyg editor and i am save the html tags
 into the database,

 with my editor save:

 p Este es un bonito dia/p strongbuen dia /strong

 but when i get the data back from the table

 and try display in my view

 echo $dias-getDescripcion();

 display with all html tags and not display bolds words [buen dia]

 p Este es un bonito dia/p strongbuen dia /strong


 you can help me.

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

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


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

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


Re: [symfony-users] action names and forms

2010-10-27 Thread Gábor Fási
Do you mean you wish to change the 'index' and 'show' part, or the
'Success' part?
The first one comes from the action's name, as long as you rename the
function in the actions.class.php file, you can rename the file.
The second part comes from your action's return value, Success is the
default, but you can use anything there. If you return 'Foobar' in
your executeBaz function, symfony will look for a template called
bazFoobar.php. There are some build-in constants like sfView::SUCCESS.

See 
http://www.symfony-project.org/gentle-introduction/1_4/en/06-Inside-the-Controller-Layer#chapter_06_sub_action_termination

On Wed, Oct 27, 2010 at 00:47, xpanshun srhen...@gmail.com wrote:
 Let me re-iterate I have never worked with Symfony or any other such
 framework before this; I am using it for a school project.


 Two questions...

 1)

 Can the default file names (i.e. indexSuccess.php, showSuccess.php,
 etc.) be changed as long as the action names are changed in the
 actions.class.php in that module or does the chain run deeper than
 that?


 Also,

 2)

 I want to use the default form provided to me on the frontend after
 running the following command:
        $ php symfony doctrine:generate-module --with-show --non-
 verbose-templates frontend customer Customer.

 The form generated for users to input information (shown
 in ...customer/new - newSuccess.php) labels the fields according to my
 database schema.

 So, the form shown in the browser has field names like: customer
 fname instead of something you would normally use when creating a
 form manually like: First Name:.

 Is there a way I can change this, or am I not supposed to use this
 form in such a way?

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

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


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

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


Re: [symfony-users] Re: return view as pdf.

2010-10-22 Thread Gábor Fási
I am using mPDF to do this.

2010/10/22 José Regalado djd...@gmail.com:
 On 22 oct, 12:36, catchamonkey ch...@sedlmayr.co.uk wrote:
 Hi,

 There is a discussion going on 
 currently.http://groups.google.com/group/symfony-users/browse_thread/thread/f73...

 yep... This is good, but my hosting service is not able fot this. Some
 other way?...

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

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


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

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


Re: [symfony-users] Credentials: is there any difference between [[ ]] and [] ?

2010-10-19 Thread Gábor Fási
The difference comes when you have multiple credentials:

[c1, c2] means the user must have both c1 and c2
[[c1, c2]] means the user must have at least one of c1 and c2

but there's no diff between [admin] and [[admin]].

On Tue, Oct 19, 2010 at 11:53, Javier Garci tirengar...@gmail.com wrote:
  Hi,

 is there any difference between credentials: [[admin]] and credentials:
 [admin]  ?


 Javier


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

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


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

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


Re: [symfony-users] images no appears

2010-10-04 Thread Gábor Fási
Instead of hardcoding the urls, use the `image_path()` helper,
example: `image_path('icon-home.gif')`.

2010/10/3 ahmed shehata a7med.she7...@gmail.com:
 hi all
 i am a new SF student and i am developping a sample app
 there is a problem when i try to to show the page

 the problem is that images in html paage not appears
 this is page
        ul
          li class=currenta href=spanimg SRC=/images/icon-
 home.gif alt=icon /الرئيسية/span/a/li
                  lia href=spanimg SRC=/images/icon-home.gif 
 alt=icon /
التكويد/span/a/li
                  lia href=spanimg SRC=/images/icon-
 ticket.gif alt=icon /المسافات/span/a/li
                  lia href=spanimg SRC=/images/icon-
 people.gif alt=icon /الاتجاهات/span/a/li
                  lia href=spanimg SRC=/images/icon-people.gif
 alt=icon /الفواتير/span/a/li
                  lia href=spanimg SRC=/images/icon-people.gif
 alt=icon /أذون الصرف/span/a/li
                  lia href=spanimg SRC=/images/icon-people.gif
 alt=icon /التقارير/span/a/li
        /ul

 the page located in this root
 !-- apps/frontend/templates/layout.php --

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

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


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

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


Re: [symfony-users] gettable find return value

2010-09-26 Thread Gábor Fási
if ( $rating = 
Doctrine::getTable($tableName)-find($request-getParameter('contentid')))
{
  //we have results
} else {
  //no results
}

On Sun, Sep 26, 2010 at 09:34, Shihab KB shiha...@gmail.com wrote:
 Hi All,

 I am writing a code to find records from a table by using the
 following statement.

 $rating = Doctrine::getTable($tableName)-find($request-
                    getParameter('contentid'));

 echo $rating['name'];

 I want to check the result of find is null or it returned any row. How
 can I do that. Please advice me

 regards
 Shihab

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

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


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

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


Re: [symfony-users] linik trouble

2010-09-23 Thread Gábor Fási
The url_for() helper is environment-aware - it means that it will echo
the correct url for your current environment. In your case, you echoed
a link for the 'user' application in the 'dev' environment, that's why
the url included the user_dev.php filename. If that was your first
application in the project, the 'prod' environment would not include a
filename, and let .htaccess handle the redirection to index.php.

You should always use symfony's Url helpers, that include url_for()
and link_to(). You can find more information about them here:
http://www.symfony-project.org/api/1_4/UrlHelper

I'm afraid I do not understand your other question.

On Thu, Sep 23, 2010 at 15:42, Nova Lina novacant...@gmail.com wrote:
 hi dear all
 im a junior programer and first time using symfony framework 1.4
 i have a trouble with link.somebody can help me to explain what diferent
 source when i coding like this...
  1) a href=?php echo url_for('main/home'); ?Home/a/li
  with
  2) a
 href=http://localhost/sf_sandbox/web/user_dev.php/login/Login;
 title=loginLog in

 but i have a lot of trouble with the first sourcecode.when I can use the
 number one source code? and when I can use the source code number two?

     I made many categories of products in my web, for example when my
 cursor is pointing to over the product category, it will show a list from
 the menu, such as women's shoes, men's shoes, sandals children.
 I think, would require many pages to display multiple images on each of
 these categories, but I want to display only one page, but one page that can
 display multiple images, if you like it, whether I should do the coding in
 the database? or whether symfony has an execute queries that can be easier
 for me in doing it in symfony 1.4? please repp from all of u  who
 understand  my problems for my final project ... thanks ... by nova
 Simak
 Baca secara fonetik



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

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


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

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


Re: [symfony-users] sfDoctrineGuard Problem with data-dump and data-load

2010-09-16 Thread Gábor Fási
http://oldforum.symfony-project.org/index.php/m/83831/

On Thu, Sep 16, 2010 at 16:26, Dirk Conzelmann i...@dirk-conzelmann.de wrote:
 Ok now I found an explanation - the password is encrypted twice.
 Any idea how to prevent the double encryption?

 On 09/16/2010 04:11 PM, Dirk Conzelmann wrote:

 Hi,
 i am having a user in the database
 user: admin
 password: admin

 The mysql table sf_guard_user contains the field password with the
 following content:
 76d4f40a679eb11489c3cd40157c47a867f077ba

 After data-dump and data-load there is the following content inside:
 6aa715f3a428b02e5b10df7633dddb7b3aed9198

 Therefore I am not able to login. Any ideas?



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

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


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

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


Re: [symfony-users] Re: deploy on cPanel shared host

2010-09-12 Thread Gábor Fási
I never used the pear method, let's hope someone else can help you out.
My *guess* is you'll only need to change the required file in your
ProjectConfiguration.

On Sun, Sep 12, 2010 at 13:09, Martin Henits martin.hen...@gmail.com wrote:
 Thanks for the reply.

 the thing is I already have developed my project based on the .tgz
 installation method.
 is there any way to easily convert it to a PEAR installation?

 On Sep 4, 7:07 pm, Gábor Fási maerl...@gmail.com wrote:
 If you check the last mod of that page, you'll see it was 2 years ago.
 Back then installing via pear was the recommended way to go.

 Since sf1.2 (afaik) the best practise is to include symfony under
 lib/vendor for each project.



 On Sat, Sep 4, 2010 at 18:39, Martin Henits martin.hen...@gmail.com wrote:
  Hi,

  I was wondering if it is possible to deploy a project that has been
  developed based on a .tgz symfony installation method (the preferred
  method as mentioned on documents) on a shared cPanel hosting.

  I looked 
  athttp://trac.symfony-project.org/wiki/InstallingSymfonyOnSharedHostNoSsh,
  but it says that symfony installation with PEAR is a requirement.

  any clue?

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

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

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

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


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

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


Re: [symfony-users] Re: Connection to MS sql server

2010-09-10 Thread Gábor Fási
What's the error message? Did you try the dblib driver? Quote from
the php manual:

The DSN prefix is sybase: if PDO_DBLIB was linked against the FreeTDS
libraries, mssql:  if PDO_DBLIB was linked against the Microsoft SQL
Server libraries, or dblib: if linked against any other variety of
DB-lib.

On Fri, Sep 10, 2010 at 11:15, ziclo lauren...@gmail.com wrote:
 Effectively it's a mistake. The good code is below (the problem
 remains the same)
 all:
  doctrine:
    class: sfDoctrineDatabase
    param:
      dsn:      mysql:host=localhost;dbname=tracker
      username: rfghj
      password: jkkhf
  doctrine1:
    class: sfDoctrineDatabase
    param:
      dsn:      mssql:host=localhost;dbname=asadata
      username: rdfgh
      password: dfgjh


 On 9 sep, 18:48, Damon Jones damonljo...@gmail.com wrote:
 You have a double-ell in the database.yml you've posted dsn:
 mssqll:host=localhost;dbname=asadata - is this what the actual file
 has in it?

 On Sep 9, 7:18 am, ziclo lauren...@gmail.com wrote:

  Hi everybody,

  I'm trying to add a new database to my symfony project. One managed by
  mysql and the other by MS SQL server. I get an error about mssql
  driver when i rebuild all (schema, etc..)I do not know which driver to
  use for MS SQL. Here is my database.yml

  An idea ?

  Symfony version : 1.4
  Here is my database.yml

  all:
    doctrine:
      class: sfDoctrineDatabase
      param:
        dsn:      mysql:host=localhost;dbname=tracker
        username: rfghj
        password: jkkhf
    doctrine1:
      class: sfDoctrineDatabase
      param:
        dsn:      mssqll:host=localhost;dbname=asadata
        username: rdfgh
        password: dfgjh

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

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


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

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


Re: [symfony-users] Re: How to remove send.x and send.y parameters from GET url?

2010-09-09 Thread Gábor Fási
You can disable CSRF protection on an individual form by passing false
as the constructor's third parameter.
Send.x and send.y are sent by the browser to indicate where the user
clicked the image.

On Thu, Sep 9, 2010 at 21:10, ScherlOMatic
stefan.scherbich...@gmail.com wrote:
 You are right. I'm using an image button. But that shouldn't be a
 problem, correct?
 The input tag looks like this:
 tag('input', array('src' = '/images/button_send.png', 'alt' = '',
 'tabindex' = 3, 'name' = 'send', 'class' = 'send', 'type' =
 'image'));


 Because I need to see the url parameters for search engine optimation.

 Thx

 On 9 Sep., 21:05, Pietrino Atzeni pietrino.atz...@gmail.com wrote:
 On 09/09/2010 21.01, ScherlOMatic wrote:



  Hello!

  I'm looking for a solution to remove unnecessary parameters from an
  url.

  I created a form with a few widgets and a template which renders the
  form as a GET call.

  Here is the result:
 http://www.domain.com/module/action?widget1=widget2=_csrf_token=dcf...

  How can I remove the send.x, send.y and the csrf parameter from the
  url?

  The function $this-useFields() doesn't change anything.

  Ciao

 Hi,
 are you using an image button?

 Also, why do you need a form to submit a get action?

 Ciao,
 Pietro

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

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


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

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


Re: [symfony-users] Left Join - Column same name

2010-09-09 Thread Gábor Fási
getName will return the name of the object that belongs to the peer
you called doSelect on.

$articles = ArticlePeer::doSelectJoinCategory(new Criteria());
foreach ($articles as $article) {
  echo $article-getName(); //echoes the name of the article
  echo $article-getCategory()-getName(); //echoes the name of the category
}

This works if you have the relation correctly set up in your schema.

On Fri, Sep 10, 2010 at 02:24, Vecsei destruction...@t-online.de wrote:
  Hello,

 when Im doing a left join and now there are two columns with the same name:
 For Example:

 Table:
 Category
 Column: Name
 Table:
 Articles
 Column: Name

 Now there is Name twice.

 How do I call the different Name-Columns?
 getName() wouldnt work for both :D :D

 Thanks for your help
 Regards

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

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


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

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


Re: [symfony-users] Problems after adding standard_helpers: [I18N] in settings.yml

2010-09-02 Thread Gábor Fási
Add the Partial helper to the list.

On Thu, Sep 2, 2010 at 12:19, Javier Garcia tirengar...@gmail.com wrote:
 Hi,

 i have added the line below in settings.yml.

     standard_helpers:   [I18N]

 After that, when i load a page i get this message:

 Fatal error: Call to undefined function include_partial() in
 /opt/lampp/htdocs/rs12/apps/frontend/modules/miembros/templates/indexSuccess.php
 on line 9

 Any idea?

 --
 Javi

 Ubuntu 10.04, sf 1.4

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

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


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

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


Re: [symfony-users] Re: IE8 and isXmlHttpRequest

2010-09-01 Thread Gábor Fási
If you check the code of isXmlHttpRequest, you'll see it is very simple:

return ($this-getHttpHeader('X_REQUESTED_WITH') == 'XMLHttpRequest');

So check if your javascript code sets that header, also check if it
actually gets sent.

On Wed, Sep 1, 2010 at 12:11, HAUSa
jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:
 Yes, but is there someone who can reproduce this?
 Seems like a Symfony bug...!

 On 31 aug, 20:33, Stéphane stephane.er...@gmail.com wrote:
 Compare the http request headers of the firefox's xhr over the ie8's one

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

 On Tue, Aug 31, 2010 at 8:20 PM, HAUSa 

 jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:
  In IE8, my isXmlHttpRequest function doesn't work.
  In my template, I use ?php if(!$sf_request-isXmlHttpRequest()): ?
  to hide content if it is an AJAX call.
  Firefox handles this okay, but IE8 shows the entire template, as well
  as the complete layout again!

  How is this possible? Bug?
  Anyone who knows a fix?

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

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



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

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


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

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


Re: [symfony-users] Re: IE8 and isXmlHttpRequest

2010-09-01 Thread Gábor Fási
Correct - jquery, prototype, mootols - all major ones do. If you use
plain JS, you have to add it yourself.

This is definitely not a symfony bug, if it only fails in ie8.

On Wed, Sep 1, 2010 at 13:49, Benoit Montuelle
benoit.montue...@gmail.com wrote:
 I think most javascript frameworks add this header to the request 
 automatically, I don't know if its done using plain javascript.

 I once had this issue using mootools but it was a bug in our JS code 
 overwriting all http header instead of adding the needed one, and not a 
 symfony bug.

 Regards

 -Original Message-
 From: Gábor Fási maerl...@gmail.com
 Sent: mercredi 1 septembre 2010 12:25
 To: symfony-users@googlegroups.com
 Subject: Re: [symfony-users] Re: IE8 and isXmlHttpRequest

 If you check the code of isXmlHttpRequest, you'll see it is very simple:

    return ($this-getHttpHeader('X_REQUESTED_WITH') == 'XMLHttpRequest');

 So check if your javascript code sets that header, also check if it
 actually gets sent.

 On Wed, Sep 1, 2010 at 12:11, HAUSa
 jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:
 Yes, but is there someone who can reproduce this?
 Seems like a Symfony bug...!

 On 31 aug, 20:33, Stéphane stephane.er...@gmail.com wrote:
 Compare the http request headers of the firefox's xhr over the ie8's one

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

 On Tue, Aug 31, 2010 at 8:20 PM, HAUSa 

 jeroen_heeft_behoefte_aan_r...@hotmail.com wrote:
  In IE8, my isXmlHttpRequest function doesn't work.
  In my template, I use ?php if(!$sf_request-isXmlHttpRequest()): ?
  to hide content if it is an AJAX call.
  Firefox handles this okay, but IE8 shows the entire template, as well
  as the complete layout again!

  How is this possible? Bug?
  Anyone who knows a fix?

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

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



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

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


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

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

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

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


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

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


Re: [symfony-users] [sf1.4][sfDoctrinePlugin] Sluggable canUpdate=false does not work as expected

2010-08-27 Thread Gábor Fási
canUpdate means: if the sluggable field changes, should the slug
change as well, or stay the original? Obviously you can still edit it
manually.

On Fri, Aug 27, 2010 at 16:12, Cyrille37 cyrill...@gmail.com wrote:
 Hello,

 I've just starting to use the Sluggable behavior and set it with
 canUpdate = false.
 Then:
  * I clear the cache
  * re-generate db (doctrine:build --all --sql --db --and-load)
  * re-generate the admin (doctrine:generate-admin x x)

 But the admin form still have a field for the slug field, and I can
 change it and save the record without error.

 Perhaps I've don't understand the canUpdate option ???

 Thanks for help
 Cyrille

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

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


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

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


Re: [symfony-users] Re: Send Mails

2010-08-24 Thread Gábor Fási
That means it is not properly configured - no wonder you cannot send emails.
The message says that your smtp server needs encryption, most probably
the same applies for authentication. Check its manual how to set it
up.

On Tue, Aug 24, 2010 at 09:43, vero vegoi...@alumni.uv.es wrote:
 And I use a sendmail.exe, that I have download, to solution a warning
 Warning: mail() [function.mail]: SMTP server response: 530 5.7.0 Must
 issue a STARTTLS command first 

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

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


Re: [symfony-users] Re: Send Mails

2010-08-24 Thread Gábor Fási
Your problem is still with the encryption, I'm not sure php's mail()
can handle that.

Why can't you upgrade to 1.3? I did that, and it was pretty easy. I
did the 1.2-1.3 switch in about two hours, and now I have the full
power of swift mailer, and I am using it with gmail's smtp.

On Tue, Aug 24, 2010 at 14:48, vero vegoi...@alumni.uv.es wrote:
 It's impossible. I don't know how send an email at all.
 I have tried everything but no email arrive to inbox.
 I will have to decided what to do in that part of my project.

 Thanks to all for trying to help me.

 On 24 ago, 09:51, Gábor Fási maerl...@gmail.com wrote:
 That means it is not properly configured - no wonder you cannot send emails.
 The message says that your smtp server needs encryption, most probably
 the same applies for authentication. Check its manual how to set it
 up.

 On Tue, Aug 24, 2010 at 09:43, vero vegoi...@alumni.uv.es wrote:
  And I use a sendmail.exe, that I have download, to solution a warning
  Warning: mail() [function.mail]: SMTP server response: 530 5.7.0 Must
  issue a STARTTLS command first 

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

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


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

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


Re: [symfony-users] Problems when creating database

2010-08-24 Thread Gábor Fási
It means the password you entered is wrong.

On Tue, Aug 24, 2010 at 17:44, Marcio Pozzato mspozz...@gmail.com wrote:
 Please,
 I can't create database through 'mysqladmin create jobeet -uroot -p',
 included at the Day 3 - Tutorial Symfony.
 MySql returns the following error message: connect to server at
 'localhost' failed error: 'Access denied for user 'root'@'localhost'
 using passowrd: YES'
 what means?
 Thanks for a lot.
 Marcio Pozzato

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

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


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

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


Re: [symfony-users] using same template in different applications

2010-08-23 Thread Gábor Fási
Put it in a plugin.

On Mon, Aug 23, 2010 at 16:07, axel at axel.zu...@gmail.com wrote:
 is it possible to use a template in several different applications of
 the same project?

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

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


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

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


Re: [symfony-users] creation tables MySql avec doctrine (Jobeet)

2010-08-20 Thread Gábor Fási
You need to enable the pdo and pdo_mysql modules in your php.ini. Keep
in mind that your httpd and cli may use different ini files.

On Fri, Aug 20, 2010 at 11:26, bibob olivier.bib...@cnfpt.fr wrote:
 Bonjour,
 au lancement de la commande : php symfony doctrine:insert-sql j'ai un
 message d'erreur : Couldn't locate driver named mysql

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

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


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

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


Re: [symfony-users] schema modified but same old database

2010-08-19 Thread Gábor Fási
./symfony doctrine:clean-model-files

On Thu, Aug 19, 2010 at 10:34, KEY5 key5...@gmail.com wrote:
 Hello,

 I have changed some things in the schema.yml
 and cleared cache ( both symfony cache:clear and symfony cc  :-D )

 I've rebuilt the model, I've done symfony doctrine:build --sql

 yet the same database is recreated, (deleted tables are back every time...)


 What am I missing?

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

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


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

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


Re: [symfony-users] Tuto Jobeet

2010-08-12 Thread Gábor Fási
They were created with Balsamiq mockups,
http://www.balsamiq.com/products/mockups

On Thu, Aug 12, 2010 at 17:12, Seb colladonsebast...@gmail.com wrote:
 Hy everyone,

 I have a little question about this tuto : 
 http://www.symfony-project.org/jobeet/1_4/Doctrine/en/02
 How do they do to make the Interface's prototype (I mean what
 programme do they use) ?

 thanks !!

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

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


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

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


Re: [symfony-users] Question about form and redirect

2010-08-12 Thread Gábor Fási
That only applies to stuff like posting to a blog or a forum - when
reloading the page does harm, for example by duplicating content. It
is ok to not redirect in case of a search.

On Thu, Aug 12, 2010 at 22:12, Stef stephane.bachel...@gmail.com wrote:




 On Wed, Aug 11, 2010 at 6:44 PM, Gábor Fási maerl...@gmail.com wrote:

 Why don't you directly post your data to the search action? You can
 validate and do the search there.


 I've read that you should do a redirect when a form was submitted by POST.
 If I redirect I've managed to access the submitted data

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

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


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

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


Re: [symfony-users] Question about form and redirect

2010-08-11 Thread Gábor Fási
Why don't you directly post your data to the search action? You can
validate and do the search there.

On Wed, Aug 11, 2010 at 18:06, Stef stephane.bachel...@gmail.com wrote:
 Hello,
 I have a search form which inherits from sfForm. When the form is post
 submitted it is validated then redirected to the action executeSearch()
 The problem I have is that I don't have access to data in the
 executeSearch() method.
 I understand that I can use http_query_build when doing the redirection but
 I not convinced by this solution as all parameters are separated by / .

 Am I missing something?

 Stéphane

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

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


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

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


Re: [symfony-users] L18N helper not extracting strings in forms !

2010-08-09 Thread Gábor Fási
This is a known limitation of i18n:extract, it only works on templates.
Also, you need not call __() on form stuff, they are automatically done.

On Mon, Aug 9, 2010 at 19:49, Tristan tristan.bessou...@gmail.com wrote:
 Hello,

 i've followed an user advice with loading l18N helper this way :

 class stPlayerCvForm extends BasestPlayerCvForm
 {
        public function configure()
        {
                ProjectConfiguration::getActive()-loadHelpers( array( 'I18N' 
 ) );

                $this-removeFields();

                $this-widgetSchema-setLabels(array(
                'category'    = __('Qui suis-je ?'),
                 'game_id'   = __('Jeu'),
                 'url_esl'   = __('URL profil détaillé'),
                 
     }
 
 }


 After a php symfony i18n:extract --auto-save  frontend en , no new
 string found and i cannot find this strings in my /en/messages.xml

 If anyone could help, it would be appreciated. Thanks

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

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


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

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


Re: [symfony-users] The requested URL was not found on this server. ERROR

2010-08-09 Thread Gábor Fási
You need to enable mod_rewrite in your apache configuration. Besides
enabling the module, you also need to allow using it in your
VirtualHost configuration, with an AllowOverride directive.

On Mon, Aug 9, 2010 at 22:38, el-sid sydneyari...@gmail.com wrote:
 hello,
 i am trying to test out how my app should behave in a production
 environment so this is what i did.
 In my settings.yml i set this

 prod:
  .settings:
    no_script_name:         true
    logging_enabled:        false

 i modified my htaccess file to look like this


    Options +FollowSymLinks +ExecCGI

    IfModule mod_rewrite.c
      RewriteEngine On

      # uncomment the following line, if you are having trouble
      # getting no_script_name to work
      #RewriteBase /

       # we skip all files with .something
        RewriteCond %{REQUEST_URI} \..+$
        RewriteCond %{REQUEST_URI} !\.html$
        RewriteRule .* - [L]

      # we check if the .html version is here (caching)
      RewriteRule ^$ index.html [QSA]
      RewriteRule ^([^.]+)$ $1.html [QSA]
      RewriteCond %{REQUEST_FILENAME} !-f

      # no, so we redirect to our front web controller
      RewriteRule ^(.*)$ index.php [QSA,L]
    /IfModule

 and my index.php looks like this

    require_once(dirname(__FILE__).'/../config/
 ProjectConfiguration.class.php');

    $configuration =
 ProjectConfiguration::getApplicationConfiguration('portal', 'prod',
 false);
    sfContext::createInstance($configuration)-dispatch();




 when i put this address

 http://127.0.0.1:8080/ it works perfectly
 when i put this
 http://uia:8080/module/action

 it gives me this 404 error
 The requested URL/module/action was not found on this server.

 when i include the index.php as in
 http://127.0.0.1:8080/index.php/module/action it works.

 Anyone knows whats causing this error? What am i missing?

 i googled it and found a similar problem in these forums:
 http://oldforum.symfony-project.org/index.php/m/42318/
 but no concrete solutions

 Thanks

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

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


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

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


Re: [symfony-users] propel-build-model not making models

2010-07-29 Thread Gábor Fási
What's the output of the task? Also, use propel:build-model instead.

On Thu, Jul 29, 2010 at 15:00, Siameseguy abdalra...@gmail.com wrote:
 Hi, im new to symfony and am running into a problem.  i have just
 built a schema and tried using the propel-build-model command, but
 its not creating anything.  Any suggestions?

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

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


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

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


Re: [symfony-users] Simple Display Problem

2010-07-27 Thread Gábor Fási
Your email address doesn't come as 'email', it comes as
'formname[email]' - this is why you can bind with
$request-getParameter($form-getName()). You might want to try
`$form-getValue(email)`, it will return the cleaned email address.

On Tue, Jul 27, 2010 at 21:31, Andro Fumero fugitive...@yahoo.com wrote:
 Hi guys,

 Please bare with me with my simple problem,i'm just new in symfony, but i
 haven't solved this one for the whole day.

  protected function processForm(sfWebRequest $request, sfForm $form)
   {
     $form-bind($request-getParameter($form-getName()),
 $request-getFiles($form-getName()));
     if ($form-isValid())
     {
     //HERE IS THE DISPLAY
     //I JUST WANT TO DISPLAY THE EMAIL THAT USER SAVE BUT ITS EMPTY AS
 ALWAYS
     $this-getUser()-setFlash('notice', sprintf('Here is your email
 (%s).', $request-getParameter('email')));

     $member = $form-save();
     $this-redirect('member/edit?id='.$member-getId());
     }

 Thanks


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

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


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

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


Re: [symfony-users] sfGuardPlugin: checking username with regex

2010-07-26 Thread Gábor Fási
It works, your expression is wrong. Try '/^[a-zA-Z]{1,}[a-zA-Z0-9]$/'.

On Mon, Jul 26, 2010 at 15:34, mlu...@gmail.com mlu...@gmail.com wrote:
 Hi!

 In my app i am using sfGuardPlugin. I have extended the class
 sfGuardUserForm to build my own registration form class. In the
 overridden configure method I have code below to define the rules for
 the username:

 $this-setValidator('username',
  new sfValidatorAnd(
    array(
      new sfValidatorString(
        array(
            'required' = true,
            'max_length' = 64,
            'min_length' = 4
        ),
        array(
            'invalid' = The username isn't available.,
            'required' = 'Please enter a username.',
            'max_length' = 'The username can not be longer than
 %max_length% characters.',
            'min_length' = 'The username can not be shorter than
 %max_length% characters.'
        )
      ),
      new sfBlacklistValidator(
        array('listed_error' = The username '%value%' isn't
 available. )
      ),
      new sfValidatorRegex(
        array(
          'pattern' = '/[a-zA-Z]{1,}[a-zA-Z0-9]/'
        ),
        array(
          'invalid' = Your username isn't valid. Please start with a
 character and use characters from a to z and numbers only.
        )
      )
    )
  )
 );

 I want the username to begin with an character followed by any number
 of characters ot numbers, but the RegexValidator doesn't seen to work,
 because I can register the username 0 which is starting with a
 zero.

 Any ideas what I am doing wrong?

 regards,

 michael

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

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


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

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


Re: [symfony-users] Re: latest verion of sfForkedDoctrineApplyPlugin is broken

2010-07-26 Thread Gábor Fási
Did you clear your cache? Did you rebuild your models?

On Mon, Jul 26, 2010 at 15:06, Tristan tristan.bessou...@gmail.com wrote:
 it broke everything :

 even after removing the plugin, i stil have this message.

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

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


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

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


  1   2   3   4   >