Re: Bug? - $form-select() doesn't populate data, but $form-input() does

2008-03-03 Thread Samuel DeVore
try groups On Mon, Mar 3, 2008 at 11:07 PM, Baz [EMAIL PROTECTED] wrote: Stumbled onto this, hoping someone could guide me as to what is the expected behavior before I file a ticket in trac: Trying to add a select drop down list: Let's assume, we have a simple model with a belongs_to

Re: Bug? - $form-select() doesn't populate data, but $form-input() does

2008-03-03 Thread Baz
Well, that's my question: Is this is bug (oversight)? $form-text, $form-checkbox both autofill, so should I report this? On Tue, Mar 4, 2008 at 12:34 AM, Samuel DeVore [EMAIL PROTECTED] wrote: On Mon, Mar 3, 2008 at 11:24 PM, Baz [EMAIL PROTECTED] wrote: I take it you meant: $form

Re: Bug? - $form-select() doesn't populate data, but $form-input() does

2008-03-03 Thread Samuel DeVore
On Mon, Mar 3, 2008 at 11:24 PM, Baz [EMAIL PROTECTED] wrote: I take it you meant: $form-select('groups')? $groups = $this-MyModel-find('list') $this-set(compact('groups')); Is what I was thinking, but I don't think FormHelper::select supports the auto finding of the options array like

Re: Cake 1.2 Console - Fatal Errors - Possible Bug?

2008-02-24 Thread Alan Gibson
via svn, this fix doesn't happen in my core library. For instance, I just looked at line 30 in schema.php (bug fix 6319) and the string class is not included after I updated. However, I manually added the 'string' class on my box in schema.php and it still didn't solve the problem

Thought I found a bug and a solution for it

2008-02-22 Thread Sam Sherlock
I have a few apps installed that I am working on locally I have cakephp set up to bake and all was fine. Yesterday I updated from svn. and Then all my apps rendered blank screen or displayed an error message. I managed to solve the issue. I put the following in cakes pages controller

Re: Thought I found a bug and a solution for it

2008-02-22 Thread nate
Hi Sam, two things: (1) I just fixed a bug in Object::dispatchMethod() that may have been causing your issue. Update to the latest SVN and see if that fixes it. (2) If not (and I don't normally do this), but could you zip up the application that is causing the issue and email it to me? I'll

Re: Thought I found a bug and a solution for it

2008-02-22 Thread Sam Sherlock
I have updated to the latest SVN. All is well. thanks Nate :) On 23/02/2008, nate [EMAIL PROTECTED] wrote: Hi Sam, two things: (1) I just fixed a bug in Object::dispatchMethod() that may have been causing your issue. Update to the latest SVN and see if that fixes it. (2

Bug while using PHPmailer

2008-02-13 Thread searchmax
by (output started at C:\apache2triad\htdocs\cakeapp\app\controllers\components\email.php:116) in C:\apache2triad\htdocs\cakeapp\cake\libs\controller\controller.php on line 447 -- View this message in context: http://www.nabble.com/Bug-while-using-PHPmailer-tp15452984p15452984.html Sent from

Re: Bug while using PHPmailer

2008-02-13 Thread djiize
:\apache2triad\htdocs\cakeapp\cake\libs\controller\controller.php on line 447 -- View this message in context:http://www.nabble.com/Bug-while-using-PHPmailer-tp15452984p15452984.html Sent from the CakePHP mailing list archive at Nabble.com. --~--~-~--~~~---~--~~ You

Re: Bug while using PHPmailer

2008-02-13 Thread searchmax
- headers already sent by (output started at C:\apache2triad\htdocs\cakeapp\app\controllers\components\email.php:116) in C:\apache2triad\htdocs\cakeapp\cake\libs\controller\controller.php on line 447 -- View this message in context:http://www.nabble.com/Bug-while-using-PHPmailer

is this a bug, or my error?

2008-02-13 Thread Viktor Nagy
))); $id = $this-Package-lastInsertId(); $this-out('New package recognised: ' . $this-args[0] . ' (' . $id . ') belongs to ' . $section); } $this-out($id); // return $id; } } ? Should I report it as a bug

Re: Bug while using PHPmailer

