Re: logging or saving all sql statements in Model

2006-12-13 Thread Copongcopong
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 this group, send email to [EMAIL PROTECTED] For more opti

Re: Keeping unbindModel out of your controllers

2006-12-13 Thread Claudio Poli 
works so well that I've lost my senses. thanks Mariano --~--~-~--~~~---~--~~ 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 grou

Understanding model associations and the view.

2006-12-13 Thread Tazz
I started going through the tutorials and everything is fine. I can enter data in the databse and display it. Now I would like to create an association and display it. But I get the following erro in my view: Warning: Invalid argument supplied for foreach() in /www/docs/ads.infected-rhythms.com/i

Re: requestAction() with plugins not working!

2006-12-13 Thread Dr. Tarique Sani
On 12/14/06, nate <[EMAIL PROTECTED]> wrote: > > If you feel this is a bug, do us all a favor and file a ticket on it: > https://trac.cakephp.org/ https://trac.cakephp.org/ticket/1721 - reported and has been fixed - Thanks Larry Tarique -- ==

Re: Re: Please help - data array not updates after data inserting in database.

2006-12-13 Thread Dr. Tarique Sani
On 12/14/06, Mariano Iglesias <[EMAIL PROTECTED]> wrote: > Instead of helping the community improve the product, they *expect* things > to be done and if they don't get done according to their likings they > *complain* about it. Well, if they complain in a precise manner I take that as feedback.

Re: Keeping unbindModel out of your controllers

2006-12-13 Thread Langdon Stevenson
Hi Mariano Nice post to the Bakery and an interesting improvement on Tom's code. I like the idea of keeping the binding functions in the model and will be using your code in my current project. Regards, Langdon Mariano Iglesias wrote: > My fellow bakers, > > After reading Tom's tutorial o

Re: Re: drag id in dropRemote

2006-12-13 Thread Samuel DeVore
Here is my code e($ajax->dropRemote('sidebar',null, array('url'=>'/portfolios/remoteSelect', 'update'=>'sidebar', 'with'=>"'data[Image][id]=' + encodeURIComponent(element.id)", 'complete'=>"new Effect.Highlight('sidebar');"))); The key here is the 'with' statement

Re: drag id in dropRemote

2006-12-13 Thread Gustoph
I have a similar problem and I've struggled to find any examples or info either. The Rails example (http://demo.script.aculo.us/shop) seems to get the DOM id of the dropped element by reading the params array in the controller. This doesn't work in cake. So I'm still stuck trying to read the id wh

Re: Helpers scope in Elements...

2006-12-13 Thread Seb
Mmmm.. sorry, that should've been "am I right to thinK the element creates a new instance of the helpers?!" ... so after a bit more investigation, it seems to be the case. Now what I did to fix it... if anyone wonders is adding an init() function to the pagination helper, and making sure the help

Re: requestAction() with plugins not working!

2006-12-13 Thread Larry E. Masters aka PhpNut
I know I have said this before, if you are going to open a ticket read: https://trac.cakephp.org/wiki/bugreport And follow the instructions on that page, for example this issue has already been reported and I fixed it. And opening this ticket: https://trac.cakephp.org/ticket/1760 waste my time h

Keeping unbindModel out of your controllers

2006-12-13 Thread Mariano Iglesias
My fellow bakers, After reading Tom's tutorial on how to keep your unbindModel() calls out of your controllers (http://bakery.cakephp.org/articles/view/179) I've decided to change it so one wouldn't need to modify the way model associations are defined on CakePHP. For those of you who didn't rea

RE: requestAction() with plugins not working!

2006-12-13 Thread Mariano Iglesias
Jeez, the force is strong with nate. What a patience :) -MI --- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE ON! -Mensaje original---

RE: Re: Please help - data array not updates after data inserting in database.

2006-12-13 Thread Mariano Iglesias
Sadly enough on every open source project you see people that believe: Open source = commercial software for free Instead of helping the community improve the product, they *expect* things to be done and if they don't get done according to their likings they *complain* about it. What a nerve.

