[symfony-users] Re: Symfony 1.1 radiobutton

2008-08-29 Thread Dmitry Nesteruk
thanks, good idead, it is help :) 2008/8/30 SNake! <[EMAIL PROTECTED]> > > correct my privious code: > > public static function radioFormatter($widget, $inputs) > { >$rows = array(); >foreach ($inputs as $input) >{ > $rows[] = array('input'=> $input['input'], 'label'=> > $inpu

[symfony-users] Re: Symfony 1.1 radiobutton

2008-08-29 Thread SNake!
correct my privious code: public static function radioFormatter($widget, $inputs) { $rows = array(); foreach ($inputs as $input) { $rows[] = array('input'=> $input['input'], 'label'=> $input['label']); // correct here } return $rows; } ... .. } On 8月30日, 下午1時41

[symfony-users] Re: Symfony 1.1 radiobutton

2008-08-29 Thread SNake!
I figure out this today: define a static function on your sfForm or some class: class MyForm extends sfForm{ ... public static function radioFormatter($widget, $inputs) { $rows = array(); foreach ($inputs as $input) { $rows[] = array('input'=> $input['input'], 'label'=> $in

[symfony-users] Re: DB Column starts with Integer.

2008-08-29 Thread Tom Haskins-Vaughan
Brilliant! I never knew that. Good to know. Kris Wallsmith wrote: > Hi Alex, > > Propel provides a "peerName" attribute for each column. You can use > this to rename the peer constant. > > Kris > > On Aug 29, 2:56 pm, Fabian Lange <[EMAIL PROTECTED]> > wrote: >> Hi Alex, >> >> the easiest solu

[symfony-users] Re: DB Column starts with Integer.

2008-08-29 Thread Kris Wallsmith
Hi Alex, Propel provides a "peerName" attribute for each column. You can use this to rename the peer constant. Kris On Aug 29, 2:56 pm, Fabian Lange <[EMAIL PROTECTED]> wrote: > Hi Alex, > > the easiest solution is to create a Read/Write View of that table and give > it a different name. > > Or

[symfony-users] AW: [symfony-users] DB Column starts with Integer.

2008-08-29 Thread Fabian Lange
Hi Alex, the easiest solution is to create a Read/Write View of that table and give it a different name. Or perhaps your dbms can give a table also an alias using a different mechanism. For usage in PHP Tables and columns have to be valid php names. This also excludes table names like "class"

[symfony-users] Important : sfMySQLSessionStorage

2008-08-29 Thread Thomas Rabaix
Hello, I just found out a bug in sfMySQLSessionStorage [1] , the session_time use the mysql 'NOW()' function and before it was using php time(). Now the problem is most of snippets ( [2], [3]) found on the web to used sfMySQLSessionStorage, use bigint to store the sess_time and not a date field

[symfony-users] Re: DB Column starts with Integer.

2008-08-29 Thread Nicolas Perriault
On Fri, Aug 29, 2008 at 2:28 AM, Alex 'noetix' Joyce <[EMAIL PROTECTED]> wrote: > I'm trying to use symfony with an existing database. One table has column > names that start with integers. > > Parse error: syntax error, unexpected T_LNUMBER, expecting T_STRING in > /www/signups/lib/model/om/Base