Re: [symfony-users] Re: Determine sfGuardPermission required for action, from within an action or filter

2010-07-02 Thread Daniel Lohse
Have a look at the bundled filters, you'll find your answers there. :)

Daniel

On 02.07.2010, at 02:24, Donald Tyler wrote:

 Excellent, thanks for the pointer.
 
 Now, it would be perfect if I could do the same from within a filter. Is 
 there a similar method I can use, or is there a way to access the action 
 object from within a filter?
 
 On Thu, Jul 1, 2010 at 1:59 AM, Tom Ptacnik to...@tomor.cz wrote:
 Try this http://www.symfony-project.org/api/1_4/sfAction#method_getcredential
 
 On 30 čvn, 14:49, Donald chekot...@gmail.com wrote:
  I'm trying to determine what sfGuardPermission was required for an
  action, from within the action. Is this possible?
 
  myModule/config/security.yml:
 
  show:
credentials: view something
 
  myModule/actions/actions.class.php:
 
  class myModuleActions extends sfActions {
public function executeShow(sfRequest $request) {
  // determine required credential... (view something)
}
 
 
 
  }
 
 --
 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


[symfony-users] Re: Output a excel file with phpexcel

2010-07-02 Thread bfuhne
You didnt show the part where you are writing your data to the sheet,
so it is hard to tell why it is empty. Make sure you are setting and
referencing the active sheet:

$objPHPExcel-setActiveSheetIndex($activeSheet);
$objPHPExcel-getActiveSheet()-setCellValue($column, $row, $value);

I am using phpexcel and symfony to output data as well, but I write
the file to disk and then present a link to the file:

$objWriter = new PHPExcel_Writer_Excel5($objPHPExcel);
$objWriter-save($filename..xls);

That works without setting the content headers, maybe that is a
solution for you as well, or at least you can ensure that the  data is
written correctly to your excel file.

