Re: Problem with Ajax.autocomplete and Internet Explorer

2009-09-29 Thread Bs
*bump* On 22 Sep., 14:28, Bs wrote: > Hi, > > I'm using the Ajax Helper for some fields in my app and it works > flawlessly from the backend side. The only problem is Internet > Explorer where the popup DIV is displayed totally dispositioned, > several pixels to the ri

Problem with Ajax.autocomplete and Internet Explorer

2009-09-22 Thread Bs
Hi, I'm using the Ajax Helper for some fields in my app and it works flawlessly from the backend side. The only problem is Internet Explorer where the popup DIV is displayed totally dispositioned, several pixels to the right and lower than it's displayed in Firefox, Opera and any other browser.

Re: Upgrade to new Cake PHP version

2009-09-02 Thread Bs
g in > the previous version. 99.9% of Cake users did not have the combination > of settings required to show that particular bug and they neither > noticed the bug nor the patch. > > On Aug 31, 3:01 pm, Bs wrote: > > > I'm talking about theupgradefrom the 2nd latest st

Re: Upgrade to new Cake PHP version

2009-08-31 Thread Bs
ook, I believe. You > can, for example, find one migration article I wrote in the bakery. I > just logged everything I did when migrating a real application. > > /Martin > > On Aug 31, 10:31 am, Bs wrote: > > > Hi, > > > is there any tutorial available how

Upgrade to new Cake PHP version

2009-08-31 Thread Bs
Hi, is there any tutorial available how to upgrade to the latest Cake PHP build? Or is this a task everybody has to do "by hand" by checking every file manually what has changed? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Re: Display months in datetime fields in german

2009-07-28 Thread Bs
Hi Piotr, with "ger" it didn't work but when I changed the folder name to "deu" (and also the value in Config.language of course) it worked like a charme. For some reason it seems that it has(!) to be named "deu" anyway, thanks a lot! On 27 Jul., 23:54, Piotr Kilczuk wrote: > Hello, > > > i

Re: Display months in datetime fields in german

2009-07-28 Thread Bs
Hi Piotr, unfortunately that won't work, yet. What I did: - add Configure::write('Config.language', 'ger'); to bootstrap.php - add folder(s) app/locale/ger/LC_MESSAGES - create default.po in that folder with the following content msgid "January" msgstr "Januar" msgid "February" msgstr "Feb

Display months in datetime fields in german

2009-07-27 Thread Bs
Hi, is it somehow possible to display the months of a datetime field in a view in german? --~--~-~--~~~---~--~~ 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.c

Re: Define several paginators for one model

