[symfony-users] Stop a nuclear disaster

2010-03-18 Thread paonethestar

Hi ,Our government is churning out one hazardous bill after another. This time it is a bill called the Civil Liability for Nuclear Damage, and it's coming up for a vote in a couple of days.
 
The bill lets U.S. corporations off the hook for any nuclear accidents they cause on Indian soil. They'd only have to pay a meagre amount, and Indian taxpayers would be stuck paying crores for the nuclear clean up and to compensate the victims.
 
Without any public debate, the Prime Minister is appeasing American interests and ignoring our safety.
 
Greenpeace is launching a petition asking the PM to hold a public consultation before introducing the bill. 
 
I have already signed this petition. Can you join me?

http://www.greenpeace.org/india/stop-the-vote

Thanks!	 paonethes...@gmail.com
			You are receiving this email because someone you know sent it to you from the Greenpeace site. Greenpeace retains no information about individuals contacted through its site, and will not send you further messages without your consent -- although your friends could, of course, send you another message.
			



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

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


Re: [symfony-users] Stop a nuclear disaster

2010-03-18 Thread DEEPAK BHATIA
Hi,

It is not a good idea to use symfony google groups for which you can create
a new google group.

Apologies to all members of symfony google group.

Deepak Bhatia
Project Manager
NEC HCL System Technologies
India

On Thu, Mar 18, 2010 at 2:09 PM, Gareth McCumskey gmccums...@gmail.comwrote:

 sigh .. quit spamming please

 On Tue, Mar 16, 2010 at 7:18 AM,  paonethes...@gmail.com wrote:
  Hi ,
 
  Our government is churning out one hazardous bill after another. This
 time
  it is a bill called the Civil Liability for Nuclear Damage, and it's
 coming
  up for a vote in a couple of days.
 
  The bill lets U.S. corporations off the hook for any nuclear accidents
 they
  cause on Indian soil. They'd only have to pay a meagre amount, and Indian
  taxpayers would be stuck paying crores for the nuclear clean up and to
  compensate the victims.
 
  Without any public debate, the Prime Minister is appeasing American
  interests and ignoring our safety.
 
  Greenpeace is launching a petition asking the PM to hold a public
  consultation before introducing the bill.
 
  I have already signed this petition. Can you join me?
 
  http://www.greenpeace.org/india/stop-the-vote
 
  Thanks!
 
  paonethes...@gmail.com
 
  You are receiving this email because someone you know sent it to you from
  the Greenpeace site. Greenpeace retains no information about individuals
  contacted through its site, and will not send you further messages
 without
  your consent -- although your friends could, of course, send you another
  message.
 
  --
  If you want to report a vulnerability issue on symfony, please send it to
  security at symfony-project.com
 
  You received this message because you are subscribed to the Google
  Groups symfony users group.
  To post to this group, send email to symfony-users@googlegroups.com
  To unsubscribe from this group, send email to
  symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/symfony-users?hl=en



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

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

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

2010-03-18 Thread Massimiliano Arione
You can try with alternative schema syntax:
http://www.symfony-project.org/cookbook/1_2/en/alternative_schema

cheers
Massimiliano

On 17 Mar, 17:37, Brandon Turner btur...@bltweb.net wrote:
 I'm using Propel in Symfony 1.3.3.  If I have a database table named
 'myDatabaseTable' and would like the propel generated classname to be
 MyDatabaseTable, does anyone know how I can do this?  Currently,
 propel generates Mydatabasetable for the classname.

 I have tried using the phpName table attribute but it does not work due
 to this two year old bug:http://trac.symfony-project.org/ticket/4156

 Here is a snippet from my schema:

 schema.yml

 propel:
   myDatabaseTable:
     _attributes:  { phpName: MyDatabaseTable }
     id:  { type: Integer, required: true, primaryKey: true,
 autoIncrement: true }
     amount: { type: Integer }

 Thanks for any help.  For the past two years I've just been commenting
 out the lines indicated in ticket #4156, but I'd like to do this
 correctly as I migrate to 1.4.

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

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


[symfony-users] Re: Sf 1.4 + Propel + Sqlite : unproper handling of bool criteria

2010-03-18 Thread Massimiliano Arione
Are those fields defined as boolean in your schema?
Anyway, if you put your code in the correct model class, it's not
overwritten at every generation.

cheers
Massimiliano

On 17 Mar, 14:18, SlimShaggy filthy.m...@gmail.com wrote:
 Hello all,
 I am currently migrating an app from Symphony 1.2 to 1.4
 I am using an sqlite db and I encountered a problem with the generated
 queries regarding booleans.

 Here is a part of my source code:
 $c = new Criteria();
 $c-add(ShowPeer::IS_PUBLISHED,true);
 $c-add(ShowPeer::IS_CANCELED,false);

 And here is the generated SQL query:
 SELECT DISTINCT show.ID, show.TITLE, (...)
 WHERE show.IS_PUBLISHED=true AND show.IS_CANCELED=false (...)

 What used to retrieve the data I was looking for no longer works!
 No error generated, just an empty result. On the other end, if I copy
  paste the query in sqlitebrowser I do get an error:
 no such column: true

 That is, booleans don't exist in Sqlite they are just treated as
 integers. It all work fine if I convert true-1 and false-0 in the
 SQL. How comes Sf/propel can't handle this anymore ?

 I tryed to mess around, changing my criteria to
 $c-add(ShowPeer::IS_PUBLISHED,'1');
 $c-add(ShowPeer::IS_CANCELED,'0');
 But even after cleaning the cache it's still generating the same
 query.

 Any clue, someone ? This is driving me nuts

 Vince

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

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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: Sf 1.4 + Propel + Sqlite : unproper handling of bool criteria