On Jun 25, 9:43 pm, diana catalina tobar lara
catalina.tobar.l...@gmail.com wrote:
 Hi i have a problem i'm new in symfony, I'm from ecuador sorry if my
 english is not good

 i'm using phpexcel to output a excel file but i'm not using the plugin
 for symfony sfExcelReaderPlugin, i just download the classes from
 phpexcel page and paste it in the lib directory. My problem is that
 when I want to download the file, appear the window in the browser
 asking me if i want to open the exportExcel.xls file, iput open and it
 open me excel, but appear a window with a warning that show this
 message:

 The file you are trying to open, 'exportExcel.xls' has a different
 format than specified by the file extension. Verify that file is not
 corrupted and is from a trusted source before opening. Wish you open
 the file now?

 I open the file but it doesn't have nothing the excel is blank.

 PLease anyone can help me I don't know what to do. This is my code:

 public function executeAscensoPromedios(sfWebRequest $request)
   {

 /** PHPExcel */
 include sfConfig::get('sf_lib_dir').'/PHPExcel_Classes/PHPExcel.php';
 include sfConfig::get('sf_lib_dir').'/PHPExcel_Classes/PHPExcel/Writer/
 Excel5.php';

 $this-setLayout(false);
 // Create new PHPExcel object

 $objPHPExcel = new PHPExcel();

 /
 HERE I USE PHP EXCEL TO GENERATE MY EXCEL FILE

 */
 $this-getResponse()-clearHttpHeaders();
 $this-getResponse()-setHttpHeader('Content-Type:','application/
 msexcel');
 $this-getResponse()-setHttpHeader('Content-
 Disposition:','attachment; filename=exportExcel.xls');
 // Save Excel 5 file
 $error_reporting = error_reporting(0);
 $objWriter = new PHPExcel_Writer_Excel5($objPHPExcel);
 $xls_data = $this-renderText($objWriter-save());

 error_reporting($error_reporting);
 return $xls_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


[symfony-users] Re: Important sfDoctrineApplyPlugin news

2010-07-02 Thread lambert_b
Hi Tom,
Great news! We had a discussion already half a year ago on this topic.
Did not have the time to do it myself as I was full of deadline
projects.

Had a peak in de code, and have a small request: Can you enhance the
schema.yml also with a 'middle_name'? In Holland, and maybe other
countries, we have these akward names like
'Jan de Jong', where 'de' should not be in the last name, e.g. it
should be sorted on 'Jong'.

Maybe you can make an app_setting for it. Or I can commit some code
for it. Let me know,

Thanks, Lambert

On Jul 1, 9:28 pm, Tom Boutell t...@punkave.com wrote:
 The svn trunk of sfDoctrineApplyPlugin will soon contain bleeding edge
 code. You should NOT pin the svn:externals of your project to the
 trunk.

 Instead, you may pin them to the new 1.1 branch, which contains the
 stable release you're used to. Change your externals to read like so:

 sfDoctrineApplyPluginhttp://svn.symfony-project.com/plugins/sfDoctrineApplyPlugin/branches...

 You could also pin them to the new 1.2 branch, but that would require
 considerable work on your part (read on).

 I will leave the trunk in its current boring state for one month to
 give folks a chance to take notice of this change. I have also placed
 a warning file in the trunk.

 Development of the 1.2 branch is quite far along, and in fact there's
 a fully working version in the 1.2 branch now, with the following
 major changes, many of which are breaking changes unless you do some
 migration work on your database:

 * Relies on extension of the sfGuardUser table rather than a profile
 class for better database normalization
 * Forms are now empty extensions of Base versions so you can do the
 usual Symfony thing to override them at the project level (you can
 also use my app.yml approach)
 * Forwards and backwards compatible with sfDoctrineGuardPlugin's
 current stable release and its new trunk version
 * First name, last name and email address fields now consistent with
 sfDoctrineGuardPlugin's new trunk
 * Uses Symfony's built-in SwiftMailer support, removing the Zend
 Framework requirement

 FAQs:

 But I'm already using it and I don't want to make changes!

 Don't. Keep using the 1.1 branch. Upgrading is pretty tough, in
 particular because the old version only has a fullname field and you
 have to migrate fields from profile to sfGuardUser.

 But sfDoctrineGuardPlugin's new trunk has its own register feature!

 Yes, but it has no email confirmation of new accounts, so it does not
 currently meet the needs of most sites that are currently using the
 apply plugin.

 Doesn't sfDoctrineGuardPlugin's trunk have its own Forgot Password
 feature?

 Yes, and it does do email confirmation. It's pretty much equivalent to
 the same feature in the apply plugin. Use it if you like it.

 What is the future of sfDoctrineApplyPlugin?

 We'll see! If sfDoctrineGuardPlugin incorporates email confirmation
 for new accounts, it might not be necessary to maintain a separate
 plugin anymore.

 Do I have to use the svn trunk of sfDoctrineGuardPlugin?

 No. sfDoctrineApplyPlugin's 1.2 branch works with both the 1.3 branch
 (aka the 1.4.x release versions) *and* the trunk of the guard plugin,
 thanks to schema merging.

 When will a stable 1.2 release appear?

 Shouldn't be long, since we need this in a finalized form for our own
 projects.

-- 
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: Important sfDoctrineApplyPlugin news

2010-07-02 Thread Daniel Lohse
You can add this in your project's schema.yml, once it's released. :)

Cheers, Daniel

On 02.07.2010, at 10:34, lambert_b wrote:

 Hi Tom,
 Great news! We had a discussion already half a year ago on this topic.
 Did not have the time to do it myself as I was full of deadline
 projects.
 
 Had a peak in de code, and have a small request: Can you enhance the
 schema.yml also with a 'middle_name'? In Holland, and maybe other
 countries, we have these akward names like
 'Jan de Jong', where 'de' should not be in the last name, e.g. it
 should be sorted on 'Jong'.
 
 Maybe you can make an app_setting for it. Or I can commit some code
 for it. Let me know,
 
 Thanks, Lambert
 
 On Jul 1, 9:28 pm, Tom Boutell t...@punkave.com wrote:
 The svn trunk of sfDoctrineApplyPlugin will soon contain bleeding edge
 code. You should NOT pin the svn:externals of your project to the
 trunk.
 
 Instead, you may pin them to the new 1.1 branch, which contains the
 stable release you're used to. Change your externals to read like so:
 
 sfDoctrineApplyPluginhttp://svn.symfony-project.com/plugins/sfDoctrineApplyPlugin/branches...
 
 You could also pin them to the new 1.2 branch, but that would require
 considerable work on your part (read on).
 
 I will leave the trunk in its current boring state for one month to
 give folks a chance to take notice of this change. I have also placed
 a warning file in the trunk.
 
 Development of the 1.2 branch is quite far along, and in fact there's
 a fully working version in the 1.2 branch now, with the following
 major changes, many of which are breaking changes unless you do some
 migration work on your database:
 
 * Relies on extension of the sfGuardUser table rather than a profile
 class for better database normalization
 * Forms are now empty extensions of Base versions so you can do the
 usual Symfony thing to override them at the project level (you can
 also use my app.yml approach)
 * Forwards and backwards compatible with sfDoctrineGuardPlugin's
 current stable release and its new trunk version
 * First name, last name and email address fields now consistent with
 sfDoctrineGuardPlugin's new trunk
 * Uses Symfony's built-in SwiftMailer support, removing the Zend
 Framework requirement
 
 FAQs:
 
 But I'm already using it and I don't want to make changes!
 
 Don't. Keep using the 1.1 branch. Upgrading is pretty tough, in
 particular because the old version only has a fullname field and you
 have to migrate fields from profile to sfGuardUser.
 
 But sfDoctrineGuardPlugin's new trunk has its own register feature!
 
 Yes, but it has no email confirmation of new accounts, so it does not
 currently meet the needs of most sites that are currently using the
 apply plugin.
 
 Doesn't sfDoctrineGuardPlugin's trunk have its own Forgot Password
 feature?
 
 Yes, and it does do email confirmation. It's pretty much equivalent to
 the same feature in the apply plugin. Use it if you like it.
 
 What is the future of sfDoctrineApplyPlugin?
 
 We'll see! If sfDoctrineGuardPlugin incorporates email confirmation
 for new accounts, it might not be necessary to maintain a separate
 plugin anymore.
 
 Do I have to use the svn trunk of sfDoctrineGuardPlugin?
 
 No. sfDoctrineApplyPlugin's 1.2 branch works with both the 1.3 branch
 (aka the 1.4.x release versions) *and* the trunk of the guard plugin,
 thanks to schema merging.
 
 When will a stable 1.2 release appear?
 
 Shouldn't be long, since we need this in a finalized form for our own
 projects.
 
 -- 
 If you want to report a vulnerability issue on symfony, please send it to 
 security at symfony-project.com
 
 You received this message because you are subscribed to the Google
 Groups symfony users group.
 To post to this group, send email to symfony-users@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en

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

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


[symfony-users] Re: Determine sfGuardPermission required for action, from within an action or filter

2010-07-02 Thread Tom Ptacnik
I suggest to send this to a filter object as a parametter - pass it to
the filter object in the action.


On 2 čnc, 02:24, Donald Tyler chekot...@gmail.com wrote:
 Excellent, thanks for the pointer.

 Now, it would be perfect if I could do the same from within a filter. Is
 there a similar method I can use, or is there a way to access the action
 object from within a filter?



 On Thu, Jul 1, 2010 at 1:59 AM, Tom Ptacnik to...@tomor.cz wrote:
  Try this
 http://www.symfony-project.org/api/1_4/sfAction#method_getcredential

  On 30 čvn, 14:49, Donald chekot...@gmail.com wrote:
   I'm trying to determine what sfGuardPermission was required for an
   action, from within the action. Is this possible?

   myModule/config/security.yml:

   show:
     credentials: view something

   myModule/actions/actions.class.php:

   class myModuleActions extends sfActions {
     public function executeShow(sfRequest $request) {
       // determine required credential... (view something)
     }

   }

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

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

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


[symfony-users] Re: Warning: glob() [function.glob]: Unable to access .../plugins/xxxPlugin/modules/* when modules directory doesn't exist

2010-07-02 Thread Tom Ptacnik
5.2.4

(sorry I didn't mention it ;)

On 1 čnc, 16:27, axe ca...@centrum.cz wrote:
 what version of PHP do you use?

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

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


[symfony-users] Re: Use database in app.yml

2010-07-02 Thread Tom Ptacnik
I'm not sure it's possible to do it this way.

Why do you want to insert some configuration into the app.yml from
database? For what do you need this configuration setting?



On 1 čnc, 14:51, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com
wrote:
 I want to use some configuration settings from the database in my
 app.yml configuration file.
 This is my code now:

 all:
 ?php foreach(SettingPeer::getIndex() as $oSetting): ?
   ?php echo $oSetting-getSlug() . ': ' . $oSetting-getValue() ?
 ?php endforeach; ?

 But the error I receive says No connection information in your
 runtime configuration file for datasource [propel]

 What should I do to make this happen?
 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


Re: [symfony-users] Re: Use database in app.yml

2010-07-02 Thread Daniel Lohse
I'd probably go with a plugin that handles dynamic and configurable settings 
that live in a database, like csSettingsPlugin. :)


Cheers, Daniel

On 02.07.2010, at 11:41, Tom Ptacnik wrote:

 I'm not sure it's possible to do it this way.
 
 Why do you want to insert some configuration into the app.yml from
 database? For what do you need this configuration setting?
 
 
 
 On 1 čnc, 14:51, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com
 wrote:
 I want to use some configuration settings from the database in my
 app.yml configuration file.
 This is my code now:
 
 all:
 ?php foreach(SettingPeer::getIndex() as $oSetting): ?
   ?php echo $oSetting-getSlug() . ': ' . $oSetting-getValue() ?
 ?php endforeach; ?
 
 But the error I receive says No connection information in your
 runtime configuration file for datasource [propel]
 
 What should I do to make this happen?
 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: Determine sfGuardPermission required for action, from within an action or filter

2010-07-02 Thread Donald Tyler
Doh! Why didn't I think of that?

sfBasicSecuritFilter-getUserCredential() seems to have what I need.

Thanks for the help!

On Fri, Jul 2, 2010 at 1:26 AM, Daniel Lohse
annismcken...@googlemail.comwrote:

 Have a look at the bundled filters, you'll find your answers there. :)

 Daniel

 On 02.07.2010, at 02:24, Donald Tyler wrote:

 Excellent, thanks for the pointer.

 Now, it would be perfect if I could do the same from within a filter. Is
 there a similar method I can use, or is there a way to access the action
 object from within a filter?

 On Thu, Jul 1, 2010 at 1:59 AM, Tom Ptacnik to...@tomor.cz wrote:

 Try this
 http://www.symfony-project.org/api/1_4/sfAction#method_getcredential

 On 30 čvn, 14:49, Donald chekot...@gmail.com wrote:
  I'm trying to determine what sfGuardPermission was required for an
  action, from within the action. Is this possible?
 
  myModule/config/security.yml:
 
  show:
credentials: view something
 
  myModule/actions/actions.class.php:
 
  class myModuleActions extends sfActions {
public function executeShow(sfRequest $request) {
  // determine required credential... (view something)
}
 
 
 
  }

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


[symfony-users] automated response

2010-07-02 Thread Saad Tazi | Twist Image
Merci de votre message.

Je suis présentement absent du bureau. Je serai de retour le 5 juillet 2010. 
L'accès à mes courriels pourrait être limité durant cette période.

En cas d'urgence, veuillez contacter Tisha au 514 987-9992 #150 ou par courriel 
à ti...@twistimage.com. 

Cordialement,

Saad Tazi

- - - - - - - - - - - - -

Thank you for your message.

I am currently out of the office and will return on Monday July 5th. I will 
have limited access to my e-mail during this period.

For urgent matters, please contact Tisha at 514 987-9992 #150 or email 
ti...@twistimage.com.

Best regards,


Saad Tazi | Senior Web Developer
Twist Image | www.twistimage.com
T - 514 987 9992 x.158
407, rue McGill, 2e étage, Montréal (Québec) H2Y 2G3

-- 
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] Create sfGuard user in production environment

2010-07-02 Thread Mariano Sola
thanks Mariuz for your answer!

my problem is that in the production server I have no rights to execute
commands, just ftp access. So, I think I need some kind of php file which
let me to configure it in order to run an insert statement (or something
similar) to create that user.

is it clear?

On Thu, Jul 1, 2010 at 7:34 PM, Mariusz Sasinski sasin...@weboticx.comwrote:

 Mariano,
 You can do it from the command line
 php symfony guard:create-user your_email username password
 php symfony guard:promote username

 to view all options just execute

 php symfony list guard

 Mariusz Sasinski

 On Thu, Jul 1, 2010 at 2:10 PM, Mariano Sola mariano.s...@gmail.com
 wrote:

I'd like to ask you for some help with a production migration of a
 symfony
 1.4 project with the sfGuard plugin installed.

I have created tables on the dababase (model and sfGuard ones) of
 production environment, but I wasn't be able to create an admin user in
 order
 to log in into the application.

I saw that the password column of the sfGuardUser is encrypted so I
 can't
 do a simple insert statement to create it.

Does somebody know how to solve it?

thanks in advance!
mariano ::

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

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to

 symfony-users+unsubscr...@googlegroups.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.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


[symfony-users] Re: Sending mail from a Form class.

2010-07-02 Thread cosmy
On 2 Lug, 05:58, pghoratiu pghora...@gmail.com wrote:
 From the first one the actual send is missing:

                   // send the email
                   $this-getMailer()-send($mail);

     gabriel


It still doesn't work..

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

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


[symfony-users] Re: Important sfDoctrineApplyPlugin news

2010-07-02 Thread Massimiliano Arione
On 1 Lug, 21:28, Tom Boutell t...@punkave.com wrote:
 * Forms are now empty extensions of Base versions so you can do the
 usual Symfony thing to override them at the project level (you can
 also use my app.yml approach)

Is there any specific reason for not using the standard prefix
Plugin, e.g. PluginFooBarForm?
Don't you think that prefix Base could lead to confusion with
generated forms?

cheers
Massimiliano

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

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


[symfony-users] Re: Sending mail from a Form class.

2010-07-02 Thread Johannes
doSave() is probably not the right place since it never gets called if
you embed the PostForm somewhere.

Johannes

On Jul 2, 3:12 pm, cosmy c.zec...@gmail.com wrote:
 On 2 Lug, 05:58, pghoratiu pghora...@gmail.com wrote:

  From the first one the actual send is missing:

                    // send the email
                    $this-getMailer()-send($mail);

      gabriel

 It still doesn't work..

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

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


[symfony-users] Comment ajouter des attributs pour chaque checkbox d'un sfWidgetFormChoice ?

2010-07-02 Thread François
Bonjour à tous,

Imaginons que dans mon cas j'ai un tableaux d'objets $check, tous
les objets ont une méthode getValeur() qui me rend leurs valeur,
valeur qui est soit true, soit false.
Je veux donc mettre en place des checkbox, et bien sur, si la valeur
est à true, la case sera coché.

Vu que je n'ai rien trouvé, j'ai essayé pas mal de choses, dont ça :

$this-setWidget('test', new sfWidgetFormChoice(
array(
'multiple'  = true,
'expanded'  = true,
'choices'   = array(
'test',
'test2')
),
array(
'checked'   =  
$check[0]-getValeur(),
'checked'   =  
$check[1]-getValeur()
)
));

Comme vous vous en doutez, ça ne marche pas (seul la dernière valeur
sera prise en compte et sera appliqué à tous les checkbox :/).
Bref, je cherche donc comment faire en sorte que mes checkboxes soient
cochés lorsque leur valeur est true.

Merci

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

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


[symfony-users] Question about set/get methods of model classes

2010-07-02 Thread Javier Garcia
Hi,

why the get and set methods of the model classes are created on the
air, instead of generating them when the model class is created? is
there any advantage?

--
Javi

Ubuntu 8.04 - Symfony 1.3

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

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


[symfony-users] Question about the Front Controller

2010-07-02 Thread Javier Garcia

Hi,

in the manual this is written about the Front Controller:

Load and initiate the core framework classes.

What does it mean exactly with load ?


--

Javi

Ubuntu 8.04 - Symfony 1.3

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

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


[symfony-users] Question about set/get methods of model classes

2010-07-02 Thread Javier Garcia
Hi,

why the get and set methods of the model classes are created on the
air, instead of generating them when the model class is created? is
there any advantage?

--
Javi

Ubuntu 8.04 - Symfony 1.3

-- 
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 2 - anything like grails?

2010-07-02 Thread Bernhard Schussek
Hi,

As I am not familiar with Grails, could you explain what you would
like to see in Symfony2?

You can find both a quick tutorial for Symfony2 and more documentation
on the new components on http://symfony-reloaded.org

Bernhard

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

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


[symfony-users] Re: i18n doubts backend generator

2010-07-02 Thread fRAnKEnSTEin
HI,

Thank you. I was using as third parameter sf_admin.es.xml instead
sf_admin.

Cheers



On Jul 1, 10:11 pm, Gábor Fási maerl...@gmail.com wrote:
 You also need to pass a third parameter, a catalog - in your case it
 is 'sf_admin'. The default is 'messages', so unless you specify
 otherwise, symfony is looking for a translation in the 'messages'
 file.



 On Thu, Jul 1, 2010 at 21:03, fRAnKEnSTEin shirkav...@gmail.com wrote:
  hi there,

  I have added i18n support to my app's backend(generated using backend
  generator ), following next steps:

  1- Create folder called i18n in my app's backeng folder
  2- Copy/paste file called sf_admin.es.xml to  i18n folder just
  created
  3- Set in apps/backend/config/settings.yml

  ...
  all:
   .settings:
         ...
         ...
         standard_helpers: ['Partial', 'I18N', 'Cache']
         i18n: true
         ...

  Now when i chage the language using the combobox, the language changes
  in all admin generator different parts, but the menu options that i
  have in my app like:

   ?php echo link_to( __('Reservations'), '@something') ?

  does not. in fact nothing but adim generator specific parts are
  translated(like filter section etc). for example if i just put some
  text like:

  ?php echo __('Reservations') ?

  It does not work ether.

  Any idea why?

  Cheers

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

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

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

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


[symfony-users] sfguardplugin i18n login page

2010-07-02 Thread fRAnKEnSTEin
Hi,

I am using  sfguardplugin for everything related to credentials at
the backend(generated with the backend generator). I have added a
combobox language selector based on Jobbet's tutorial, and everything
works fine.

The only problem i got is the login page generated by the pluggin,
eveytime i try to change the language it does not worck,  the post
generated by the combobox to the action:

www.mysite.com/backend_dev.php/change_language?

never be executed. Is like somewhere the plugin intercepts the post
and avoid the execution of if.

After changing the language the url becomes to:

http://www.mysite.com/backend_dev.php/change_language?language=en_csrf_token=xx

As you can see the redirection that has the change_language action
is necer executed.

Any idea?

Cheers

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

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


[symfony-users] Re: Create sfGuard user in production environment

2010-07-02 Thread fRAnKEnSTEin
Mariano,

Do you have access to the database? for example using phpmyadmin or
something?

Cheers

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

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


[symfony-users] Custom Column Sort

2010-07-02 Thread Aanchal Gera
Hi

I am using Admin Generator and i have some custom fields in my list
display. I displayed them easily using table_method but I can not make
them clickable and sortable.

Can some one please give some pointers. I am stuck on this since 2
days :-(

I read that we can override processSort and addSortCriteria but I
don't see these methods in the main actions.php or the actions.php in
cache.

Any guidance on how to proceed on this would be really appreciated.

Thanks a ton,
Aanchal

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

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


[symfony-users] Symfony and Encrypted Data Postgresql

2010-07-02 Thread Catherine Aspee
Hello list,

I would like to store some encrypted data in my Postgresql database through
a Symfony application, but at the server side.
I'd like to know if there is some way to use the pgcrypto module of
postgresql used to encrypt this data with Symfony and Propel.
Or if there is some plugin that could work for encrypting some fields of my
database's tables.

Thanks!

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

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


[symfony-users] Re: Custom Column Sort

2010-07-02 Thread Richtermeister
Hey there,

if you're using Propel, you're in luck, the option to sort on custom
columns has just been added and works great.

http://trac.symfony-project.org/browser/plugins/sfPropel15Plugin/trunk/doc/admin_generator.txt

Daniel



On Jul 2, 3:37 am, Aanchal Gera aanchal.g...@gmail.com wrote:
 Hi

 I am using Admin Generator and i have some custom fields in my list
 display. I displayed them easily using table_method but I can not make
 them clickable and sortable.

 Can some one please give some pointers. I am stuck on this since 2
 days :-(

 I read that we can override processSort and addSortCriteria but I
 don't see these methods in the main actions.php or the actions.php in
 cache.

 Any guidance on how to proceed on this would be really appreciated.

 Thanks a ton,
 Aanchal

-- 
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