2009-07-24 Thread Bs
Right now I do the following to paginate my model after several orders in one view: - I created a function sort() in my controller which does the following: function sort() { $order = array(); if (($this->data['sort']['column1']) == 1) {

Re: Define several paginators for one model

2009-07-24 Thread Bs
Right now I do the following to paginate my model after several orders in one view: - I created a function sort() in my controller which does the following: function sort() { $order = array(); if (($this->data['sort']['column1']) == 1) {

Define several paginators for one model

2009-07-24 Thread Bs
Hi, I would like to define several paginators for one model. For example users_controller.php: var $paginate = array (.); var $paginate2 = array (.); var $paginate3 = array (); so that I can use those in my views like this <$php echo $paginator->sort($paginate, "Country'); ?> <

Re: Sanitize:clean replacing hyphens in email addresses

2009-07-20 Thread Bs
do not see use forSanitize::clean() at all. > > On Jul 17, 6:34 pm, Bs wrote: > > > Hi, > > > I'm usingSanitize::clean tosanitizemy user data on a registration > > page after this tutorial: > > >http://www.jonnyreeves.co.uk/2008/06/cakephp-activatin

Sanitize:clean replacing hyphens in email addresses

2009-07-17 Thread Bs
Hi, I'm using Sanitize::clean to sanitize my user data on a registration page after this tutorial: http://www.jonnyreeves.co.uk/2008/06/cakephp-activating-user-account-via-email/ Like mentioned in an much older thread, the sanitizer replaces the hyphens in email addresses for some reason: htt

Re: Handling "minute" and "hour" elements in forms

2009-05-29 Thread Bs
Now there's still one problem...sorry:) Saving to a mysql time field works. But in my edit view the time is not read from the mysql time field. --> probably because it's a "datetime" field in cake and cake wants a year, month, day? --~--~-~--~~~---~--~~ You receiv

Re: Handling "minute" and "hour" elements in forms

2009-05-29 Thread Bs
P.S.: Now i've tested it with a "time" column type and it worked!!! Thanks!!! On 27 Mai, 17:02, Stu wrote: > ps: The view code should look something like this: > > echo $form->dateTime('column_name', 'NONE', '12'); > > The '12' just represents the format, you can either choose '12' (e.g. > 11:1

Re: Handling "minute" and "hour" elements in forms

2009-05-29 Thread Bs
Thanks, the input fields work but cake still saves NULL values in the database in this case. The problem seems to be that only "hour" and "minute" get set but cake doesn't set any year, month or day informations in the datetime field. The result is a null value in my datetime column in mysql. My

Re: Handling "minute" and "hour" elements in forms

2009-05-26 Thread Bs
okbook.  The values you can trry to pass to > the minute() or hour() methods can be found > under:http://book.cakephp.org/view/189/Automagic-Form-Elements-- see all > the $options['..'] descriptions. > > As for alternative sources, there's also the API and you

Re: Handling "minute" and "hour" elements in forms

2009-05-26 Thread Bs
it with an array or you might get undesirable and > unexpected results.) > > On May 26, 12:24 pm, Bs wrote: > > > Hi Stu, > > > I tried it out with "datetime" column but that doesn't work, either. > > Result is "null" in t

Re: Good way to paginate my index view by several keys / and-conditions

2009-05-26 Thread Bs
d > deal with yourself some of the things paginator does automatically. > The principle is the same, however: just add however many fields you > need to the order array. > > It seems like you're going to make the interface overly complicated, > though. But, without seeing your a

Re: Handling "minute" and "hour" elements in forms

2009-05-26 Thread Bs
Thanks christo, I'll look into the stuff you wrote. I didn't understand it fully, but I'll look into it more closely tomorrow. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group,

Re: Good way to paginate my index view by several keys / and-conditions

2009-05-26 Thread Bs
'Country'); ?> So that the view is sorted by several keys when the user clicks. On 26 Mai, 18:37, brian wrote: > On Tue, May 26, 2009 at 11:56 AM, Bs wrote: > > > Hi, > > > I'm trying to order my index view by several conditions. As far as I > > can se

Re: Handling "minute" and "hour" elements in forms

2009-05-26 Thread Bs
Hi Stu, I tried it out with "datetime" column but that doesn't work, either. Result is "null" in the column. Here's part of my code: add.cpt: ... Opening time from hour ('OpeningStartHours',1,6);?> : minute ('OpeningStartMinutes',0,null,"00");?>

Re: Handling "minute" and "hour" elements in forms

2009-05-26 Thread Bs
Hi Stu, thanks for your answer. I used "time" as column type, cause the start and end time in my model has nothing to do with any date, but only with the time of day (general opening times for a store, for example). So I'll have to use "datetime" as column and then simply ignore the date part (wi

Good way to paginate my index view by several keys / and-conditions

2009-05-26 Thread Bs
Hi, I'm trying to order my index view by several conditions. As far as I can see from the documentation, the $paginator only accepts one key for sorting the model. http://book.cakephp.org/view/166/Pagination-in-Views What is the best practice to order my model by several keys? (For example, or

Handling "minute" and "hour" elements in forms

2009-05-26 Thread Bs
Hi, I'm new here and just wanna say first that I'm absolutely in love with CakePHP and will definitely donate for this project. This framework saves me work each day. I have a question about handling "minute" and "hour" elements in forms. I'm using those for setting a start and end time in my mo