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