2008-02-13 Thread searchmax
Hi djiize, Thanks a ton i have resolved that bug. Actually there is a space after the (?) closing tag and after removing that my code is working fine.. Thankyou very much for your help:-) djiize wrote: in your email.php component file, check if there's nothing after closing tag

Re: Bug while using PHPmailer

2008-02-13 Thread djiize
] wrote: Hi djiize, Thanks a ton i have resolved that bug. Actually there is a space after the (?) closing tag and after removing that my code is working fine.. Thankyou very much for your help:-) djiize wrote: in your email.php component file, check if there's nothing after

Re: Bug while using PHPmailer

2008-02-13 Thread djiize
good start to Email core component: http://book.cakephp.org/view/176/email On 13 fév, 15:41, searchmax [EMAIL PROTECTED] wrote: Hi djiize, Thanks a ton i have resolved that bug. Actually there is a space after the (?) closing tag and after removing that my code is working fine

Re: Bug in $model-saveAll in 1.2

2008-02-07 Thread gerhardsletten
', $id));} else {   $this-Session-setFlash(__('The Contentclass was saved but the attributes faild to saved', true)); } In the api it says True on success, or an array of validation errors on failure public. Is this a bug? --~--~-~--~~~---~--~~ You

Re: Bug in $model-saveAll in 1.2

2008-02-07 Thread Joel
)); } In the api it says True on success, or an array of validation errors on failure public. Is this a bug? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email

Re: Bug in $model-saveAll in 1.2

2008-02-06 Thread Rgarg
try this one if($this-Contentclass-saveAll($this-data)) { $this-Session-setFlash(__('The Contentclass and all attributes has been saved', true)); $this-redirect(array('action'='edit', $id)); } else { $this-Session-setFlash(__('The Contentclass was saved but the attributes faild to

Problem with findAllThreaded... bug or not?

2008-02-06 Thread Bo-oz
Hi, I'm Using CakePHP 1.19. I have a menu table with the following fields: - id - parent_id - name - link For sorting purposes, I would like the menu to show ordered by Name ASC. When I use: $this-Menu-findAllThreaded('','','name ASC'); The resulting array only contains siblings with a

Re: Bug in $model-saveAll in 1.2

2008-02-06 Thread FL1
attributes has been saved', true)); $this-redirect(array('action'='edit', $id));} else { $this-Session-setFlash(__('The Contentclass was saved but the attributes faild to saved', true)); } In the api it says True on success, or an array of validation errors on failure public. Is this a bug

Re: Problem with findAllThreaded... bug or not?

2008-02-06 Thread majna
This should work: $categories = $this-Category-findAllThreaded($conditions, array('Category.id','Category.parent_id','Category.name'),'Category.sort ASC'); if not, use older cake release. On 6 velj, 10:43, Bo-oz [EMAIL PROTECTED] wrote: Hi, I'm Using CakePHP 1.19. I have a menu table with

Bug in $model-saveAll in 1.2

2008-02-05 Thread gerhardsletten
)); $this-redirect(array('action'='edit', $id)); } else { $this-Session-setFlash(__('The Contentclass was saved but the attributes faild to saved', true)); } In the api it says True on success, or an array of validation errors on failure public. Is this a bug

Re: Rss bug in 1.2.6311?

2008-02-04 Thread leo
in this particular release before I raised it as a bug report. I would have struggled to get this far without your blogpage and also that of Jiri Kupiainen. Thank you for that! On Feb 1, 6:03 pm, nate [EMAIL PROTECTED] wrote: And I was answering a question with a question, as is my custom. The Socratic method

Re: weird behavior in CakePHP 1.2 (possible bug)

2008-02-04 Thread Michel L
... Notice (8): Undefined variable: myClubNames [APP\views\customers \edit.ctp, line 101] So.. there's myerror... a definate bug I think and not just me missing something.. what do you guys reckon?  I'll post if i can get my app working without too many troubles.. cheers!! Lloyd

Re: weird behavior in CakePHP 1.2 (possible bug)

2008-02-04 Thread Michel L
Created a new ticket: https://trac.cakephp.org/ticket/4066 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this

Re: weird behavior in CakePHP 1.2 (possible bug)

2008-02-04 Thread Michel L
As it turns out, this error happens for all php syntax errors in views. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe

Re: bug in xml

2008-02-03 Thread nate
Cake actually comes with a default XML template which includes a short- tags-compatible header, so you generally should not have to deal with this. On Feb 3, 1:20 pm, Howard Glynn [EMAIL PROTECTED] wrote: This could be one of my favourite bugs that took me ages and ages to figure out a while

Re: Rss bug in 1.2.6311?

2008-02-01 Thread leo
: How is this a bug? Why can't you just wrap the output in an items / tag? On Jan 31, 12:21 pm, leo [EMAIL PROTECTED] wrote: How about you back up that statement by making a bug report over at trac.cakephp.org. I did that before the last guy bit my head off. (#4038: RssHelper::items

Re: Rss bug in 1.2.6311?

2008-02-01 Thread leo
[EMAIL PROTECTED] wrote: Check it out.http://mentalramblings.info/posts/view/cakephp-rss-helper-implementation Just whipped this up today. HTH Ron Chaplin http://t73-softdesign.comhttp://mentalramblings.info On Feb 1, 6:27 pm, nate [EMAIL PROTECTED] wrote: How is this a bug? Why can't

Re: Rss bug in 1.2.6311?

2008-02-01 Thread leo
BTW, please note the question mark in the subject line. I was asking not denouncing. Leo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com

Re: Rss bug in 1.2.6311?

2008-02-01 Thread T73 Net
] wrote: Check it out.http://mentalramblings.info/posts/view/cakephp-rss-helper-implementation Just whipped this up today. HTH Ron Chaplin http://t73-softdesign.comhttp://mentalramblings.info On Feb 1, 6:27 pm, nate [EMAIL PROTECTED] wrote: How is this a bug? Why can't you just

bug in xml

2008-02-01 Thread manuj
i have put some xml code in views/controller/xml/action.ctp, when I run this code http//servername/controller/action.ctp, it gives error due to blank charcters before starting of code --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: Rss bug in 1.2.6311?

2008-02-01 Thread nate
And I was answering a question with a question, as is my custom. The Socratic method: dig it. Now, as I said, the lack of an items / tag is hardly a fatal flaw. What's wrong with just doing this: items?=echo $rss-items($posts, 'transformRSS'); ?/items On Feb 1, 3:49 am, leo [EMAIL PROTECTED]

Re: Rss bug in 1.2.6311?

2008-02-01 Thread Siegfried Hirsch
Maybe a look into this might help: http://mentalramblings.info/posts/view/cakephp-rss-helper-implementation Now, as I said, the lack of an items / tag is hardly a fatal flaw. What's wrong with just doing this: items?=echo $rss-items($posts, 'transformRSS'); ?/items On Feb 1, 3:49 am, leo

Rss bug in 1.2.6311?

2008-01-31 Thread leo
After testing, I've come to the conclusion that RssHelper::items() is broken. RssHelper::item() works ticketyboo. I've now written my own function to render the XML. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Rss bug in 1.2.6311?

2008-01-31 Thread Anupom
How did you test? Why do you think it is broken? How did you try to use this? How did you come to this conclusion? Without providing any detail you are declaring it broken? Is not it nonsense? On Jan 31, 2008 3:30 PM, leo [EMAIL PROTECTED] wrote: After testing, I've come to the conclusion

Re: Rss bug in 1.2.6311?

2008-01-31 Thread leo
On Jan 31, 10:36 am, Anupom [EMAIL PROTECTED] wrote: How did you test? Why do you think it is broken? How did you try to use this? How did you come to this conclusion? Without providing any detail you are declaring it broken? Is not it nonsense? If you care to look at the rest of this

Re: Rss bug in 1.2.6311?

2008-01-31 Thread Chris Hartjes
in isolation with hard-coded input. How about you back up that statement by making a bug report over at trac.cakephp.org. -- Chris Hartjes Internet Loudmouth Motto for 2008: Moving from herding elephants to handling snakes... @TheKeyBoard: http://www.littlehart.net/atthekeyboard

Re: Rss bug in 1.2.6311?