2010-03-18 Thread Gareth McCumskey
Alter your schema to change the type to INTEGER, rebuild the model, do
a symfony cc, then use the queries to check for 1 or 0 but with no
quotes so:

$c-add(ShowPeer::IS_PUBLISHED,1);

instead of:

$c-add(ShowPeer::IS_PUBLISHED,'1');

On Thu, Mar 18, 2010 at 3:15 PM, Massimiliano Arione garak...@gmail.com wrote:
 Are those fields defined as boolean in your schema?
 Anyway, if you put your code in the correct model class, it's not
 overwritten at every generation.

 cheers
 Massimiliano

 On 17 Mar, 14:18, SlimShaggy filthy.m...@gmail.com wrote:
 Hello all,
 I am currently migrating an app from Symphony 1.2 to 1.4
 I am using an sqlite db and I encountered a problem with the generated
 queries regarding booleans.

 Here is a part of my source code:
 $c = new Criteria();
 $c-add(ShowPeer::IS_PUBLISHED,true);
 $c-add(ShowPeer::IS_CANCELED,false);

 And here is the generated SQL query:
 SELECT DISTINCT show.ID, show.TITLE, (...)
 WHERE show.IS_PUBLISHED=true AND show.IS_CANCELED=false (...)

 What used to retrieve the data I was looking for no longer works!
 No error generated, just an empty result. On the other end, if I copy
  paste the query in sqlitebrowser I do get an error:
 no such column: true

 That is, booleans don't exist in Sqlite they are just treated as
 integers. It all work fine if I convert true-1 and false-0 in the
 SQL. How comes Sf/propel can't handle this anymore ?

 I tryed to mess around, changing my criteria to
 $c-add(ShowPeer::IS_PUBLISHED,'1');
 $c-add(ShowPeer::IS_CANCELED,'0');
 But even after cleaning the cache it's still generating the same
 query.

 Any clue, someone ? This is driving me nuts

 Vince

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

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



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

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

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


[symfony-users] Session Timeout

2010-03-18 Thread DEEPAK BHATIA
Hi,

How do we check whether session handling between client and server is
correct as per factories.yml setting ?

Can we debug exactly when the session get expired ?

Thanks in advance :-)

Regards

Deepak Bhatia

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

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

2010-03-18 Thread Javier Garcia

Hi,

this is the index action and template generated at the backend for the 
model coche.


public function executeIndex(sfWebRequest $request)
  {
// sorting
if ($request-getParameter('sort')  
$this-isValidSortColumn($request-getParameter('sort')))

{
  $this-setSort(array($request-getParameter('sort'), 
$request-getParameter('sort_type')));

}

// pager
if ($request-getParameter('page'))
{
  $this-setPage($request-getParameter('page'));
}

$this-pager = $this-getPager();
$this-sort = $this-getSort();
  }


?php use_helper('I18N', 'Date') ?
?php include_partial('coche/assets') ?

div id=sf_admin_container
h1?php echo __('Coche List', array(), 'messages') ?/h1

?php include_partial('coche/flashes') ?

div id=sf_admin_header
?php include_partial('coche/list_header', array('pager' = $pager)) ?
/div

div id=sf_admin_bar
?php include_partial('coche/filters', array('form' = $filters, 
'configuration' = $configuration)) ?

/div

div id=sf_admin_content
form action=?php echo url_for('coche_coche_collection', 
array('action' = 'batch')) ? method=post
?php include_partial('coche/list', array('pager' = $pager, 'sort' = 
$sort, 'helper' = $helper)) ?

ul class=sf_admin_actions
?php include_partial('coche/list_batch_actions', array('helper' = 
$helper)) ?

?php include_partial('coche/list_actions', array('helper' = $helper)) ?
/ul
/form
/div

div id=sf_admin_footer
?php include_partial('coche/list_footer', array('pager' = $pager)) ?
/div
/div


In the template there is this line:

include_partial('coche/filters', array('form' = $filters, 
'configuration' = $configuration)) ?


but i can not find the $filters and $configuration variables in the 
index action ($this-filters and $this-configuration).


How is that possible?

Javi

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

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


[symfony-users] An action that serves images not working without frontend_dev.php!

2010-03-18 Thread Ahsanul
Hello all,

I have an action which I use like this:

img src=/image/72/72/name/
5dc0758466c56840416868ef4c5be3a62a248ed3.jpg /

which gives me the image after resizing it to 72x72

However the problem is, it's only working if I am using
frontend_dev.php. If I use index.php the image is not shown even-
though I have disabled cache in my view.yml! Could anybody please
help?

Here is my action's code. I am using image magic for resizing image:


  public function executeImage(sfWebRequest $request)
  {
$width = $request-getParameter('width');
$height = $request-getParameter('height');

$uploadPath = sfConfig::get('sf_root_dir') .
'/' .sfConfig::get('app_my_upload_path');

$imageName = 'random_image_name';

$filePath = $uploadPath . '/' . $imageName;
$resizedFilePath = $uploadPath . '/' . thumb_{$width}_{$height}
_{$imageName};

if(!file_exists($resizedFilePath))
{
  $img = new sfImage($filePath);
  $img-thumbnail($width, $height);
  $img-setQuality(80);
  $img-saveAs($resizedFilePath);
}

$img = new sfImage($resizedFilePath);
$response = $this-getResponse();
$response-setContentType($img-getMIMEType());
$response-setContent($img);

return sfView::NONE;
  }
}

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

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

