Wednesday, September 03, 2008

dateTime bugs

Strange error in the helpers who is responsible for form:

echo $ form-> dateTime ( "Showtime", "DMY", 24, null, array ( "minYear" => 2008, "maxYear" => 2012, 'monthNames' => false, "interval" => 15) false);

All right? Everything!

However, in html see the following code:

< name="data[Showtime][Showtime][day]" id="ShowtimeShowtimeDay">
< value="01"> 1
...
< / select> -
< name="data[Showtime][month]" id="ShowtimeMonth">
< value="01"> 01

Why do we have chosen day encoded twice Showtime? Other parameters are coded properly. If only not forget that in order to set the interval mode 24 hours a day, should be a bit sub-source code (ticket already established).

We are talking about CakePHP 1.2 RC2

Labels: , ,

Friday, May 23, 2008

Paginator and multi language

Guys! I have real trouble with multi-languages site and

echo $paginator->next(...)

I made Routes like:

/:lang/:controller/:action/*

Nice? Nice!

But paginator don't want made url like this ;-(
Even in latest trunk version, when I made

array ('url' => array ('lang' => 'uk'))...

in parameters, I got:

/controller/action/uk/...

How I can get url like this:

/uk/controller/action/... ??

UPDATE: I found a lot useless Routes in my routes.php. Now all work nice ;-)

Labels: , ,