2008-01-31 Thread leo
How about you back up that statement by making a bug report over at trac.cakephp.org. I did that before the last guy bit my head off. (#4038: RssHelper::items() dysfunctional) I'd like to think it's not a bug but nobody seemed to notice my earlier posts, so I don't have any input other than

Re: Rss bug in 1.2.6311?

2008-01-31 Thread T73 Net
Check it out. http://mentalramblings.info/posts/view/cakephp-rss-helper-implementation Just whipped this up today. HTH Ron Chaplin http://t73-softdesign.com http://mentalramblings.info On Feb 1, 6:27 pm, nate [EMAIL PROTECTED] wrote: How is this a bug? Why can't you just wrap the output

Re: Bug in cake beta 1.2 model

2008-01-30 Thread jakecake (newbie)
The problem is in /cake/libs/model/model.php line 364 and on. In the code it says: Line 1193 in Revision: 6398, Date: 2008-01-20 20:21:28 -0600 (Sun, 20 Jan 2008) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Bug in cake beta 1.2 model

2008-01-30 Thread jakecake (newbie)
I found (and fixed) a bug in the model.php file, and I can't report it in the trac system, so I thought I'd report it here in case someone sees it and can fix it. Whaaao!! Thanks a lot! I am a newbie to cake and since 2 days I was running around this strange behaviour when saving a HABTM

Re: weird behavior in CakePHP 1.2 (possible bug)

2008-01-28 Thread Lloyd
... Notice (8): Undefined variable: myClubNames [APP\views\customers \edit.ctp, line 101] So.. there's my error... a definate bug I think and not just me missing something.. what do you guys reckon? I'll post if i can get my app working without too many troubles.. cheers!! Lloyd

Re: ClassRegistry bug?

2008-01-28 Thread Ivan
btw I'm using: Cake 1.2.0.6311 beta PHP 5.2.4-2+b1 with Suhosin-Patch 0.9.6.2 (cli) (built: Jan 6 2008 23:43:13) Copyright (c) 1997-2007 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies mysql Ver 14.12 Distrib 5.0.51, for debian-linux-gnu (i486) using readline 5.2

Re: ClassRegistry bug?

2008-01-28 Thread Gwoo
You must have unique aliases in for your associated models. If you search the tickets you will find that this has been reported and closed. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to

Re: ClassRegistry bug?

2008-01-28 Thread Ivan
Thanks for giving attention to this Gwoo. I was trying to find where is documented the use of unique aliases across different models on the tickets and couldn't find it. After some searching I found this bug: https://trac.cakephp.org/ticket/3584 The behavior reported here is exactly the same

ClassRegistry bug?

2008-01-27 Thread Ivan
' ) ); } A simple FirstObject-findAll() results in a blank page caused by an endless loop inside ClassRegistry. It seems this is because ClassRegistry uses the alias of the association as a key. Is something wrong with my setup or is indeed a bug with ClassRegistry if you use the same

Re: weird behavior in CakePHP 1.2 (possible bug)

2008-01-24 Thread ProFire
: Notice (8): Undefined variable: deptAdminStatus [APP\views\timecharges \ajax_tog_dept_admin.ctp, line 1] I think this might be a bug! On Jan 22, 2:18 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm seeing some weird behavior in CakePHP 1.2 that may be a possible bug, and wonder if anyone

Re: weird behavior in CakePHP 1.2 (possible bug)

2008-01-24 Thread ProFire
Just an update to my situation. I'm pretty sure this error is due to my fault. I was debugging to pin point the source of error in my codes and I figured this: $departmentAdminData = array( DepartmentAdmin = array( account_id = $account_id,

weird behavior in CakePHP 1.2 (possible bug)

2008-01-21 Thread [EMAIL PROTECTED]
I'm seeing some weird behavior in CakePHP 1.2 that may be a possible bug, and wonder if anyone else can confirm it, or if it's just my server. I'm using the beta download from cakephp.org. Whenever I make a call to a variable in my view that is undefined I get this error: Fatal error: Allowed

Re: Bug in cake beta 1.2 model

2008-01-20 Thread Nina
@Chris I tried reporting to trac, but I got a 403 forbidden error when I tried to create a new ticket (at https://trac.cakephp.org/newticket). I realize now that I need to be registered (I just scanned the page and looked for the report a bug button and clicked), and I will report bugs through

Re: maybe a bug in findAllThreaded() in version cake-1.2.0.6311-beta

2008-01-18 Thread AD7six
array (which can't be an array key, as like it is used in __doThread in version cake-1.2.0.6311-beta). I hope this is useful for debugging... Best Regards, Florian https://trac.cakephp.org/wiki/bugreport see bug #3810 --~--~-~--~~~---~--~~ You received

Re: maybe a bug in findAllThreaded() in version cake-1.2.0.6311-beta

2008-01-18 Thread Chaso
/wiki/bugreport see bug #3810 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL

maybe a bug in findAllThreaded() in version cake-1.2.0.6311-beta

2008-01-18 Thread Chaso
Hi! the following code works in cake-1.2.0.5875 $this-Modelname-findAllThreaded(null,null, '`order` ASC'); but in cake-1.2.0.6311-beta the children are missing in the threaded array (children is empty). I did a little further investigation on this: I compared cake/libs/ model.php in both

Re: Bug in cake beta 1.2 model

2008-01-17 Thread Chris Hartjes
On Jan 16, 2008 10:56 AM, Nina [EMAIL PROTECTED] wrote: Hi All I found (and fixed) a bug in the model.php file, and I can't report it in the trac system, so I thought I'd report it here in case someone sees it and can fix it. Nina, Is that can't or won't report the bug? It takes no more

Re: Bug in cake beta 1.2 model

2008-01-17 Thread [EMAIL PROTECTED]
(and fixed) a bug in the model.php file, and I can't report it in the trac system, so I thought I'd report it here in case someone sees it and can fix it. The problem is in /cake/libs/model/model.php line 364 and on. In the code it says: if (isset($v[$n])) {                 $v = $v[$n

Bug in cake beta 1.2 model

2008-01-16 Thread Nina
Hi All I found (and fixed) a bug in the model.php file, and I can't report it in the trac system, so I thought I'd report it here in case someone sees it and can fix it. The problem is in /cake/libs/model/model.php line 364 and on. In the code it says: if (isset($v[$n])) { $v

Re: 1.1.19 Model Associations Bug - endless loop ??

2008-01-15 Thread keymaster
Oops, meant to reply to following thread, http://groups.google.com/group/cake-php/browse_thread/thread/4fe253582dc85aed/5a51ff85d99061aa#5a51ff85d99061aa but started this new one instead. Please continue under the original thread - I will propagate this post there. On Jan 15, 5:29 pm,

1.1.19 Model Associations Bug - endless loop ??

2008-01-15 Thread keymaster
I'm having exactly the same problem. An app which has worked no problem since cake 1.1.11 up to and including 1.1.18, is all of a sudden stuck in infinite loop due to model associations in 1.1.9. For what it's worth, the venerable BakeSale stable version is also seg faulting in 1.1.19 due to

Re: Cake 1.2 Console - Fatal Errors - Possible Bug?

2008-01-04 Thread Cake Fan
I'm a little confused about this, perhaps I'm missing something... but when I update via svn, this fix doesn't happen in my core library. For instance, I just looked at line 30 in schema.php (bug fix 6319) and the string class is not included after I updated. However, I manually added

Re: Cake 1.2 Console - Fatal Errors - Possible Bug?

2008-01-04 Thread Cake Fan
. For instance, I just looked at line 30 in schema.php (bug fix 6319) and the string class is not included after I updated. However, I manually added the 'string' class on my box in schema.php and it still didn't solve the problem in the console. - Cake Fan On Jan 3, 5:00 pm, Christian Winther [EMAIL

Re: Cake 1.2 Console - Fatal Errors - Possible Bug?

2008-01-04 Thread Larry E. Masters aka PhpNut
this, perhaps I'm missing something... but when I update via svn, this fix doesn't happen in my core library. For instance, I just looked at line 30 in schema.php (bug fix 6319) and the string class is not included after I updated. However, I manually added the 'string' class on my box

Pagination and Layout Bug???

2008-01-04 Thread Travis
Ok, So this is completely weird ... anyone ever seen this before, maybe I'm doing something wrong... whenever I go to mydomain.com/employees/index/ the layout that I have selected in the index function of my controller loads, but when I click a pagination link like

Re: Pagination and Layout Bug???

2008-01-04 Thread Adam Royle
Not sure if it would have any effect, have you tried changing var $name = 'employees'; to var $name = 'Employees'; Other thing I would check is the the links to your css are not relative. Use Firebug to quickly see any 404's or other errors that might be occurring. Adam Travis wrote: Ok,

Re: bug for find('All'

2008-01-03 Thread [EMAIL PROTECTED]
error there instead of $res = $this-Tag-find('All', you should use lowercase $res = $this-Tag-find('all', --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Cake 1.2 Console - Fatal Errors - Possible Bug?

2008-01-03 Thread Cake Fan
I have my cake 1.2 shell script working properly in most regards; it will help me immensely in converting a large flat table into relational data for Cake consumption. However, in the shell, whenever I try to call any of the Model query commands, I get a failure. So far, it has happened with

RE: Cake 1.2 Console - Fatal Errors - Possible Bug?

2008-01-03 Thread Christian Winther
Update to SVN head from 1.2 branch, was fixed there :) -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Cake Fan Sent: 3. januar 2008 22:20 To: Cake PHP Subject: Cake 1.2 Console - Fatal Errors - Possible Bug? I have my cake 1.2 shell script

Re: Cake 1.2 Console - Fatal Errors - Possible Bug?

2008-01-03 Thread Cake Fan
- Fatal Errors - Possible Bug? I have my cake 1.2 shell script working properly in most regards; it will help me immensely in converting a large flat table into relational data for Cake consumption. However, in the shell, whenever I try to call any of the Model query commands, I get a failure

RE: Cake 1.2 Console - Fatal Errors - Possible Bug?

2008-01-03 Thread Christian Winther
- Fatal Errors - Possible Bug? Christian, I am at Revision 6319, but the console still says 6311. I am only updating the cake folder, so I'm not changing the app or vendors folders at all. Am I missing something here because the problem still persists after I updated as you suggested. Thanks

bug for find('All'

2008-01-02 Thread stefano
i think that i found a bug en find('All'. i have this source echo $tag; $res = $this-Tag-find('All',array('conditions' = array('nombre' = %.strtolower($tag))).%); and i get this error musica Query: SELECT `Tag`.`Array%` FROM `tags` AS `Tag` WHERE All LIMIT 1 any idea ? how can help me

Re: bug for find('All'

2008-01-02 Thread Baz
Report all bugs to trac.cakephp.org trust me, it's much better and faster. It goes straight to the developers. On Jan 2, 2008 8:51 PM, stefano [EMAIL PROTECTED] wrote: i think that i found a bug en find('All'. i have this source echo $tag; $res = $this-Tag-find('All',array

Re: bug for find('All'

2008-01-02 Thread Adam Royle
$this-Tag-findAll( array('nombre' = 'LIKE %'.strtolower($tag).'%') ); On Jan 3, 12:51 pm, stefano [EMAIL PROTECTED] wrote: i think that i found a bug en find('All'. i have this source echo $tag; $res = $this-Tag-find('All',array('conditions' = array('nombre' = %.strtolower($tag

generateDateTime bug

2007-12-29 Thread mudit
Hi, I was using generateDateTime and what I found I was that if the value in my datetimefield field is say '2007-12-28 12:30:00', the meridian would be rendered AM in my view, though it should be PM. Any Ideas ! --~--~-~--~~~---~--~~ You received this message

Re: Page_Title Bug in Flash()/Render()

2007-12-26 Thread Alan Wagstaff
are being created before calling this page, $page_titleis not. I've tried to track the calling function, but can only get as close as _render() in view.php. Sometimespage_titleis called as pageTitle, which I think is where the bug lies. I've just noticed the exact same thing :) Just been taking

Trac Bug #3537

2007-12-13 Thread James S
two patch diffs posted on this bug to fix this problem, but the bug was marked invalid before these were posted. The patches fix the sort column issue, but not the paging links. I created a consolidated patch for paginator.php file, which I could not attach to the ticket. Index: paginator.php

Page_Title Bug in Flash()/Render()

2007-11-23 Thread Rob
is not. I've tried to track the calling function, but can only get as close as _render() in view.php. Sometimes page_title is called as pageTitle, which I think is where the bug lies. Rob. --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Complex Find Conditions (using arrays) , a bug in 1.2?

2007-11-21 Thread Adam Royle
)) Is it a bug or my statement was not correctly written. Thanks, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from

Re: Complex Find Conditions (using arrays) , a bug in 1.2?

2007-11-21 Thread AD7six
On Nov 21, 3:23 pm, Adam Royle [EMAIL PROTECTED] wrote: I agree - it gets pretty convoluted when you add a bit of complexity into the conditions. Where is the complexity in the stated example? Any nested array that is written on a single line is going to be 'difficult' to read as such it's

Re: Complex Find Conditions (using arrays) , a bug in 1.2?

2007-11-20 Thread zonium
` WHERE `PromoCode`.`start_date` '2007-11-19 17:38:54' AND ((`PromoCode`.`active` 1)) According to the official manual (http://manual.cakephp.org/chapter/ models) I expected OR (`PromoCode`.`active` 1) instead of AND ((`PromoCode`.`active` 1)) Is it a bug or my statement

Re: Complex Find Conditions (using arrays) , a bug in 1.2?

2007-11-20 Thread zonium
` WHERE `PromoCode`.`start_date` '2007-11-19 17:38:54' AND ((`PromoCode`.`active` 1)) According to the official manual (http://manual.cakephp.org/chapter/ models) I expected OR (`PromoCode`.`active` 1) instead of AND ((`PromoCode`.`active` 1)) Is it a bug or my statement

Complex Find Conditions (using arrays) , a bug in 1.2?

2007-11-19 Thread zonium
`PromoCode`.`start_date` '2007-11-19 17:38:54' AND ((`PromoCode`.`active` 1)) According to the official manual (http://manual.cakephp.org/chapter/ models) I expected OR (`PromoCode`.`active` 1) instead of AND ((`PromoCode`.`active` 1)) Is it a bug or my statement was not correctly written

Re: Complex Find Conditions (using arrays) , a bug in 1.2?

2007-11-19 Thread Grant Cox
' AND ((`PromoCode`.`active` 1)) According to the official manual (http://manual.cakephp.org/chapter/ models) I expected OR (`PromoCode`.`active` 1) instead of AND ((`PromoCode`.`active` 1)) Is it a bug or my statement was not correctly written. Thanks

Re: Cake 1.2 Router::url method and 'id' parameter -- bug or feature?

2007-11-18 Thread Gwoo
feature --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options,

Re: generateList bug(?) in PHP4

2007-11-16 Thread jez
Just found the problem: long story short, it was me being stupid. Sorry, J. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To

generateList bug(?) in PHP4

2007-11-15 Thread jez
, I get the empty array( ); code $areas = $this-Area-generateList( null, 'area_name ASC', null, '{n}.Area.id', '{n}.Area.area_name' ); print_r($areas); /code Does anybody recognise this bizarre occurrence? My instinct is that it is a bug in PHP rather than cake, but I cannot recreate it in a stand

Re: generateList bug(?) in PHP4

2007-11-15 Thread jez
My version of php might be important: $ php -v PHP 4.3.9 (cgi) (built: May 4 2007 11:04:51) Copyright (c) 1997-2004 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies Thanks, J. --~--~-~--~~~---~--~~ You received this message because you

Re: Cookie With Multi Dimensional Array Cannot Be Read (Sometimes) Is This A Bug?

2007-11-12 Thread Ivolution
I agree with Grant Cox.. You can't just write any variable to a cookie. With plaintext strings this works, but when you have complex datatypes like multidimensional arrays, you have to convert it somehow to a plaintext string. This is exactly where the serialize() function kicks in: the only

Re: Cookie With Multi Dimensional Array Cannot Be Read (Sometimes) Is This A Bug?

2007-11-12 Thread Baz
Sorry, didn't know cookies were plain text. So serialization *should* work always, but it doesn't if you set the encryption option to *off*. I'm just sharing information trying to save others the hours I've spent with this problem. -- Baz L Web Development 2.0: Web Design, CakePHP, Javascript

Cookie With Multi Dimensional Array Cannot Be Read (Sometimes) Is This A Bug?

2007-11-11 Thread Baz
*Sigh*, So I've been pulling out my hair for a while until I figured, this thing just doesn't work the way it should. Here's my scenario very simplified with test data: Controller1: $arr['name']['1'] = '21'; $arr['name']['2'] = '21'; $arr['name1']['1'] = '21'; $this-Cookie-write('zilla', $arr,

Re: Cookie With Multi Dimensional Array Cannot Be Read (Sometimes) Is This A Bug?

2007-11-11 Thread Ivolution
*Probably* the following will work: before writing your array to the cookie: $arr = serialize($arr); after reading it from your cookie (when $cookval is the value you read from your cookie): $arr = @unserialize($cookval); This way you should have your whole array back. Note however that I

Re: Cookie With Multi Dimensional Array Cannot Be Read (Sometimes) Is This A Bug?

2007-11-11 Thread Baz
Thanks for the response, but here's a few FYIs. - What I posted before works fine with Sessions. That's actually how I determined the problem. I was building a remember me for a login. And I thought I could just dump the session variable in a cookie and retrieve later. So maybe if

Re: Cookie With Multi Dimensional Array Cannot Be Read (Sometimes) Is This A Bug?

2007-11-11 Thread Grant Cox
The reason it works in the first controller is because it is not reading from the cookie itself - it also saves the data to a local variable and it is reading back from that. Because there is no automatic serialization going on, only strings are written to the cookie - so a complex data type

Re: Bug in renderElement?

2007-11-08 Thread schneimi
Must be the s from pluralize with $module['Module']['name'] beeing empty. On 8 Nov., 17:57, mbavio [EMAIL PROTECTED] wrote: Hi, i´m trying to add a menu using renderElement, all works fine except that Cake is adding an 's' before the generated code... Is it a bug? Or i´m a bug? Here

Re: Bug in renderElement?

2007-11-08 Thread mbavio
is adding an 's' before the generated code... Is it a bug? Or i´m a bug? Here is the code... In layout 'backend.ctp': ul id=menu ?php echo $this-element('admin_menu');? /ul In element 'admin_menu.ctp': ?php $modules = $this-requestAction('modules/createMenu'); foreach

Re: Bug in renderElement?

2007-11-08 Thread mbavio
be the s from pluralize with $module['Module']['name'] beeing empty. On 8 Nov., 17:57, mbavio [EMAIL PROTECTED] wrote: Hi, i´m trying to add a menu using renderElement, all works fine except that Cake is adding an 's' before the generated code... Is it a bug? Or i´m a bug? Here

Re: sanitize bug or ?

2007-10-29 Thread J. Eckert
You should update your cake core. The newest escape function reads: 00073 function escape($string, $connection = 'default') { 00074 $db = ConnectionManager::getDataSource($connection); 00075 if (is_numeric($string)) { 00076 return $string; 00077 } 00078

sanitize bug or ?

2007-10-26 Thread vg2k
sanitize.php /** * Makes a string SQL-safe. * * @param string $string String to sanitize * @param string $connection Database connection being used * @return string SQL safe string * @access public * @static */ function escape($string, $connection = 'default') {

Re: sanitize bug or ?

2007-10-26 Thread vg2k
i forgot say, using cakephp 1.2 alpha --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to

Re: Writing to session in an Ajax request starts new session in SVN 1.2.x.x - Bug?

2007-10-05 Thread jonathan
Well, I looked closer and it's not on an AJAX call, but on a redirect to a previously visited page. I think it's a caching issue with FireFox, but I cannot figure out how to resolve this On Oct 5, 6:36 am, jonathan [EMAIL PROTECTED] wrote: I believe I am experiencing the same thing.

Re: Writing to session in an Ajax request starts new session in SVN 1.2.x.x - Bug?

2007-10-05 Thread jonathan
I believe I am experiencing the same thing. Session is fine one minute, and gone the next (after AJAX call). IE is fine, problem only happens in FireFox. Anyone come up with a solution? --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Writing to session in an Ajax request starts new session in SVN 1.2.x.x - Bug?

2007-10-05 Thread Arjen V
I'm experiencing the problem in every other browsers I've tried: IE6, Opera, Safari (mac). Your problem sounds different, but for all I know it could be related. Are you writing data to the user's session in the action that's being called as well? - Arjen On 10/5/07, jonathan [EMAIL PROTECTED]

<    1   2   3   4   5   6   7   8   >