2010-03-18 Thread ziclo
I found the solution to this issue :

I copied all actions found into the cache / backend folder. Then i
debugged some errors (lib missing, etc..).
So the solution is to use the admin filters, pager and sort actions.
Now it works fine.

Thank you all !

On 13 fév, 14:55, ziclo lauren...@gmail.com wrote:
 Hi,

 I would like to be able tosort(order by ASC ou DESC) by clicking on
 a colon title (th). The same way as the backend of the jobeet
 tutorial.
 I don't want it on the backend but on the frontend.

 With doctrine i can use the pager without difficulties but i do not
 know how tosorta list (result of a query) by a simple click on the
 title of a colonn.

 Does a tutorial exists about that ?

 Thank you.

 Ziclo

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

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

2010-03-18 Thread Daniel Lohse
They are set in the preExecute function. You'd have to search in the 
data/generator/sfDoctrineModule folder inside the symfony folder.

Cheers, Daniel

On 18.03.2010, at 15:01, Javier Garcia wrote:

 Hi,
 
 this is the index action and template generated at the backend for the model 
 coche.
 
 public function executeIndex(sfWebRequest $request)
  {
// sorting
if ($request-getParameter('sort')  
 $this-isValidSortColumn($request-getParameter('sort')))
{
  $this-setSort(array($request-getParameter('sort'), 
 $request-getParameter('sort_type')));
}
 
// pager
if ($request-getParameter('page'))
{
  $this-setPage($request-getParameter('page'));
}
 
$this-pager = $this-getPager();
$this-sort = $this-getSort();
  }
 
 
 ?php use_helper('I18N', 'Date') ?
 ?php include_partial('coche/assets') ?
 
 div id=sf_admin_container
 h1?php echo __('Coche List', array(), 'messages') ?/h1
 
 ?php include_partial('coche/flashes') ?
 
 div id=sf_admin_header
 ?php include_partial('coche/list_header', array('pager' = $pager)) ?
 /div
 
 div id=sf_admin_bar
 ?php include_partial('coche/filters', array('form' = $filters, 
 'configuration' = $configuration)) ?
 /div
 
 div id=sf_admin_content
 form action=?php echo url_for('coche_coche_collection', array('action' = 
 'batch')) ? method=post
 ?php include_partial('coche/list', array('pager' = $pager, 'sort' = $sort, 
 'helper' = $helper)) ?
 ul class=sf_admin_actions
 ?php include_partial('coche/list_batch_actions', array('helper' = $helper)) 
 ?
 ?php include_partial('coche/list_actions', array('helper' = $helper)) ?
 /ul
 /form
 /div
 
 div id=sf_admin_footer
 ?php include_partial('coche/list_footer', array('pager' = $pager)) ?
 /div
 /div
 
 
 In the template there is this line:
 
 include_partial('coche/filters', array('form' = $filters, 'configuration' = 
 $configuration)) ?
 
 but i can not find the $filters and $configuration variables in the index 
 action ($this-filters and $this-configuration).
 
 How is that possible?
 
 Javi
 
 -- 
 If you want to report a vulnerability issue on symfony, please send it to 
 security at symfony-project.com
 
 You received this message because you are subscribed to the Google
 Groups symfony users group.
 To post to this group, send email to symfony-users@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en

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

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


[symfony-users] relation between tables without onDelete

2010-03-18 Thread saki
hi guys!

Please help me to solve my little problem. I have two tables. Users
and Partners... in the schema.yml file you can see the relation..

rmPartner:
  ...
  relations:
rmUser: { onDelete: CASCADE, local: contact, foreign: id }

Unfortunately, when I delete a User, symfony deletes his Partner(s),
too. I think onDelete: CASCADE cause this. A removed and run: symfony
doctrine:build --all ... now, when i want to delete a user, a get:

500 | Internal Server Error | Doctrine_Connection_Mysql_Exception
SQLSTATE[HY000]: General error: 1451 Cannot delete or update a parent
row: a foreign key constraint fails (`rm`.`rm_partner`, CONSTRAINT
`rm_partner_contact_rm_user_id` FOREIGN KEY (`contact`) REFERENCES
`rm_user` (`id`))

How can I solve this? What should I do, when i dont want to delete the
related rows?

Thank you 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] Security: can't log in

2010-03-18 Thread kim
I'm getting this strange fault:

I'm using sfDoctrineGuardPlugin (like described in the book) and I
follow all steps.  When i test it, then indeed my backend page is
secured but when i press the Proceed to login link i come to the
login page but i don't get to see it because to see that page i have
to be logged in.  Even when i put all security out then still he is
asking me to be logged in to see the page (what is impossible because
I must log in on that page!)

does anyone know the solution for 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] error installing sfDoctrineGuardPlugin

2010-03-18 Thread kim
Hello,

When i want to install sfDoctrineGuardPlugin I get following output

C:\Users\Kimsymfony plugin:install sfDoctrineGuardPlugin
 plugininstalling plugin sfDoctrineGuardPlugin
PHP Deprecated:  Assigning the return value of new by reference is
deprecated in
 C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 650

Deprecated: Assigning the return value of new by reference is
deprecated in C:\w
amp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 650
PHP Deprecated:  Assigning the return value of new by reference is
deprecated in
 C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 697

