Re: re-format mysql-dates - any generic solution?

2010-05-07 Thread leberle
ink. > > > > On Thu, May 6, 2010 at 6:33 PM, leberle wrote: > > Hi, > > > I'm looking for a generic way to re-format date-values i fetched from > > mysqlso, the complete context: > > > We have a complex cake web-app using a mysql db. So, the default date

re-format mysql-dates - any generic solution?

2010-05-06 Thread leberle
Hi, I'm looking for a generic way to re-format date-values i fetched from mysqlso, the complete context: We have a complex cake web-app using a mysql db. So, the default date- format returned by mysql is -mm-dd. This was fine for a long time. Now our lovely marketing has decided that our

Re: Pagination on cached data?

2009-11-25 Thread leberle
> ps ->paginate($somethingMaybeHuge); is IMO a really bad idea/negating > the point of pagination Hm, i'm not sure if i get you rightyou say that it may be a bad idea just because the data passed maybe very large? Dont you have the same problem if you call paginate with bad settings, e.g. limi

Pagination on cached data?

2009-11-23 Thread leberle
Hi dudes, is there a way to paginate cached data? I wanna cache the result from a $controller->paginate() request an use it the next time the page is requested. But i've i bind the cached data for the view, i've the problem that paginate() wasn't called so the paginate-helper functions in the view

Re: Selfmade datasource problem => calling dispatchMethod() on non-object

2009-11-20 Thread leberle
Solvedi defined a constructor in my model and forgot to call the AppModel-constructor ^^ On 20 Nov., 14:38, leberle wrote: > Hi dudes, i'm trying to use a self-written datasource and got some > problems. i made my model use my datasource, now i get the error "Call > t

Selfmade datasource problem => calling dispatchMethod() on non-object

2009-11-20 Thread leberle
Hi dudes, i'm trying to use a self-written datasource and got some problems. i made my model use my datasource, now i get the error "Call to a member function dispatchMethod() on a non-object in /var/www/ my_project/cake/libs/model/model.php on line 435" ...which is strange, as my model has no beha

Re: Using Components (or whole Controllers) in a cake-shell

2009-10-21 Thread leberle
); :) On 21 Okt., 12:44, leberle wrote: > Hi, i'm currently working on a cake-shell cron, and i got some trouble > using one of the components from my App. > I need to use a method from a component that is usally used in my > Orders-Controller, i tried: > > ---

Using Components (or whole Controllers) in a cake-shell

2009-10-21 Thread leberle
Hi, i'm currently working on a cake-shell cron, and i got some trouble using one of the components from my App. I need to use a method from a component that is usally used in my Orders-Controller, i tried: - App::import('Component','OrderProcess'); class OrdersCronShell exte

form helper -> inputs -> textarea -> cols?

2008-12-12 Thread leberle
hi all :) one simple (i guess) question: i'm using the inputs method for creating several input-elements in my view. i want one field to be a textarea, i used $html->inputs( [...bunchofotherinputs], 'mytextfield' => array('type' => 'textarea', 'cols' => 2), [...]); The ge

Re: Model Validation -> 'blank' rule triggered without beeing set

2008-11-13 Thread leberle
Thanks :) @ > btw, your TRUE shouldn't be enclosed in an array, it should be " > 'required' => true ". well, i got confused by the warning: preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash when i dont had the "required" setting in an array, so i pushed it into

Model Validation -> 'blank' rule triggered without beeing set

2008-11-13 Thread leberle
Hi guys, I've a confusing problem here: my model: -- class MenuStructure extends AppModel { var $validate = array('root_struct_id' => array('required' => array (true)), 'parent_struct_id'

Re: Find First doesn't append limit 0,1?

2008-10-29 Thread leberle
least a few can be irritating > since they delete data for you if you are unlucky. > > /Martin > > On Oct 24, 9:38 am, leberle <[EMAIL PROTECTED]> wrote: > > > *push* > > > just wanna know if this is normal? --~--~-~--~~~

Re: Find First doesn't append limit 0,1?

2008-10-24 Thread leberle
*push* just wanna know if this is normal? --~--~-~--~~~---~--~~ 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

Find First doesn't append limit 0,1?

2008-10-23 Thread leberle
Hi guys, I'm currently a little bit confused about cakes $model->find('first', [...]) function...the problem: $model->find('first', array('fields' => array('my_integer_field'), 'order' => 'id DESC')); results in SELECT TableNick.my_integer_field FROM my_table TableNick WHERE 1 = 1 ORDER BY my_

Re: Documentation - Cakes bad side

2008-10-02 Thread leberle
Ohpsthat explains it...thx for the info :) On Oct 2, 2:15 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > The search feature in the book is broken and under > repair:http://groups.google.com/group/cake-php/browse_thread/thread/18c4e419... > > On Oct

Re: Documentation - Cakes bad side

2008-10-02 Thread leberle
gt; There where many of your kind here before and they just wrote the same > > as you and faded away... (you can search the group if you like) > > > -- > > Marcin Domanski > >http://kabturek.info > > > On Thu, Oct 2, 2008 at 10:48 AM, leberle <[EMAIL PROTECTED]&g

Documentation - Cakes bad side

2008-10-02 Thread leberle
Hey dudes, I've been playing around with cake for some time now, and i really like cake, its a brilliant framework. But Cakes weakness is the documentation. There are so many features that are not documented yetthis really has to change, undocumented features are worthless features. Before ca

Re: Set::extract with multiple filters

2008-09-24 Thread leberle
Solved: $result = Set::extract('/Posts[author=pete][hidden=0]/.', :) note: this is not XPath conform... On Sep 24, 1:31 pm, leberle <[EMAIL PROTECTED]> wrote: > Hi dudes, > > I've a problem with Set::extract when using multiple filters. Lets say > i have an

Set::extract with multiple filters

2008-09-24 Thread leberle
Hi dudes, I've a problem with Set::extract when using multiple filters. Lets say i have an array $my_posts which contains a bunch of nested newspost- arrays, and now i want all posts from an author named "pete" which are not hidden: $result = Set::extract('/Posts[author=pete and hidden=0]/.', $m

Re: asking about Vertical database on CakePHP

2008-09-23 Thread leberle
ce, vertical database is right choices. > > But, i just wanna know if anybody using vertical database on CakePHP. > thanks for sharing ... > > On 9/22/08, leberle <[EMAIL PROTECTED]> wrote: > > > > > Sounds like a horrible ideaand bad DB design. > > If y

Re: asking about Vertical database on CakePHP

2008-09-22 Thread leberle
Sounds like a horrible ideaand bad DB design. If you have your DB in Boyce-Codd normal form, you will never have the need for such a DB layout... But let me know about your experience :) On Sep 21, 7:23 pm, "Yodi Aditya" <[EMAIL PROTECTED]> wrote: > I have reading about vertical database (co

hasMany association with oracle DB - missing "ANY" statement

2008-09-18 Thread leberle
Hi dudes, I'm running into problems when trying to establish a hasMany relation between two models using an orcale DB. My models: --- class MenuStructure extends AppModel { var $primaryKey = 'file_name'; var $useTable = 'menu_structure'; var $hasMany =