Re: [symfony-users] Re: migrations trouble: sfpropelmigrationslightplugin

2010-04-27 Thread Parijat Kalia
Hey Eno/Ajay..and everyone else who is interested in this post (:)).

Here is one another post to the multitude of posts that I have been
posting...my problem is not resolved yet...and thanks for your patience and
consideration to help me out:

here is what I did:

*php symfony publish:assets  --- No tasks defined for the publish
namespace
*
*php symfony plugin:list --
Installed
sfPropelMigrationsLightPlugin   1.1.3-stable #pear.symfony-project.com(symfony)
symfony 1.2.9-stable #pear.symfony-project.com(symfony)*

I also try *php symfony plugin:uninstall sfPropelMigrationsLightPlugin.* -
it says that plugin was never installed

Dude, anybody who can walk me through this procedure, is greatness
personified! I am in urgent need now for this. Also, when I try and download
it again off the Internet, the stable version 1.1.3 for 1.2, it says that
you try and install a 1.0 plugin..

I am lost here...someone with experience on this...

at this point it says it's never been installed anyways.?
On Mon, Apr 26, 2010 at 8:35 AM, Eno symb...@gmail.com wrote:

 On Sun, 25 Apr 2010, Parijat Kalia wrote:

  I was hoping somebody would have some leads on this, but it doesn't seem
  that way. Or maybe the message wasn't delivered. I have the configuration
  set in settings.yml to enable the plugin. Wonder what's going wrong.
 Thanks!

 Judging from your (multitude) of posts, I think it couldn't hurt for you
 to read through the docs for 1.2, because its clear from my testing with
 this plugin that you are not aware of the changes that came in 1.2. Its
 not enough to run plugin:install - you must also run plugin:publish-assets
 when installing plugins.

 The error message you're seeing is because you failed to run that step.


  On Sat, Apr 24, 2010 at 4:42 PM, Parijat Kalia kaliapari...@gmail.com
 wrote:
 
   Hey guys,
  
   I am working with the symfony propel migraitons plugin at the moment.
 The
   plugin installs  fine , and as per the instructions that are given on
 the
   webpage it states that you must do the followibng step:
  
   php symfony init-migration migration_test
  
   to which it states that the init-migration task is not defined. The
   installation was fine, but it still gives the error.
  
   I am following the instructions given on this link
   http://www.symfony-project.org/plugins/sfMigrationsLightPlugin
  
   anyone who has had prior experience with this plugin,, please
   sharethanks a ton!
  
   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.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] manual ajax symfony 1.4

2010-04-27 Thread NOOVEO - Christophe Brun
Hola neoslink, 

I'm not sure to understand your question... The way symfony behaves regarding 
database operations is exactly the same, whether you activate your scripts with 
AJAX or a standard (synchronous) request. If you're looking for a tutorial 
about implementing AJAX itself in symfony, you should check the Jobeet tutorial 
as a starting point : 
http://www.symfony-project.org/jobeet/1_4/Doctrine/en/18

And, of course, the jQuery documentation. 


-Message d'origine-
De : symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] De 
la part de neoslink
Envoyé : lundi 26 avril 2010 21:05
À : symfony users
Objet : [symfony-users] manual ajax symfony 1.4

hola soy nuevo en symfony y lo que me hace falta es comprender como funciona 
toda la parte de inserciones consultas y eliminaciones de symfony a mysql por 
medio de ajax, y seria de gran ayuda si alguien tuviese un tutorial ya que eh 
estado navegando toda la tarde y no encuentro nada.


gracias de ante mano.

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

You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com To 
unsubscribe from this group, 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: Zend et Symfony

2010-04-27 Thread khalid
hello,

show if you have a good path on
sfConfig::get('sf_lib_dir').'/vendor'.PATH_SEPARATOR.get_include_path().

But i think is good but i don't no why he doesn't work

2010/4/26 Omar El Mazny omar.elma...@gmail.com

 i added
 static protected $zendLoaded = false;

  static public function registerZend()
  {
if (self::$zendLoaded)
{
  return;
}

set_include_path(sfConfig::get('sf_lib_dir').'/
 vendor'.PATH_SEPARATOR.get_include_path());
require_once sfConfig::get('sf_lib_dir').'/vendor/Zend/Loader/
 Autoloader.php';
Zend_Loader_Autoloader::getInstance();
self::$zendLoaded = true;
  }
 in the project configuration.class.php after that the Zend Lucene was
 working fine but when i tried the pdf it's not

 On Apr 26, 4:56 pm, khalid abdel.kha...@gmail.com wrote:
  hello,
 
  Your probleme come to the autoload of symfony. how you are integrated
 zend ?
 
  2010/4/26 Omar El Mazny omar.elma...@gmail.com
 
 
 
   Hello,
 
   I integrated Zend with symfony the search feature is working really
   good but when it comes to the pdf class i keep getting this error
   message
   Fatal error: Class 'Zend_Pdf' not found in \module\actions
   \actions.class.php on line 227
 
   do you know why or how to resolve the issue !!! despite the fact that
   Zend search is working fine with searching  indexing.
   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.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
 
  --
  If you want to report a vulnerability issue on symfony, please send it to
 security at symfony-project.com
 
  You received this message because you are subscribed to the Google
  Groups symfony users group.
  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 athttp://
 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] Seems like Doctrine is building my filters on an old schema?

2010-04-27 Thread godbout
Hello Sir,

I used to have a backend module generated by the doctrine admin-gen.
I've changed the schema to replace the sf_guard_user_id in one of the
table by a user_id.

Here is the old schema:

SectionUser:
  columns:
sf_guard_user_id:{ type: integer(4), notnull:
true }
section_id: { type: integer(4), notnull: true }
type:   { type: enum, length: 20, values:
['TEACHER', 'STUDENT', 'OTHER'] }
  relations:
Section:{ local: section_id, foreign: id, class:
Section, foreignAlias: SectionUsers, onDelete: CASCADE }
User:   { local: sf_guard_user_id, foreign: id,
class: sfGuardUser, foreignAlias: SectionUsers, onDelete: CASCADE }

Here is the new one:

SectionUser:
  columns:
user_id:{ type: integer(4), notnull: true }
section_id: { type: integer(4), notnull: true }
type:   { type: enum, length: 20, values:
['TEACHER', 'STUDENT', 'OTHER'] }
  relations:
Section:{ local: section_id, foreign: id, class:
Section, foreignAlias: SectionUsers, onDelete: CASCADE }
User:   { local: user_id, foreign: id, class:
sfGuardUser, foreignAlias: SectionUsers, onDelete: CASCADE }

Migrations classes have been build and run, no pb.

However now I have problem with the sources. When I do a
doctrine:build --all-classes, here is what I find in a
BaseSectionFormFilter.class.php:

public function addUsersListColumnQuery(Doctrine_Query $query, $field,
$values)
  {
if (!is_array($values))
{
  $values = array($values);
}

if (!count($values))
{
  return;
}

$query-leftJoin('r.SectionUser SectionUser')
  -andWhereIn('SectionUser.sf_guard_user_id', $values);
  }

Of course the reference to sf_guard_user_id crashes, it should be
user_id.

I've tried any cc, clean-model-files, etc... but without success. Any
idea?

Thx in advance,
Guill

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

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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: The signin form appears even when i have the security set to false

2010-04-27 Thread Javier Garcia

Finally i changed 'off' by 'false' and know it works :).

Javi

On 04/26/2010 03:54 PM, Omar El Mazny wrote:

when the default is on your module will always stay secured even if
it's false so don't set a default  secure each module separately

On Apr 25, 5:08 pm, Javier Garciatirengar...@gmail.com  wrote:
   

If i remove sfDoctrineGuardPlugin i get this error:

404 | Not Found | sfError404Exception
Action sfGuardAuth/signin does not exist.
stack trace

 * at ()
   in SF_ROOT_DIR/lib/vendor/symfony/lib/controller/
sfController.class.php line 196 ...
  193. $this-dispatcher-notify(new sfEvent($this,
'application.log', array(sprintf('Action %s/%s does not exist',
$moduleName, $actionName;
  194.   }
  195.
  196.   throw new sfError404Exception(sprintf('Action
%s/%s does not exist.', $moduleName, $actionName));
  197. }
  198.
  199. // create an instance of the action
 * at sfController-forward('sfGuardAuth', 'signin')
   in SF_ROOT_DIR/lib/vendor/symfony/lib/filter/
sfBasicSecurityFilter.class.php line 94 ...
   91.*/
   92.   protected function forwardToLoginAction()
   93.   {
   94. 
$this-context-getController()-forward(sfConfig::get('sf_login_module'),

sfConfig::get('sf_login_action'));
   95.
   96. throw new sfStopException();
   97.   }
 * at sfBasicSecurityFilter-forwardToLoginAction()
   in SF_ROOT_DIR/lib/vendor/symfony/lib/filter/
sfBasicSecurityFilter.class.php line 55 ...
   52.   }
   53.
   54.   // the user is not authenticated
   55.   $this-forwardToLoginAction();
   56. }
   57.
   58. // the user is authenticated
 * at sfBasicSecurityFilter-execute(object('sfFilterChain'))
   in SF_ROOT_DIR/lib/vendor/symfony/lib/filter/
sfFilterChain.class.php line 53 ...
   50.   }
   51.
   52.   // execute the next filter
   53.   $this-chain[$this-index]-execute($this);
   54. }
   55.   }
   56.
 * at sfFilterChain-execute()
   in SF_ROOT_DIR/lib/vendor/symfony/lib/filter/
sfRenderingFilter.class.php line 33 ...
   30.   public function execute($filterChain)
   31.   {
   32. // execute next filter
   33. $filterChain-execute();
   34.
   35. // get response object
   36. $response = $this-context-getResponse();
 * at sfRenderingFilter-execute(object('sfFilterChain'))
   in SF_ROOT_DIR/lib/vendor/symfony/lib/filter/
sfFilterChain.class.php line 53 ...
   50.   }
   51.
   52.   // execute the next filter
   53.   $this-chain[$this-index]-execute($this);
   54. }
   55.   }
   56.
 * at sfFilterChain-execute()
   in SF_ROOT_DIR/lib/vendor/symfony/lib/controller/
sfController.class.php line 239 ...
  236.   }
  237.
  238.   // process the filter chain
  239.   $filterChain-execute();
  240. }
  241. else
  242. {
 * at sfController-forward('sfGuardRegister', 'register')
   in SF_ROOT_DIR/lib/vendor/symfony/lib/controller/
sfFrontWebController.class.php line 48 ...
   45.   }
   46.
   47.   // make the first request
   48.   $this-forward($moduleName, $actionName);
   49. }
   50. catch (sfException $e)
   51. {
 * at sfFrontWebController-dispatch()

On Apr 25, 3:12 pm, Javier Garciatirengar...@gmail.com  wrote:



 

Hi,
   
 

i have installed sfDoctrineGuardExtraPlugin and when i try to execute an
action from sfGuardRegister sfGuardForgotPassword i get the
sfDoctrineGuardUser signin form.
   
 

I have the security set to false. I don't have that problem with other
modules.
   
 

sf 1.3, sfDoctrineGuardExtraPlugin 1.3 and sfDoctrineGuardPlugin 4.
   
 

Any idea?
   
 

--
Javi
   
 

Ubuntu 8.04
   
 

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

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

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

Re: [symfony-users] Re: Multiple actions in one page

2010-04-27 Thread Javier Garcia

On 04/22/2010 10:50 AM, Gareth McCumskey wrote:

If you need to have different content areas in your main layout then
use slots. Thats what they were defined for;)
   



Hi Gareth,

i'm suspicious with your answer because i think you spent many time with 
sf, could you give more details? i can't image how can i do that with 
slots..



Javi

--
Javi

Ubuntu 8.04

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

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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] help_sfPhpExcelPlugi

2010-04-27 Thread safa boubekri
hello