Deprecated: Assigning the return value of new by reference is
deprecated in C:\w
amp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 697
PHP Deprecated:  Assigning the return value of new by reference is
deprecated in
 C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 757

Deprecated: Assigning the return value of new by reference is
deprecated in C:\w
amp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 757
PHP Deprecated:  Assigning the return value of new by reference is
deprecated in
 C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 786

Deprecated: Assigning the return value of new by reference is
deprecated in C:\w
amp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 786
PHP Deprecated:  Assigning the return value of new by reference is
deprecated in
 C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 914

Deprecated: Assigning the return value of new by reference is
deprecated in C:\w
amp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 914
PHP Deprecated:  Assigning the return value of new by reference is
deprecated in
 C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 1578

Deprecated: Assigning the return value of new by reference is
deprecated in C:\w
amp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 1578
PHP Deprecated:  Assigning the return value of new by reference is
deprecated in
 C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 1608

Deprecated: Assigning the return value of new by reference is
deprecated in C:\w
amp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 1608
PHP Deprecated:  Assigning the return value of new by reference is
deprecated in
 C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 2035

Deprecated: Assigning the return value of new by reference is
deprecated in C:\w
amp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 2035
PHP Deprecated:  Assigning the return value of new by reference is
deprecated in
 C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 2088

Deprecated: Assigning the return value of new by reference is
deprecated in C:\w
amp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 2088
PHP Deprecated:  Assigning the return value of new by reference is
deprecated in
 C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Registry.php on line 322

Deprecated: Assigning the return value of new by reference is
deprecated in C:\w
amp\bin\php\php5.3.0\PEAR\PEAR\Registry.php on line 322
PHP Deprecated:  Assigning the return value of new by reference is
deprecated in
 C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Registry.php on line 1431

Deprecated: Assigning the return value of new by reference is
deprecated in C:\w
amp\bin\php\php5.3.0\PEAR\PEAR\Registry.php on line 1431
PHP Deprecated:  Assigning the return value of new by reference is
deprecated in
 C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Registry.php on line 1439

Deprecated: Assigning the return value of new by reference is
deprecated in C:\w
amp\bin\php\php5.3.0\PEAR\PEAR\Registry.php on line 1439
PHP Deprecated:  Assigning the return value of new by reference is
deprecated in
 C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Command.php on line 137

Deprecated: Assigning the return value of new by reference is
deprecated in C:\w
amp\bin\php\php5.3.0\PEAR\PEAR\Command.php on line 137
PHP Deprecated:  Assigning the return value of new by reference is
deprecated in
 C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Command.php on line 154

Deprecated: Assigning the return value of new by reference is
deprecated in C:\w
amp\bin\php\php5.3.0\PEAR\PEAR\Command.php on line 154
PHP Deprecated:  Assigning the return value of new by reference is
deprecated in
 C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Frontend.php on line 91

Deprecated: Assigning the return value of new by reference is
deprecated in C:\w
amp\bin\php\php5.3.0\PEAR\PEAR\Frontend.php on line 91
PHP Deprecated:  Assigning the return value of new by reference is
deprecated in
 C:\wamp\bin\php\php5.3.0\PEAR\PEAR\PackageFile\v2.php on line 148

Deprecated: Assigning the return value of new by reference is
deprecated in C:\w
amp\bin\php\php5.3.0\PEAR\PEAR\PackageFile\v2.php on line 148
PHP Deprecated:  Assigning the return value of new by reference is
deprecated in
 C:\wamp\bin\php\php5.3.0\PEAR\PEAR\PackageFile\v2.php on line 166

Deprecated: Assigning the return value of new by reference is
deprecated in C:\w
amp\bin\php\php5.3.0\PEAR\PEAR\PackageFile\v2.php on line 166
PHP Deprecated:  Assigning the return value of new by 

[symfony-users] Unable to put sfGuardUser tables in a different database that the rest of the tables

2010-03-18 Thread Manel
I want the data of the sfGuardUser plugin in a database that is not
the propel database. I want this because I will have several
applications in diferent servers, but I want to unify the user
credentials for all the applications.


I've defined 2 databases in databases.yml:

all:
  propel:
class: sfPropelDatabase
param:
  classname: DebugPDO
  dsn: 'mysql:dbname=dbdata;host=localhost'
  username: datauser
  password: 

  dbuser:
class: sfPropelDatabase
param:
  classname: PropelPDO
  dsn: 'mysql:dbname=dbuser;host=remote_server'
  username: sfGuardUser
  password: 

And I've modified the schema.yml of the plugin dfGuardUser to reflect
the new database:

dbuser:
  _attributes:  { package: plugins.sfGuardPlugin.lib.model }

  sf_guard_group:
_attributes:{ phpName: sfGuardGroup }
id: ~
name:   { type: varchar, size: 255, required: true, index:
unique }
description:{ type: longvarchar }

...


When I try to do a symfony propel:build-forms I get the following
error:

 propelgenerating form classes

  Cannot fetch TableMap for undefined table: sf_guard_user.  Make sure
you have the static MapBuilder registration code after your peer stub
class definition.

If I return the schema.yml of sfGuardUser to the original database
(propel) all runs fine, but I get the tables in the same database.

I searched for this problems in the groups and in the symfony website
but I'm unable to find a solution.

I'm using symfony 1.2.12 on a Linux box.

Thanks for your help.


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

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


[symfony-users] Admin generator. Two modules from same schema or a module with two views ?

2010-03-18 Thread Race


# config/schema.yml
propel:

jobeet_job:
id: ~
category_id: { type: integer, foreignTable: jobeet_category,
foreignReference: id, required: true }
type: { type: varchar(255) }
company: { type: varchar(255), required: true }
logo: { type: varchar(255) }
url: { type: varchar(255) }
position: { type: varchar(255), required: true }
location: { type: varchar(255), required: true }
description: { type: longvarchar, required: true }
how_to_apply: { type: longvarchar, required: true }
token: { type: varchar(255), required: true, index: unique }
is_public: { type: boolean, required: true, default: 1 }
is_activated: { type: boolean, required: true, default: 0 }
email: { type: varchar(255), required: true }
expires_at: { type: timestamp, required: true }
created_at: ~
updated_at: ~

Can i generate two modules where module job and detailed_job is
configured different from his own generator.yml file ?
Example:
symfony propel:generate-admin backend JobeetJob --module=job

symfony propel:generate-admin backend JobeetJob --module=detailed_job


Finally: I need a module with two faces. One view is Simple and one is
Detailed.

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] What about Dimensions plugin ?

2010-03-18 Thread Aurélien Fredouelle
Hi,

I have been looking for some days how to do theme-ing in Symfony,
and in many threads people advised to use the ysfDimensionsPlugin.

However, the last version of this plugin is for symfony 1.1, with no
further updates. Any ideas why ? Is there a new standard way to do
what this plugin is for ?

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


Re: [symfony-users] What about Dimensions plugin ?

2010-03-18 Thread Thomas Rabaix
What you mean by theme-ing ?

On Wed, Mar 17, 2010 at 9:36 AM, Aurélien Fredouelle 
aurelien.fredoue...@gmail.com wrote:

 Hi,

 I have been looking for some days how to do theme-ing in Symfony,
 and in many threads people advised to use the ysfDimensionsPlugin.

 However, the last version of this plugin is for symfony 1.1, with no
 further updates. Any ideas why ? Is there a new standard way to do
 what this plugin is for ?

 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.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] Re: Questio about the code of the backend

2010-03-18 Thread Javier Garcia
Hi Daniel,

this below is the preExecute() function but there isn't anything about
$this-filters and $this-configuration :

class autoCocheActions extends sfActions
{