Re: Authentication Plugin

2006-12-13 Thread [EMAIL PROTECTED]
(open source) software is always evolving.. features will be added, bugs will be found. That's how it goes. If you want an all-in-one solution (authentication+authorization) get othAuth, it's easy to set up. if you want a solution that only focuses on secure authentication, so you can combine it

Re: requestAction() with plugins not working!

2006-12-13 Thread nate
If you feel this is a bug, do us all a favor and file a ticket on it: https://trac.cakephp.org/ --~--~-~--~~~---~--~~ 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@google

Re: Please help - data array not updates after data inserting in database.

2006-12-13 Thread Jose Cedeno
Could you please look at the manual, and if it's not documented there, file a bug. Thanks, Jose On 12/13/06, Webchemist <[EMAIL PROTECTED]> wrote: > > > Thanks all! > The problem was in the caching of queries. When the security level was > 'hign', all worked. But when it was changed to 'medium',

Re: Re: Please help - data array not updates after data inserting in database.

2006-12-13 Thread Mikee Freedom
i love cake! On 14/12/06, Samuel DeVore <[EMAIL PROTECTED]> wrote: > > On 12/13/06, Webchemist <[EMAIL PROTECTED]> wrote: > > > > Thanks all! > > The problem was in the caching of queries. When the security level was > > 'hign', all worked. But when it was changed to 'medium', caching > > started

Re: Group by?

2006-12-13 Thread Erich C. Beyrent
That worked like a charm - it didn't even occur to me to try that! I'm still getting used to this framework, and it's really cool to be able to do stuff like this. Thanks for the assist! -Erich- AD7six wrote: > On Dec 11, 4:12 am, "Erich C. Beyrent" <[EMAIL PROTECTED]> > wrote: >> This insig

Re: [professionel] Re: Pagination Problem

2006-12-13 Thread Bernard Grosperrin
Dateve, I am working on the same thing, but am certainly more of a beginner than you are. What is this Pagination object? Is this the component from ad7six on cakeforge? I guess I am dumb enough I need a step by step (typing slowly, so that I can follow) explanation. Thanks for this post, it

Re: Re: empty select-Box disappears (selectTag)

2006-12-13 Thread Samuel DeVore
I replied to a similar email this week with if (!$list){$list=array();} before the set On 12/13/06, Matt Adams <[EMAIL PROTECTED]> wrote: > > [EMAIL PROTECTED] wrote: > > > It seems, that the selectTag-function doesn't get an array. > > So when the generateList-function doesn't find a set in th

Re: XML data source instead of database

2006-12-13 Thread Felix Geisendörfer
Hey LMX, right now nate and me are working on the base for new datasources that rely on HTTP / TCP/IP protocols. This will especially cover all kinds of XML needs. Cake 1.2 already has a nice XML parser and some ground work towards this direction in it, but it's under development and therefor

Re: empty select-Box disappears (selectTag)

2006-12-13 Thread Matt Adams
[EMAIL PROTECTED] wrote: > It seems, that the selectTag-function doesn't get an array. > So when the generateList-function doesn't find a set in the database it > does't return anything (not even an empty array). > > How can I solve my problem? Assuming everything is working as it should in the

Re: Saving Associated Data that is an Array

2006-12-13 Thread themanfrombucharest
Hey, All you need to do is call the create() model function to unset the model id before each save in the loop, otherwise it gets set after the first save. On Dec 13, 5:33 pm, "Dave Rogers" <[EMAIL PROTECTED]> wrote: > I have a report form that has a list of people who attended an event. > When

Re: Saving Associated Data that is an Array

2006-12-13 Thread Samuel DeVore
$this->ModelName->create(); before your save. On 12/13/06, Dave Rogers <[EMAIL PROTECTED]> wrote: > > I have a report form that has a list of people who attended an event. > When I try to save the attendees, the first one is added to the db, the > rest attempt to update with the id of the event.

