Problem save() with type DATE / DATETIME

2010-08-19 Thread Oriol Franquesa
I think there's a problem trying to do a save() in a model that
contains one "Date" type column:

Cake manages automatic conversions between human format date and
DataBase format.

In particular, when I make a save operation, cake try to converts the
date with the following function declared in app/models/behaviors/
date_formatter.ctp

I get this warnings-errors:

*
Warning (2): array_combine() [function.array-combine]: Both parameters
should have an equal number of elements [APP\models\behaviors
\date_formatter.php, line 83]

Warning (2): array_combine() [function.array-combine]: Both parameters
should have an equal number of elements [APP\models\behaviors
\date_formatter.php, line 84]

Warning (2): Invalid argument supplied for foreach() [APP\models
\behaviors\date_formatter.php, line 85]

Warning (2): implode() [function.implode]: Invalid arguments passed
[APP\models\behaviors\date_formatter.php, line 92]
*

So... Can I control that save() operation don't make any translation
with date? Otherwise, I don't understand what's going wrong ...

The problem is on this instruction: $date_array =
explode($delimiterDateFormat, $date[0]);

Is trying to explode a date in format dd-mm- with delimiter "/", I
know that the easy solution is change delimiter (obviously :D), I lose
all date logic translation on entire web...

any suggestion?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


ODBC Connection with Intersystems cache

2010-08-17 Thread Oriol Franquesa
Hello!

Why in cakephp 1.2 there was a dbo_odbc.php driver and others and in
version 1.3 had been removed? I need to connect with a Intersystems
Cache database through ODBC and I don't know how exactly do it. I've
achieved to connect with a normal script through odbc_connect()
function but in cake I don't exactly how reference DSN and configure
the connection.

Thanks!

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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