  public function preExecute()
  {
$this-configuration = new cocheGeneratorConfiguration();

if (!$this-getUser()-hasCredential($this-configuration-
getCredentials($this-getActionName(
{
  $this-forward(sfConfig::get('sf_secure_module'),
sfConfig::get('sf_secure_action'));
}

$this-dispatcher-notify(new sfEvent($this, 'admin.pre_execute',
array('configuration' = $this-configuration)));

$this-helper = new cocheGeneratorHelper();
  }

}



On Mar 18, 3:56 pm, Daniel Lohse annismcken...@googlemail.com wrote:
 They are set in the preExecute function. You'd have to search in the 
 data/generator/sfDoctrineModule folder inside the symfony folder.

 Cheers, Daniel

 On 18.03.2010, at 15:01, Javier Garcia wrote:

  Hi,

  this is the index action and template generated at the backend for the 
  model coche.

  public function executeIndex(sfWebRequest $request)
   {
     // sorting
     if ($request-getParameter('sort')  
  $this-isValidSortColumn($request-getParameter('sort')))
     {
       $this-setSort(array($request-getParameter('sort'), 
  $request-getParameter('sort_type')));
     }

     // pager
     if ($request-getParameter('page'))
     {
       $this-setPage($request-getParameter('page'));
     }

     $this-pager = $this-getPager();
     $this-sort = $this-getSort();
   }

  ?php use_helper('I18N', 'Date') ?
  ?php include_partial('coche/assets') ?

  div id=sf_admin_container
  h1?php echo __('Coche List', array(), 'messages') ?/h1

  ?php include_partial('coche/flashes') ?

  div id=sf_admin_header
  ?php include_partial('coche/list_header', array('pager' = $pager)) ?
  /div

  div id=sf_admin_bar
  ?php include_partial('coche/filters', array('form' = $filters, 
  'configuration' = $configuration)) ?
  /div

  div id=sf_admin_content
  form action=?php echo url_for('coche_coche_collection', array('action' 
  = 'batch')) ? method=post
  ?php include_partial('coche/list', array('pager' = $pager, 'sort' = 
  $sort, 'helper' = $helper)) ?
  ul class=sf_admin_actions
  ?php include_partial('coche/list_batch_actions', array('helper' = 
  $helper)) ?
  ?php include_partial('coche/list_actions', array('helper' = $helper)) ?
  /ul
  /form
  /div

  div id=sf_admin_footer
  ?php include_partial('coche/list_footer', array('pager' = $pager)) ?
  /div
  /div

  In the template there is this line:

  include_partial('coche/filters', array('form' = $filters, 'configuration' 
  = $configuration)) ?

  but i can not find the $filters and $configuration variables in the index 
  action ($this-filters and $this-configuration).

  How is that possible?

  Javi

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

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

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

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


[symfony-users] Re: What about Dimensions plugin ?

2010-03-18 Thread Aurélien Fredouelle
I want my project to have multiple themes : the user will be able to
choose what the website look like. Think of the themes of the phpbb
forum.

In my case, this means changing not only the css, but also some
templates. What I need is the following : depending on some user
variables, the templates will be looked up for in apps/modules/
mymodule/templates/themeName/ (and, if not found in this directory,
the default template located in apps/modules/mymodule/templates/ will
be used). This is exactly what the ysfDimensionsPlugin did, however
there it does not exist for sf 1.4.

I wonder what is the standard way to achieve this (particularly, I do
not want to mess with the cache).

On 18 mar, 17:02, Thomas Rabaix thomas.rab...@gmail.com wrote:
 What you mean by theme-ing ?

 On Wed, Mar 17, 2010 at 9:36 AM, Aurélien Fredouelle 



 aurelien.fredoue...@gmail.com wrote:
  Hi,

  I have been looking for some days how to do theme-ing in Symfony,
  and in many threads people advised to use the ysfDimensionsPlugin.

  However, the last version of this plugin is for symfony 1.1, with no
  further updates. Any ideas why ? Is there a new standard way to do
  what this plugin is for ?

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

 --
 Thomas Rabaixhttp://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] Re: convert to nested set

2010-03-18 Thread Richtermeister
If you're using propel, I can give you a class that does that.

Daniel


On Mar 17, 8:52 pm, Gatos ega...@gmail.com wrote:
 Hello,

 If there any code available for converting parent/child table to a nested
 set table?

 Thank you 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] Deploying: if i write the password in properties.ini, why i have to write it again?

2010-03-18 Thread Javier Garcia

Hi,

this is my properties.ini. When i deploy my project (deploy --go) it 
asks me the password.


[symfony]
  name=rs
[production]
  host=208.43.66.44
  port=65001
  user=tirengar
  dir=public_html
  type=rsync
  pass=my_password ---

Javi

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

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


Re: [symfony-users] Deploying: if i write the password in properties.ini, why i have to write it again?

2010-03-18 Thread Augusto Flavio
Hi Javier,

try to create a ssh connection without password. You can do it using a ssh
public key.



Bye.



Augusto Morais

2010/3/18 Javier Garcia tirengar...@gmail.com

 Hi,

 this is my properties.ini. When i deploy my project (deploy --go) it asks
 me the password.

 [symfony]
  name=rs
 [production]
  host=208.43.66.44
  port=65001
  user=tirengar
  dir=public_html
  type=rsync
  pass=my_password ---

 Javi

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

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

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

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

Re: [symfony-users] Re: Questio about the code of the backend

2010-03-18 Thread Daniel Lohse
Huh, am I blind?

There is $this-configuration = new cocheGeneratorConfiguration(); in your 
post, so there's your $configuration variable coming from.

As for the $filters variable, you're right, that's not there but it's in the 
indexAction – this calls $this-getPager() which in turn calls 
$this-buildQuery() and this sets $this-filters. Phew. :)

Cheers, Daniel

On 18.03.2010, at 17:33, Javier Garcia wrote:

 Hi Daniel,
 
 this below is the preExecute() function but there isn't anything about
 $this-filters and $this-configuration :
 
 class autoCocheActions extends sfActions
 {
 
 
  public function preExecute()
  {
$this-configuration = new cocheGeneratorConfiguration();
 
if (!$this-getUser()-hasCredential($this-configuration-
 getCredentials($this-getActionName(
{
  $this-forward(sfConfig::get('sf_secure_module'),
 sfConfig::get('sf_secure_action'));
}
 
$this-dispatcher-notify(new sfEvent($this, 'admin.pre_execute',
 array('configuration' = $this-configuration)));
 
$this-helper = new cocheGeneratorHelper();
  }
 
 }
 
 
 
 On Mar 18, 3:56 pm, Daniel Lohse annismcken...@googlemail.com wrote:
 They are set in the preExecute function. You'd have to search in the 
 data/generator/sfDoctrineModule folder inside the symfony folder.
 
 Cheers, Daniel
 
 On 18.03.2010, at 15:01, Javier Garcia wrote:
 
 Hi,
 
 this is the index action and template generated at the backend for the 
 model coche.
 
 public function executeIndex(sfWebRequest $request)
  {
// sorting
if ($request-getParameter('sort')  
 $this-isValidSortColumn($request-getParameter('sort')))
{
  $this-setSort(array($request-getParameter('sort'), 
 $request-getParameter('sort_type')));
}
 
// pager
if ($request-getParameter('page'))
{
  $this-setPage($request-getParameter('page'));
}
 
$this-pager = $this-getPager();
$this-sort = $this-getSort();
  }
 
 ?php use_helper('I18N', 'Date') ?
 ?php include_partial('coche/assets') ?
 
 div id=sf_admin_container
 h1?php echo __('Coche List', array(), 'messages') ?/h1
 
 ?php include_partial('coche/flashes') ?
 
 div id=sf_admin_header
 ?php include_partial('coche/list_header', array('pager' = $pager)) ?
 /div
 
 div id=sf_admin_bar
 ?php include_partial('coche/filters', array('form' = $filters, 
 'configuration' = $configuration)) ?
 /div
 
 div id=sf_admin_content
 form action=?php echo url_for('coche_coche_collection', array('action' 
 = 'batch')) ? method=post
 ?php include_partial('coche/list', array('pager' = $pager, 'sort' = 
 $sort, 'helper' = $helper)) ?
 ul class=sf_admin_actions
 ?php include_partial('coche/list_batch_actions', array('helper' = 
 $helper)) ?
 ?php include_partial('coche/list_actions', array('helper' = $helper)) ?
 /ul
 /form
 /div
 
 div id=sf_admin_footer
 ?php include_partial('coche/list_footer', array('pager' = $pager)) ?
 /div
 /div
 
 In the template there is this line:
 
 include_partial('coche/filters', array('form' = $filters, 'configuration' 
 = $configuration)) ?
 
 but i can not find the $filters and $configuration variables in the index 
 action ($this-filters and $this-configuration).
 
 How is that possible?
 
 Javi
 
 --
 If you want to report a vulnerability issue on symfony, please send it to 
 security at symfony-project.com
 
 You received this message because you are subscribed to the Google
 Groups symfony users group.
 To post to this group, send email to symfony-users@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en
 
 -- 
 If you want to report a vulnerability issue on symfony, please send it to 
 security at symfony-project.com
 
 You received this message because you are subscribed to the Google
 Groups symfony users group.
 To post to this group, send email to symfony-users@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en

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

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

2010-03-18 Thread Lea Hänsenberger
hi,
there's still a partner with a foreign key pointing to the user you want to 
delete. you should first unlink the user from the partner:
$partner-unlink('rmUser',$user_id);

Then you should be able to delete the user object.

cheers,
Lea

On Mar 18, 2010, at 13:19 , saki wrote:

 hi guys!
 
 Please help me to solve my little problem. I have two tables. Users
 and Partners... in the schema.yml file you can see the relation..
 
 rmPartner:
  ...
  relations:
rmUser: { onDelete: CASCADE, local: contact, foreign: id }
 
 Unfortunately, when I delete a User, symfony deletes his Partner(s),
 too. I think onDelete: CASCADE cause this. A removed and run: symfony
 doctrine:build --all ... now, when i want to delete a user, a get:
 
 500 | Internal Server Error | Doctrine_Connection_Mysql_Exception
 SQLSTATE[HY000]: General error: 1451 Cannot delete or update a parent
 row: a foreign key constraint fails (`rm`.`rm_partner`, CONSTRAINT
 `rm_partner_contact_rm_user_id` FOREIGN KEY (`contact`) REFERENCES
 `rm_user` (`id`))
 
 How can I solve this? What should I do, when i dont want to delete the
 related rows?
 
 Thank you in advance!
 
 -- 
 If you want to report a vulnerability issue on symfony, please send it to 
 security at symfony-project.com
 
 You received this message because you are subscribed to the Google
 Groups symfony users group.
 To post to this group, send email to symfony-users@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en

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

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


[symfony-users] Re: Questio about the code of the backend

2010-03-18 Thread Javier Garcia
Thanks!, i think l was looking more for $this-filters than for $this-
configuration..

Javi



On Mar 18, 7:14 pm, Daniel Lohse annismcken...@googlemail.com wrote:
 Huh, am I blind?

 There is $this-configuration = new cocheGeneratorConfiguration(); in your 
 post, so there's your $configuration variable coming from.

 As for the $filters variable, you're right, that's not there but it's in the 
 indexAction – this calls $this-getPager() which in turn calls 
 $this-buildQuery() and this sets $this-filters. Phew. :)

 Cheers, Daniel

 On 18.03.2010, at 17:33, Javier Garcia wrote:

  Hi Daniel,

  this below is the preExecute() function but there isn't anything about
  $this-filters and $this-configuration :

  class autoCocheActions extends sfActions
  {

   public function preExecute()
   {
     $this-configuration = new cocheGeneratorConfiguration();

     if (!$this-getUser()-hasCredential($this-configuration-
  getCredentials($this-getActionName(
     {
       $this-forward(sfConfig::get('sf_secure_module'),
  sfConfig::get('sf_secure_action'));
     }

     $this-dispatcher-notify(new sfEvent($this, 'admin.pre_execute',
  array('configuration' = $this-configuration)));

     $this-helper = new cocheGeneratorHelper();
   }

  }

  On Mar 18, 3:56 pm, Daniel Lohse annismcken...@googlemail.com wrote:
  They are set in the preExecute function. You'd have to search in the 
  data/generator/sfDoctrineModule folder inside the symfony folder.

  Cheers, Daniel

  On 18.03.2010, at 15:01, Javier Garcia wrote:

  Hi,

  this is the index action and template generated at the backend for the 
  model coche.

  public function executeIndex(sfWebRequest $request)
   {
     // sorting
     if ($request-getParameter('sort')  
  $this-isValidSortColumn($request-getParameter('sort')))
     {
       $this-setSort(array($request-getParameter('sort'), 
  $request-getParameter('sort_type')));
     }

     // pager
     if ($request-getParameter('page'))
     {
       $this-setPage($request-getParameter('page'));
     }

     $this-pager = $this-getPager();
     $this-sort = $this-getSort();
   }

  ?php use_helper('I18N', 'Date') ?
  ?php include_partial('coche/assets') ?

  div id=sf_admin_container
  h1?php echo __('Coche List', array(), 'messages') ?/h1

  ?php include_partial('coche/flashes') ?

  div id=sf_admin_header
  ?php include_partial('coche/list_header', array('pager' = $pager)) ?
  /div

  div id=sf_admin_bar
  ?php include_partial('coche/filters', array('form' = $filters, 
  'configuration' = $configuration)) ?
  /div

  div id=sf_admin_content
  form action=?php echo url_for('coche_coche_collection', array('action' 
  = 'batch')) ? method=post
  ?php include_partial('coche/list', array('pager' = $pager, 'sort' = 
  $sort, 'helper' = $helper)) ?
  ul class=sf_admin_actions
  ?php include_partial('coche/list_batch_actions', array('helper' = 
  $helper)) ?
  ?php include_partial('coche/list_actions', array('helper' = $helper)) ?
  /ul
  /form
  /div

  div id=sf_admin_footer
  ?php include_partial('coche/list_footer', array('pager' = $pager)) ?
  /div
  /div

  In the template there is this line:

  include_partial('coche/filters', array('form' = $filters, 
  'configuration' = $configuration)) ?

  but i can not find the $filters and $configuration variables in the index 
  action ($this-filters and $this-configuration).

  How is that possible?

  Javi

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

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

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

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

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

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

2010-03-18 Thread DarrenMr
Hi guys here is my route YAML:
product:
  url: /product_:brand_:name
  param: { module: products, action: view }
  requirements: { brand: \d+, name: ([a-z0-9-])+ }

However I get this error when I try to access the page:
Unable to parse /product_:brand_:name route near :name.

When my url is like:
http://64.13.224.188/frontend_dev.php/product_1_test

Does anyone know why?

Thanks,
Darren

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

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

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


Re: [symfony-users] Re: What about Dimensions plugin ?

2010-03-18 Thread Thomas Rabaix
The dimension must be set before symfony start, at the configuration level.
To be clear you do not have access to : sfContext::getInstance()
(sfSessionStorage, sfDatabase ...)

Now, the plugin should work with sf1.4 as ysfDimension just change the
configuration path ...

For your specific need it will be better to create a custom
sfViewConfigHandler to deal with js/css declarations and tweak templates
paths after symfony bootstrating (register to the load factories event) ...

On Thu, Mar 18, 2010 at 6:00 PM, Aurélien Fredouelle 
aurelien.fredoue...@gmail.com wrote:

 I want my project to have multiple themes : the user will be able to
 choose what the website look like. Think of the themes of the phpbb
 forum.

 In my case, this means changing not only the css, but also some
 templates. What I need is the following : depending on some user
 variables, the templates will be looked up for in apps/modules/
 mymodule/templates/themeName/ (and, if not found in this directory,
 the default template located in apps/modules/mymodule/templates/ will
 be used). This is exactly what the ysfDimensionsPlugin did, however
 there it does not exist for sf 1.4.

 I wonder what is the standard way to achieve this (particularly, I do
 not want to mess with the cache).

 On 18 mar, 17:02, Thomas Rabaix thomas.rab...@gmail.com wrote:
  What you mean by theme-ing ?
 
  On Wed, Mar 17, 2010 at 9:36 AM, Aurélien Fredouelle 
 
 
 
  aurelien.fredoue...@gmail.com wrote:
   Hi,
 
   I have been looking for some days how to do theme-ing in Symfony,
   and in many threads people advised to use the ysfDimensionsPlugin.
 
   However, the last version of this plugin is for symfony 1.1, with no
   further updates. Any ideas why ? Is there a new standard way to do
   what this plugin is for ?
 
   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.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
 
  --
  Thomas Rabaixhttp://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.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

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


[symfony-users] Re: Admin generator. Two modules from same schema or a module with two views ?

2010-03-18 Thread Richtermeister
Hey There,

yes, both solutions work: either create 2 distinct admin modules by
specifying the module parameter during creation,
or have one smart module that display info/forms differently. In the
latter case you'll probably have to custom code more and rely less on
the yml configuration.

Daniel



On Mar 18, 4:27 am, Race horatiu.tode...@gmail.com wrote:
 # config/schema.yml
 propel:

 jobeet_job:
 id: ~
 category_id: { type: integer, foreignTable: jobeet_category,
 foreignReference: id, required: true }
 type: { type: varchar(255) }
 company: { type: varchar(255), required: true }
 logo: { type: varchar(255) }
 url: { type: varchar(255) }
 position: { type: varchar(255), required: true }
 location: { type: varchar(255), required: true }
 description: { type: longvarchar, required: true }
 how_to_apply: { type: longvarchar, required: true }
 token: { type: varchar(255), required: true, index: unique }
 is_public: { type: boolean, required: true, default: 1 }
 is_activated: { type: boolean, required: true, default: 0 }
 email: { type: varchar(255), required: true }
 expires_at: { type: timestamp, required: true }
 created_at: ~
 updated_at: ~

 Can i generate two modules where module job and detailed_job is
 configured different from his own generator.yml file ?
 Example:
 symfony propel:generate-admin backend JobeetJob --module=job

 symfony propel:generate-admin backend JobeetJob --module=detailed_job

 Finally: I need a module with two faces. One view is Simple and one is
 Detailed.

 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

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


[symfony-users] Info about how to rename an application

2010-03-18 Thread Gustavo Fonseca
Hi all, today i have needed to rename an application (sf 1.4) and the
only information about it that i found was from a fabien's post [1]...
but i think it is out of date.

You can follow the steps of his post, but you will have to rename the file:
apps/new_name/config/old_nameConfiguration.class.php, and than
edit this file and rename the class too.

i hope this will save someone's time

[1] 
http://fabien.potencier.org/article/22/a-symfony-tip-rename-a-symfony-application

-- 
Gustavo Fonseca

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

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

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


[symfony-users] Problems with many many relations

2010-03-18 Thread Julian Reyes

Hi

i'm working in a many - many relation and symfony dont make this job 
automatic and the generator dont show me the relations, and in the 
tutorials in the projects web show how to symfony (version 1.4) makes it


example schema use in Propel

table1:
id: ~
name: ~

table2:
id: ~
work: ~

relacion_table1_table2:
id: ~
fk_tabla1: ~
fk_tabla2: ~


plese i need help with this problem






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

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

To unsubscribe from this group, send email to symfony-users+unsubscribegooglegroups.com 
or reply to this email with the words REMOVE ME as the subject.