Saving Associated Data that is an Array

2006-12-13 Thread Dave Rogers
I have a report form that has a list of people who attended an event. When I try to save the attendees, the first one is added to the db, the rest attempt to update with the id of the event. here is an idea of the data: $this->data['event']=array( 'title'=>'title of event', 'date'=>'12

Re: requestAction() with plugins not working!

2006-12-13 Thread Gonçalo Marrafa
Your hack works! Thanks. Best regards. On Wed, 13 Dec 2006 04:51:06 -0800 "Ryan" <[EMAIL PROTECTED]> wrote: > > I think you are right about the dispatcher reloading the > FooAppController. You might want to wrap your plugin controllers in a: > if (!class_exists("ControllerName")) { } just to b

Re: Re: Please help - data array not updates after data inserting in database.

2006-12-13 Thread Samuel DeVore
On 12/13/06, Webchemist <[EMAIL PROTECTED]> wrote: > > Thanks all! > The problem was in the caching of queries. When the security level was > 'hign', all worked. But when it was changed to 'medium', caching > started. I hate cake. Then don't use it, or file a bug (either against documentation if

RE: Re: Can't edit my articles on the Bakery

2006-12-13 Thread Mariano Iglesias
Hahaha... Ok, fire away :) PS: Who said I am a smart coder? ;) -MI --- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE ON! -Mensaje orig

Re: Please help - data array not updates after data inserting in database.

2006-12-13 Thread Webchemist
Thanks all! The problem was in the caching of queries. When the security level was 'hign', all worked. But when it was changed to 'medium', caching started. I hate cake. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

Re: Re: Can't edit my articles on the Bakery

2006-12-13 Thread Samuel DeVore
Hey MI asked a question, now we can ask him 10 more ;) On 12/12/06, gwoo <[EMAIL PROTECTED]> wrote: > > Thanks Mariano. > > > > > -- == S. DeVore (the old fart) the advice is free, the lack of crankiness will cost you --~--~-~--~~~---~--~~ You received this me

Re: requestAction() with plugins not working!

2006-12-13 Thread Ryan
I think you are right about the dispatcher reloading the FooAppController. You might want to wrap your plugin controllers in a: if (!class_exists("ControllerName")) { } just to be on the safe side. Regards, Ryan Rose digiwize.com --~--~-~--~~~---~--~~ You receiv

Re: a controller+model that is accessible from all controllers / models is a ...

2006-12-13 Thread AD7six
The links are truncated, you can just copy the bit of text from the next line and paste it on the end of the url. Btw 1) bootstrap sound like what you are asking for (see the code related to the wiki i18n article for an example, which is quite easy to adapt to use a db - not referring to i18n2).

XML data source instead of database

2006-12-13 Thread LMX
I've started new project with Cake and due the security issues have no direct access to the database. Access is only via WDSL (subset of XML), I send XML request to the web service server and receive XML response. How I can force Cake still use it's Models in this case, XML data access instead of

Re: a controller+model that is accessible from all controllers / models is a ...

2006-12-13 Thread pigeon
thanks. google groups says "We're sorry, but we were unable to find the topic you were looking for. Perhaps the URL you clicked on is out of date or broken?" --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake P

Re: Authentication Plugin

2006-12-13 Thread CraZyLeGs
I don't know about the others but othAuth is quite stable, has been there for some time now and it's used by many apps. you don't need 1.0 to for a piece of software to qualify it as stable. as for the user management, I recall there was a plugin or an app in cakeforge, haven't tested it, but it's

requestAction() with plugins not working!

2006-12-13 Thread Gonçalo Marrafa
Hi. If i call requestAction() in a plugin controller to an action in a controller in that same plugin, i get a "Cannot re-declare class" error. Lets say i have a foo plugin with two controllers: class oneController extends FooAppController { function someAction () { // do something