:(  the file reports.xslis not generate   change  '/var/tmp/  to  /tmp
because i have wamp/tmp

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


[symfony-users] Fix ID in data fixture yml

2010-04-27 Thread saki
Hi!

I have a problem with data fixtures, please help me! I have some data
fixture files with relations and some users in the users.yml. I would
like to set a fix ID for the superadministrator user. The superadmin
definition is the first in the users.yml, however it gets the #3, I
don't know why...

User:
  superadmin:
id: 1
name: Superadmin
email: r...@root.hu
login: 1
deleted: 1

  other users...

I got SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate
entry '1' for key 'PRIMARY' error, when i add the id: 1 row to the
definition. How can I solve this? How can I set a fix id for the
superadministrator?


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

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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: Seems like Doctrine is building my filters on an old schema?

2010-04-27 Thread godbout
Ok, found a way to correct that.
I've added the local and foreign id in the many-to-many relationships.
I've got an old table where I haven't updated the sf_guard_user_id to
user_id because i'm gonna drop it later, and it seems that when I
don't specify a local/foreign_id Doctrine is using this one instead of
the new user_id.

This might help some other people!
Cheers,


On Apr 27, 5:40 pm, godbout guillaume.lecler...@gmail.com wrote:
 Hello Sir,

 I used to have a backend module generated by the doctrine admin-gen.
 I've changed the schema to replace the sf_guard_user_id in one of the
 table by a user_id.

 Here is the old schema:

 SectionUser:
   columns:
     sf_guard_user_id:                { type: integer(4), notnull:
 true }
     section_id:             { type: integer(4), notnull: true }
     type:                   { type: enum, length: 20, values:
 ['TEACHER', 'STUDENT', 'OTHER'] }
   relations:
     Section:                { local: section_id, foreign: id, class:
 Section, foreignAlias: SectionUsers, onDelete: CASCADE }
     User:                   { local: sf_guard_user_id, foreign: id,
 class: sfGuardUser, foreignAlias: SectionUsers, onDelete: CASCADE }

 Here is the new one:

 SectionUser:
   columns:
     user_id:                { type: integer(4), notnull: true }
     section_id:             { type: integer(4), notnull: true }
     type:                   { type: enum, length: 20, values:
 ['TEACHER', 'STUDENT', 'OTHER'] }
   relations:
     Section:                { local: section_id, foreign: id, class:
 Section, foreignAlias: SectionUsers, onDelete: CASCADE }
     User:                   { local: user_id, foreign: id, class:
 sfGuardUser, foreignAlias: SectionUsers, onDelete: CASCADE }

 Migrations classes have been build and run, no pb.

 However now I have problem with the sources. When I do a
 doctrine:build --all-classes, here is what I find in a
 BaseSectionFormFilter.class.php:

 public function addUsersListColumnQuery(Doctrine_Query $query, $field,
 $values)
   {
     if (!is_array($values))
     {
       $values = array($values);
     }

     if (!count($values))
     {
       return;
     }

     $query-leftJoin('r.SectionUser SectionUser')
           -andWhereIn('SectionUser.sf_guard_user_id', $values);
   }

 Of course the reference to sf_guard_user_id crashes, it should be
 user_id.

 I've tried any cc, clean-model-files, etc... but without success. Any
 idea?

 Thx in advance,
 Guill

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

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

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

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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: routing creates variable value true when no trailing slash

2010-04-27 Thread Tofuwarrior
Hi Gareth,

All makes sense - bit surprised retrieveByPk doesn't do this which is
I guess where my question came from.

Appreciate you taking the time to share your experience and approach.

Thanks,

Paul



On Apr 23, 7:10 pm, Gareth McCumskey gmccums...@gmail.com wrote:
 My simple guess is that module/action/id tells symfony that id is a
 parameter with its own value defaulted to false (kinda just to show it
 exists) whereas module/action/id/ tell symfony that id is a parameter
 and there is a value of  for it (because nothing follows the
 trailing slash.

 In short, module/action/id means id exists (therefore === true) and
 module/action/id/ means id has a value of . Makes sense to me to be
 honest. The better check to do might be to see if id has a value
 before adding it to the URL as a GET parameter.

 As for checking if id === true, I normally do a check for parameter
 existing anyways in my actions before I attempt to use it, so you can
 do this:

 if ($request-hasParameter('id')  $request-getParameter('id') !== true)
 {

 }

 Hope that helps



 On Fri, Apr 23, 2010 at 12:58 PM, Tofuwarrior p...@clearintent.co.uk wrote:
  Hi gareth,

  Thanks for replying (again!)

  I understand about the difference between == and === and that that
  must be what is causing retrieveByPK  to return this but what I don't
  get is why id is being set to true when there is no value being passed
  in the url so I guess my question is about routing AND/OR
  why retrieveByPK is not doing === when to me true and 1 are clearly
  not the same PK.
  I would like to understand why retrieveByPK takes this approach. I am
  guessing that mysql does the == bit but why not filter this kind of
  thing out if propel knows that the column is an int which it does.

   I guess, I am also wondering if I can do about this other than doing
  my own test for id===true prior to calling the retrievByPK which seems
  a bit messy.

  Cheers,

  Paul

  Sure, I understand that but

  On Apr 23, 10:31 am, Gareth McCumskey gmccums...@gmail.com wrote:
  Look at this piece of code:

  $a = 1;
  $b = 0;

  if ($a == true) echo I am true
  if ($b == false) echo I am false

  results in I am true and I am false both being echoed.

  However:
  if ($a === true) echo I am true
  if ($b === false) echo I am false

  does not

  On Fri, Apr 23, 2010 at 11:15 AM, Tofuwarrior p...@clearintent.co.uk 
  wrote:
   Hi all,

   I guess this is simple lack of understanding but it is a bit peculiar.
   Any insights, answers pointers to further readng gratefully received.

   I haven't found any answers in the docs anywhere.

   In my app,

   this
   .com/folder/tree/id      creates request variable id=boolean(true)
   whereas this
   .com/folder/tree/id/     creates request variable id=empty string

   I am doing retrievebyPK($request-getParameter('id')) and  the version
   that returns true means that this retrieves the record with PK ==1
   which i absolutely don't want.

   Any idea what i am doing wrong? I figure it must be to do with routing
   or is there an error with retrieveByPK - should it know the diff
   between true and 1, I guess it evaluates to the same but should it
   really work like that?

   My routing is the default stuff as follows, I have other rules but
   nothing relevant to folder
   default_index:
    url:   /:module
    param: { action: index }

   default:
    url:   /:module/:action/*

   Thanks,

   TW

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

   You received this message because you are subscribed to the Google
   Groups symfony users group.
   To post to this group, send email to symfony-users@googlegroups.com
   To unsubscribe from this group, 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 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 
  athttp://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

 --
 Gareth 

[symfony-users] Re: stupid question about securing backend with sfGuard?

2010-04-27 Thread Tofuwarrior
Hi Both,

thanks for advice both.
Still no joy - sigh :-(

I enabled sfguardAuth and rebuilt everything.
I created the admin user but still  no joy.

Anyone got any other ideas? If I understood what was happening I might
be able to track it down but unfortunately I am not experienced enough
with symfony to work this out.

any help gratefully received - without a secured backend this is a
pretty vulnerable application!

Cheers,

Paul


On Apr 23, 3:10 pm, safa boubekri boubekri.s...@gmail.com wrote:
 hi
 try to  create administator

 symfony guard:create-user admin admin
 symfony guard:promote admin

 i had the same problem  after this it's resolved

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

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

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

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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: Fix ID in data fixture yml

2010-04-27 Thread Tofuwarrior
Hi,

If you can reset the auto increment id then you can do what i do which
is a bit of a hack but works.

Follow the instructions here:
http://osterman.com/wordpress/2007/09/28/symfony-propel-auto_increment-offset

and set the autoincrement  to be 1.
(This only works when you do build-all-load. Not just data-load)

You can then make sure the fixture you put in first is the one you
want to have an id of 1 thus.

 User:
   superadmin:
 name: Superadmin
 email: r...@root.hu
 login: 1
 deleted: 1


Cheers,

Paul



I add this :

On Apr 27, 12:35 pm, saki sakrame...@gmail.com wrote:
 Hi!

 I have a problem with data fixtures, please help me! I have some data
 fixture files with relations and some users in the users.yml. I would
 like to set a fix ID for the superadministrator user. The superadmin
 definition is the first in the users.yml, however it gets the #3, I
 don't know why...

 User:
   superadmin:
     id: 1
     name: Superadmin
     email: r...@root.hu
     login: 1
     deleted: 1

   other users...

 I got SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate
 entry '1' for key 'PRIMARY' error, when i add the id: 1 row to the
 definition. How can I solve this? How can I set a fix id for the
 superadministrator?

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

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

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

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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: stupid question about securing backend with sfGuard?

2010-04-27 Thread Tofuwarrior
  Forgot to add the following in the backend settings.yml
   login_module:   sfGuardAuth
login_action:   signin
secure_module:  sfGuardAuth
secure_action:  secure

So for anyone stuck with this the solution was either, add this AND
sfGuardAuth in the settings (which I'm pretty sure I did before)

OR the above AND creating the admin user.

Thanks for the help Gábor and safa.

On Apr 23, 3:12 pm, Gábor Fási maerl...@gmail.com wrote:
 sfGuardAuth is the module that handles the authentication and
 authorization, you'll need to enable that as well. The other modules
 are to manage the users, the permissions, etc.



 On Fri, Apr 23, 2010 at 15:56, Tofuwarrior p...@clearintent.co.uk wrote:
  Hi,

  I've followed through the sfGuard installation and have used it fine
  for the front end.

  Now I have enabled it in the backend and set
  default:
   is_secure: true

  in the backend but it displays a page saying this page is not public
  and saying I need to login in the login form This isn't displayed, it
  just links to the same page (/default/login)

  I've trawled around and it seems that this is a common issue over the
  years but for different reasons and none of them are my reason by the
  look of it.

  I am expecting sfGuard to do the same as frontend - ie show me a login
  form so my first question is, is this how it should work?

  I am presuming it is. So now I am stumped, I have enabled the
  following as per the instructions.

  backend/../settings.yml
  all:
     enabled_modules:      [default,  sfGuardGroup, sfGuardPermission,
  sfGuardUser]

  I've done ./symfony cc
  I've done propel:build-all-load

  Then the instructions talk about the front end application so I didn't
  do that stuff because it is referring to sfGuardAuth which the guide
  explcitly says is only needed for the frontend.

  This seems a bit wierd - what does the authentication for the backend
  then. I feel like I am missing something fundamental about how this
  happens, should I redirect backend authentication to the frontend or
  something? That just doesn't seem to make sense.

  I'm lost! Anyone help.
  I've looked at the extended sfGuardDocs in the wiki as well as stuff
  on the forum and web generally.

  Thanks,

  Paul

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

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

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

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

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

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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: Propel nested set and sfOutputEscaperIteratorDecorator - too many queries

2010-04-27 Thread Massimiliano Arione
On 26 Apr, 18:11, Rytis Daugirdas rytis.daugir...@gmail.com wrote:
 To output a list of nodes, obviously.

It looks a bit overkilled to me.
Just retrieve the whole table ordered by left, and you'll get the
entire tree.

cheers
Massimiiano

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

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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] help_sfPhpExcelPlugi

2010-04-27 Thread DEEPAK BHATIA
Could you get the file in /tmp ?

On Tue, Apr 27, 2010 at 4:37 PM, safa boubekri boubekri.s...@gmail.com wrote:
 hello

 :(  the file reports.xsl    is not generate   change  '/var/tmp/  to  /tmp
 because i have wamp/tmp
 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


[symfony-users] Re: Fix ID in data fixture yml

2010-04-27 Thread Tom Ptacnik
By which command are you trying to load fixtures?

... if by symfony doctrine:data-load, the old data stay in the db
and therefore you can't insert another record with id 1
if you try symfony doctrine:build --all --and-load --no-
confirmation then it should be ok, because the db will be erased with
all records


On 27 dub, 13:35, saki sakrame...@gmail.com wrote:
 Hi!

 I have a problem with data fixtures, please help me! I have some data
 fixture files with relations and some users in the users.yml. I would
 like to set a fix ID for the superadministrator user. The superadmin
 definition is the first in the users.yml, however it gets the #3, I
 don't know why...

 User:
   superadmin:
     id: 1
     name: Superadmin
     email: r...@root.hu
     login: 1
     deleted: 1

   other users...

 I got SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate
 entry '1' for key 'PRIMARY' error, when i add the id: 1 row to the
 definition. How can I solve this? How can I set a fix id for the
 superadministrator?

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

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

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

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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: :-( please help. ajax problem - noob to ajax -probably simple

2010-04-27 Thread Tofuwarrior
Ho Both,

Thanks for your thoughts on this.

If you can spare the time, I have one further question about this

I am currently returning the ul that the tree menu function needs
from the action which calls a fetchTree function which is currently in
the model. This was just for development purposes and I can see I
shouoldn't be writing html in the model -  I need to put it in the
appropriate place. The function grabs the child folders and child
files for the given parent and then writes the ul on this basis.

What is the best way to separate this out in symfony - do I need to
use a helper for this, maybe a partial? ( I don't yet fully understand
these and when they should be used. ) and then pass the child folders
and files to this which can output the html that is returned to the
ajax function ?

My assumption is that I should grab the child objects in the action by
calling peer methods, assign them as variables and then call something
that will take these values and output the ul which is then returned
by the action to the ajax.

Thanks,

Paul

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

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


[symfony-users] Re: sfAdminThemeJrollerPlugin is not ie compatible?

2010-04-27 Thread webdev_aw_ucsb
The symfony integration is compatible with any browser (the PHP). I'm
using sfAdminThemeJrollerPlugin and I've noticed with Safari that some
of the submit buttons/images are offset improperly as well.

The problem(s) you're referring to are CSS related -- so far as I know
theme theme(s) available via Jroller are by and large mostly
compatible with Firefox across all OSs.

I believe the maintainer of this plugin is very busy as I've sent him
a bug report about Help options in YAML not displaying in the Show/
Edit screens of the custom admin theme  and I have little
experience in this area (custom admin themes and PHP-writing-PHP).

You may want to show around the Jroller theme gallery and test out if
another theme displays ok in IE 7  you can always fire up Firebug
and debug the CSS yourself.

regards,
-dg

On Apr 26, 12:33 pm, Sergio Fabián sergiov...@gmail.com wrote:
 Hi sf users!

 I'm using the sfAdminThemeJrollerPlugin and noticed that in iexplorer
 7 there are some visual errors (error labels and icons of submit
 buttons in wrong positions, borders, etc).

 It's compatible with browsers like iexplorer?

 --
 Lic. Sergio Fabián Vier

 Software Libre'' es un asunto de libertad, no de precio.
 Para entender el concepto, debes pensar en libre'' como en libertad
 de expresión'', no como en cerveza gratis''. Software Libre'' se
 refiere a la libertad de los usuarios para ejecutar, copiar,
 distribuir, estudiar, cambiar y mejorar el software.

 Filosofía SL.

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

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

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

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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: Fix ID in data fixture yml

2010-04-27 Thread saki
SOLVED!

Doctrine is very clever, it does NOT load data sequentially from a yml
file.
The order of the data in a yml file IS NOT the order of the data in
the database.
I think doctrine loads all the yml files from the fixtures folder and
put them to the database one by one.
If a data has a relation to another model, doctrine catch it and put
it to the database.
Most likely my users.yml file was not the first yml in the folder, but
all the users were put to the
database sooner because of the relations in other ymls - except the
superadmin user, who
has no relation at all.

The solution (for me) was to put the content of the ymls to one file
which starts with the User declarations.
I'm happy! Thank you for your help!


On ápr. 27, 16:10, Tom Ptacnik to...@tomor.cz wrote:
 By which command are you trying to load fixtures?

 ... if by symfony doctrine:data-load, the old data stay in the db
 and therefore you can't insert another record with id 1
 if you try symfony doctrine:build --all --and-load --no-
 confirmation then it should be ok, because the db will be erased with
 all records

 On 27 dub, 13:35, saki sakrame...@gmail.com wrote:



  Hi!

  I have a problem with data fixtures, please help me! I have some data
  fixture files with relations and some users in the users.yml. I would
  like to set a fix ID for the superadministrator user. The superadmin
  definition is the first in the users.yml, however it gets the #3, I
  don't know why...

  User:
    superadmin:
      id: 1
      name: Superadmin
      email: r...@root.hu
      login: 1
      deleted: 1

    other users...

  I got SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate
  entry '1' for key 'PRIMARY' error, when i add the id: 1 row to the
  definition. How can I solve this? How can I set a fix id for the
  superadministrator?

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

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

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

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

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

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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: Propel nested set and sfOutputEscaperIteratorDecorator - too many queries

2010-04-27 Thread Rytis Daugirdas
Massimiliano,

Since when iterators are overkill? IMO, your suggestion is overkill.
Propel documentation clearly states that a tree can be easily
traversed via its iterator interface. Why should I write additional
code (however simple) to get the functionality that is already
provided? Besides, since I need the level of each node, your
suggestion is not suitable as it too makes query count depend on the
number of nodes retreived.

On Apr 27, 4:48 pm, Massimiliano Arione garak...@gmail.com wrote:
 On 26 Apr, 18:11, Rytis Daugirdas rytis.daugir...@gmail.com wrote:

  To output a list of nodes, obviously.

 It looks a bit overkilled to me.
 Just retrieve the whole table ordered by left, and you'll get the
 entire tree.

 cheers
 Massimiiano

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

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

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

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


[symfony-users] Re: Doctrine innerJoin doubt

2010-04-27 Thread fRAnKEnSTEin
hi there,

Evert:

1- Why don't you have an `id` column on reservation in your schema?
as i saw on jobeete example, they do not define any id column for
any of the DB tables..thats because symfony add it automatically for
each db table.

2- have you tried to define the innerJoin as -
innerJoin('r.ReservationDetail rd'); yes i have, but i got an error,
this is because as you can see in y first post, the schema defines
foreignAlias: ReservationDetails in plural. (Just like jobbet shcmea
example btw)

3- which relations are defined in your BaseReservation class: this
are the relations of my BaseReservation and BaseReservationDetail
classes:

$this-hasMany('ReservationDetail as ReservationDetails',
array(
 'local' = 'id',
 'foreign' = 'reservation_id'));

$this-hasOne('VolcanoLodgeReservation', array(
 'local' = 'reservation_id',
 'foreign' = 'id',
 'onDelete' = 'CASCADE'));
4- You could also debug with `var_dump($reservations-toArray());`,
this is what it prints:

array
  0 =
array
  'id' = string '1' (length=1)
  'name' = string 'hgjhg' (length=5)
  'email' = string '124' (length=3)
  'commets' = string 'wrwer' (length=5)
  'ReservationDetails' =
array
  0 =
array
  ...
  1 =
array
  ...

Still cant get this thing work...any ideas?

PD: vivek pandey this post is not about how to install xampp with
symfony. Please make a new post and i will be glad to help 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


[symfony-users] db question for statistics

2010-04-27 Thread Vikos
Hi Guys!

Who can use Docrine + ODBC + SQL 2005 (on windows) And how?
Can anyone use CRUD scaffolding ?
The generated code (for me) isn't work's correctly... :(

We have a big project. And after 2 weeks sucking I can't use doctrine
AND /OR PDO ODBC execute (for insert).

It's not a big problem because the schema is too complex to keep all
business logic in application layer. And we need to use stored
procedures (in a two layer API on db server) for all DB functions
(insert update, select, delete).

So the question in more simple verison is: Am'I too llama to use php
width sql server, or the others cant't too?


Thanks the answers!

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

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


[symfony-users] sfWidgetFormDoctrineChoice problem

2010-04-27 Thread Andro Fumero

This is from users BaseForm.

'profileid' = new sfWidgetFormDoctrineChoice(array('model' = 
$this-getRelatedModelName('Profile'), 'add_empty' = false)),

its displaying the Description column of my profile table.

how can i display the profile column in my Profile table ?

Can any one.?

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


[symfony-users] How to get array of field names and default values by inspecting $form

2010-04-27 Thread notbrain
I've been looking through the docs and API for methods that would
allow me to do this, but I find myself running around in circles and
getting a little frustrated by lack of examples/clarity. What I need
to get is an array of field_name/default_value pairs as set up in the
form class. Let's say my form has two fields, name and email, and
their default values are Full name and n...@example.com. The array
I'm looking to get is

SETUP

...
$this-setWidgets(array(
  'name' = new sfWidgetFormInputText(array('default' = 'First
name')),
  'email' = new sfWidgetFormInputText(array('default' =
'n...@example.com')),
));
...


DESIRED ARRAY

Array
(
[name] = Full name
[email] = n...@example.com
)

I can get an array of names and default values separately (https://
gist.github.com/5cdd2009a8a7b85cfdae), but was curious about the best
way to construct this--hopefully with a single loop construct on the
$form object.

Thanks!
Brian

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

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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] Problema con proyecto en servidor de producción

2010-04-27 Thread Fabian Barrera
Estoy trabajando en mi primer proyecto con symfony 1.4 (antes
trabajaba con el 1.0). Lo exporté usando project:deploy, siguiendo el
tutorial de jobeet. Al entrar a la aplicación, muestra la página de
login correctamente, pero al insertar el usuario y contraseña
(existente en la BD) genera este error:

500 | Internal Server Error | Doctrine_Record_UnknownPropertyException
Unknown method SfGuardUser::checkPassword

Luego de un rato, desactive la opción is_secure de la aplicación. Al
probar un módulo generado con doctrine:generate-admin genera este
error:

Fatal error: Class 'BaseSubprocesoGeneratorConfiguration' not found
in /web/project/apps/backend/modules/subproceso/lib/
subprocesoGeneratorConfiguration.class.php on line 11

Y al probar un módulo generado con doctrine:generate-module, genera
este error

404 | Not Found | sfError404Exception
Empty module and/or action after parsing the URL /empresa (/)

Así que creo que se trata de un problema de configuración de algún
directorio de symfony, pero todo parece estar bien, con rutas
relativas y no absolutas, incluido el ProjectConfiguration.class.php:

require_once dirname(__FILE__).'/../lib/vendor/symfony/lib/autoload/
sfCoreAutoload.class.php';

El symfony parece funcionar bien, genera la web debug toolbar y
funciona el comando por cli.

Si alguien tiene alguna idea sobre qué podría estar ocasionando este
problema y cómo solucionarlo, realmente lo agradecería.

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

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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] findBy order?

2010-04-27 Thread metaphist
Is there a way to pass an ORDER BY to the Doctrine findBy method? Or
do I have to create a custom query at that point?

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

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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] Licence d'utilisation de Symfony

2010-04-27 Thread Delphine
Souhaitant utiliser symfony dans mes développements, je me suis
penchée sur la question juridique. il semblerait que la licence MIT
n'est pas de valeur en France, et que les licences à utiliser serait
des licences CECILL dont les clauses se rapprocheraient des licences
GPL, BSD...
Serait il possible de faire migrer symfony sous une de ces licences
CECILL.

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

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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] Licence d'utilisation de Symfony

2010-04-27 Thread Jérémie

Le 27/04/2010 16:19, Delphine a écrit :

Souhaitant utiliser symfony dans mes développements, je me suis
penchée sur la question juridique. il semblerait que la licence MIT
n'est pas de valeur en France, et que les licences à utiliser serait
des licences CECILL dont les clauses se rapprocheraient des licences
GPL, BSD...
Serait il possible de faire migrer symfony sous une de ces licences
CECILL.

   
C'est une licence de logiciel libre 
http://fr.wikipedia.org/wiki/Logiciel_libre^[1] 
http://fr.wikipedia.org/wiki/Licence_MIT#cite_note-0 et /Open Source 
http://fr.wikipedia.org/wiki/Open_Source/^[2] 
http://fr.wikipedia.org/wiki/Licence_MIT#cite_note-1 . Elle donne à 
toute personne recevant le logiciel le droit illimité de l'utiliser, le 
copier, le modifier, le fusionner, le publier, le distribuer, le vendre 
et de changer sa licence. La seule obligation est de mettre le nom des 
auteurs avec la notice de copyright 
http://fr.wikipedia.org/wiki/Copyright.
Dixit Wikipedia. (donc, pas sûr à 100%). Donc, si je comprends bien, tu 
peux le faire toi même.
Mais j'aimerais bien savoir ce qui te fait dire qu'elle n'a pas de 
valeur en France?!!

Jérémie

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

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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: Fix ID in data fixture yml

2010-04-27 Thread Eno
On Tue, 27 Apr 2010, saki wrote:

 The order of the data in a yml file IS NOT the order of the data in
 the database.
 I think doctrine loads all the yml files from the fixtures folder and
 put them to the database one by one.

If you have several fixtures files, I think it loads them alphabetically 
so I usually name the files 001_blahblah, 002_blahblah so they're examined 
in a specific order.



-- 


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

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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] Explication du plugin mgI18nPlugin

2010-04-27 Thread François
Bonjour à tous,

J'ai commencé à utiliser (ou plutôt bidouiller) Symfony il y a un mois
pour un stage qui commence depuis cette semaine. Un point que j'avais
volontairement passé, parce qu'il ne devait pas en être question
durant mon stage, était l'internationalisation.
Vu que mon stage à débuté hier, je suis en train de préparer la base
du site pour pouvoir me concentrer sur la logique métier du site, la
base passe donc par l'internationalisation, et c'est là que ça coince.
En effet, je me suis renseigné sur l'internationalisation, et ce n'est
pas si compliqué (j'en ai fait avec CakePHP), mais Symfony étant bien
fait, j'ai naturellement cherché des plugins.

Je suis donc tombé sur mgI18nPlugin ( 
http://www.symfony-project.org/plugins/mgI18nPlugin
) et sur les slides ( 
http://docs.google.com/viewer?url=http://rabaix.net/uploads/sflive10/presentation.pdf
) de Symfony Live de ce mois de Février où l'on peut voir ce dont le
plugin en question est capable.

Malheureusement, le fichier README est assez austère et certains
points m'échappent :

[factories.yml]
  database: doctrine  # or propel or any names defined in the
databases.yml files

Doctrine, propel ou autre chose ? Je ne saisi pas ce point (j'utilise
Doctrine en passant).

Je n'ai jamais eu à m'aventurer dans le fichier app.yml, et je ne
comprend pas trop :

[app.yml]
all:
  # ...
  mgI18nPlugin:
connection: doctrine
cultures_available:
  fr: Français
  en: English

Si j'ai appelé mon paramètre database toto, je doit mettre toto à la
place de doctrine dans connection ? Le rapport entre ces fichiers ?

Le README me demande si je veux créé une autre base (je le veux !), ok
mais ce qui suit va après ou dans all: ?

mg_i18n_plugin:
  class: sfDoctrineDatabase
  param:
dsn:
'mysql:host=127.0.0.1;dbname=project_database_i18n;charset=utf-8'
username: username
password: password

Et pour finir (j'en voit dire enfin :p), lorsque que j'exécute la
commande :

php symfony i18n:mg-create-table frontend

J'avais une erreur du genre Database  doesn't exist ! (évidement,
à 22h30 je ne suis plus au boulot pour vérifier). Donc je pense que
j'avais très mal modifié mes fichiers yaml, d'où cet appel à l'aide
pour un pauvre stagiaire :'(

Merci à vous.

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

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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] Explication du plugin mgI18nPlugin

2010-04-27 Thread Thomas Rabaix
2010/4/27 François calv...@gmail.com

 Bonjour à tous,

 J'ai commencé à utiliser (ou plutôt bidouiller) Symfony il y a un mois
 pour un stage qui commence depuis cette semaine. Un point que j'avais
 volontairement passé, parce qu'il ne devait pas en être question
 durant mon stage, était l'internationalisation.
 Vu que mon stage à débuté hier, je suis en train de préparer la base
 du site pour pouvoir me concentrer sur la logique métier du site, la
 base passe donc par l'internationalisation, et c'est là que ça coince.
 En effet, je me suis renseigné sur l'internationalisation, et ce n'est
 pas si compliqué (j'en ai fait avec CakePHP), mais Symfony étant bien
 fait, j'ai naturellement cherché des plugins.

 Je suis donc tombé sur mgI18nPlugin (
 http://www.symfony-project.org/plugins/mgI18nPlugin
 ) et sur les slides (
 http://docs.google.com/viewer?url=http://rabaix.net/uploads/sflive10/presentation.pdf
 ) de Symfony Live de ce mois de Février où l'on peut voir ce dont le
 plugin en question est capable.

 Malheureusement, le fichier README est assez austère et certains
 points m'échappent :

 [factories.yml]
  database: doctrine  # or propel or any names defined in the
 databases.yml files

 Il s'agit du nom de la connection défini dans le fichier databases.yml .
Par défaut le nom de la connection est le nom de l'ORM 


 Doctrine, propel ou autre chose ? Je ne saisi pas ce point (j'utilise
 Doctrine en passant).

 Je n'ai jamais eu à m'aventurer dans le fichier app.yml, et je ne
 comprend pas trop :

 [app.yml]
 all:
  # ...
  mgI18nPlugin:
connection: doctrine
cultures_available:
  fr: Français
  en: English

 Si j'ai appelé mon paramètre database toto, je doit mettre toto à la
 place de doctrine dans connection ? Le rapport entre ces fichiers ?

 Un bug ;) le paramètre connection n'est plus utilisé



 Le README me demande si je veux créé une autre base (je le veux !), ok
 mais ce qui suit va après ou dans all: ?

 mg_i18n_plugin:
  class: sfDoctrineDatabase
  param:
dsn:
 'mysql:host=127.0.0.1;dbname=project_database_i18n;charset=utf-8'
username: username
password: password


Cela permet d'avoir une autre base juste pour les traductions. Cette partie
doit aller dans le fichier databases.yml



 Et pour finir (j'en voit dire enfin :p), lorsque que j'exécute la
 commande :

 php symfony i18n:mg-create-table frontend


Cette tache utilise la connection pour créer seulement les tables. Il faut
donc créer à la main la database si besoin.



 J'avais une erreur du genre Database  doesn't exist ! (évidement,
 à 22h30 je ne suis plus au boulot pour vérifier). Donc je pense que
 j'avais très mal modifié mes fichiers yaml, d'où cet appel à l'aide
 pour un pauvre stagiaire :'(

 Merci à vous.

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

 You received this message because you are subscribed to the Google
 Groups symfony users group.
 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




-- 
Thomas Rabaix
http://rabaix.net

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

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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: migrations trouble: sfpropelmigrationslightplugin

2010-04-27 Thread Eno
On Mon, 26 Apr 2010, Parijat Kalia wrote:

 Hey Eno/Ajay..and everyone else who is interested in this post (:)).
 
 Here is one another post to the multitude of posts that I have been
 posting...my problem is not resolved yet...and thanks for your patience and
 consideration to help me out:
 
 here is what I did:
 
 *php symfony publish:assets  --- No tasks defined for the publish
 namespace

Then there's something wrong with your project config.

Note: the normal place to edit project config in 1.2 is 
$sfdir/config/ProjectConfigurationClass.php (go read the 1.2 docs at 
http://www.symfony-project.org/installation/1_2/upgrade#Configuration).

I installed the plugin and this works for me:

$ symfony plugin:publish-assets
 pluginConfiguring plugin - sfPropelPlugin
 pluginConfiguring plugin - sfProtoculousPlugin
 pluginConfiguring plugin - sfPropelMigrationsLightPlugin

I even installed an old version of symfony to test it:

$ symfony -V
symfony version 1.2.12 (/usr/share/php/symfony)




-- 
A


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

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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 get array of field names and default values by inspecting $form

2010-04-27 Thread Thomas Rabaix
foreach($schema-getDefaults() as *$field_name* = $default) {
  print $default . \n;
}

?

On Mon, Apr 26, 2010 at 9:22 PM, notbrain notbr...@gmail.com wrote:

 I've been looking through the docs and API for methods that would
 allow me to do this, but I find myself running around in circles and
 getting a little frustrated by lack of examples/clarity. What I need
 to get is an array of field_name/default_value pairs as set up in the
 form class. Let's say my form has two fields, name and email, and
 their default values are Full name and n...@example.com. The array
 I'm looking to get is

 SETUP
 
 ...
 $this-setWidgets(array(
  'name' = new sfWidgetFormInputText(array('default' = 'First
 name')),
  'email' = new sfWidgetFormInputText(array('default' =
 'n...@example.com')),
 ));
 ...
 

 DESIRED ARRAY
 
 Array
 (
[name] = Full name
[email] = n...@example.com
 )

 I can get an array of names and default values separately (https://
 gist.github.com/5cdd2009a8a7b85cfdae), but was curious about the best
 way to construct this--hopefully with a single loop construct on the
 $form object.

 Thanks!
 Brian

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

 You received this message because you are subscribed to the Google
 Groups symfony users group.
 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




-- 
Thomas Rabaix
http://rabaix.net

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

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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] radiobutton and select values

2010-04-27 Thread fRAnKEnSTEin
hi,

I have some data stored in session variable, what i need to do, is to
load that data in the select and radio button that i have in my
template. My template looks like:

...
?php echo $form['cmb_adults_1']-render(array('class' =
txt_boxes_peq)) ?
?php echo $form['rdb_rooms']-render(array('class' =
class='radiobtn')) ?
...

how can i set the values of them bases on the session variable? i have
tryed several ways none of them worked, for example:

?php echo $form['cmb_adults_1']-render(array('class' =
txt_boxes_peq), array(default = 3)) ?

Any ideas?

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] TIP: FOR USERS UPDATING DATABASE IN PROPEL

2010-04-27 Thread Parijat Kalia
For the past 5 days, I have been trying to find a healthy solution to the
migrations issue that we propellers tend to face.  Apparently, whenever you
create a new database table or make changes to an existing database table,
you will make the changes/additions to the *schema.yml* and you are going to
call upon the

*build-all command.*

This encapsulates, *build-schema, build-sql, insert-sql,
build-model*commands. The
*build-sql and insert-sql* commands will essentially reconstruct the
database tables from scratch, after having dropped the existing ones.

This is a painful thing, and it sucks that there is no provision for this
that is in built with symfony, since ppl are always gonna update databases
and tables, delete them and remove them as and when the project progresses.

You need to get sfPropelMigrationsLightPLugin (which handles basic
migrations, and I never figured out how to isntall it correctly), and play
along with it.

So after almost giving up, here's what I tried today:

1. Create the db table by hand in your phpmyadmin, or whatever db u
use...using the GUI interface
2. run build-schema to make the schema.yml file imitate the existing file
3. run build-model to make the necessary model for the file
4. symfony clear cache

no need for build-sql and insert-sql and don't run build-all at all.

And Voila, you have your database table ready without dropping a single
instance from your existing tables.

if anyone has done this before, and know's of errors, let me know

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

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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] radiobutton and select values

2010-04-27 Thread Parijat Kalia
Here is what I do

  /*Code for timeLimits*/
 if(isset($_SESSION['timeLimits']))
  {
   $timeLimits = $_SESSION['timeLimits'];
   $i=0;
   $dropDownMenu = array();
   $dropDownMenu['0'] = 'Configured';
   foreach($timeLimits as $timeLimit)
   {
$i++;
$dropDownMenu[$i] = $timeLimit;
   }
   $this-optionsForMenu = $dropDownMenu;
  }
  else
   $this-optionsForTime = array(0='Not configured');


in your template
select_tag('some tag',options_for_select($optionsForTime));


On Tue, Apr 27, 2010 at 4:03 PM, fRAnKEnSTEin shirkav...@gmail.com wrote:

 hi,

 I have some data stored in session variable, what i need to do, is to
 load that data in the select and radio button that i have in my
 template. My template looks like:

 ...
 ?php echo $form['cmb_adults_1']-render(array('class' =
 txt_boxes_peq)) ?
 ?php echo $form['rdb_rooms']-render(array('class' =
 class='radiobtn')) ?
 ...

 how can i set the values of them bases on the session variable? i have
 tryed several ways none of them worked, for example:

 ?php echo $form['cmb_adults_1']-render(array('class' =
 txt_boxes_peq), array(default = 3)) ?

 Any ideas?

 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.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: radiobutton and select values

2010-04-27 Thread fRAnKEnSTEin
hi,

The problem is that i am using a form, so instead of cretaing a
select_tag in the template, i use for example something like this in
my form class:

...
new sfWidgetFormSelect(array( 'choices' = $this-getGroupChoices() ))
...
in the form class a tryed to retrieve my session variables using
symfony session object like:

$a = $this-getUser()-getAttribute('nickname');

but this send an error telling me that the $this-getUser() does not
exists.

So, how can set the value of a combo based con a session variable,
when this combo is created inside a form class using forms widgets?

what i lik to do is something like ?php echo $form('combo')-
render(array(...), selected = 3) //so the number 3 is stored in
the session variable, and here tels de helper to marck as  selectes
the index 3 of the combo

ideas?

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: radiobutton and select values

2010-04-27 Thread fRAnKEnSTEin

hi,
The problem is that i am using a form, so instead of cretaing a
select_tag in the template, i use for example something like this
in
my form class:
...
new sfWidgetFormSelect(array( 'choices' = $this-
getGroupChoices() ))
...
in the form class a tryed to retrieve my session variables using
symfony session object but this send an error telling that it does
not
exists.
So, how can set the value of a combo based con a session variable,
when this combo is created inside a form class using forms widgets?

what i like to do is something like ?php echo $form('combo')-
render(array(...), selected = 3) //so the number 3 is stored in
the session variable, and here tels de helper to marck as  selectes
the index 3 of the combo

ideas?
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: Doctrine innerJoin doubt

2010-04-27 Thread fRAnKEnSTEin
someone with an idea..still having problems with 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


[symfony-users] Re: sfWidgetFormDoctrineChoice problem

2010-04-27 Thread webdev_aw_ucsb


 'profileid' = new sfWidgetFormDoctrineChoice(array('model' = 
 $this-getRelatedModelName('Profile'), 'add_empty' = false)),

You can change the above code to include a method to call to display
the column you want. For example:

?php,
#method: The method to use to display object values (__toString by
default)

// in your configure()
//...
'profileid' = new sfWidgetFormDoctrineChoice(array('model' = $this-
getRelatedModelName('Profile'), 'add_empty' = false, 'method' =
'show_profile_column'));

// in Profile.php Model class.
public function show_profile_column()
{
  # show profile Column of Profile Table.
  return $this-getProfile();


?

The above should work. You can customize sfWidgetFormDoctrineChoice
more using the $options array keys found here:
http://www.symfony-project.org/api/1_2/sfWidgetFormDoctrineChoice

regards,
-dg

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

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