Re: setFlash() appending a "1"

2010-01-07 Thread Kerr
you bang your head to any solid objects in the room :) > > On 7 Jan., 14:40, Kerr wrote: > > > Thanks for the prompt replies, guys!  I am using $this->Session->setFlash() > > in my controller after a successful form submission, then > > > redirecting, where

Re: setFlash() appending a "1"

2010-01-07 Thread Kerr
e: > > > How are you setting and displaying the flash value? Consider both an > > instruction, so if you do something like if($this->Session->flash()); > > you'll get both the message and a 1 to indicate success. To set the > > value, use $this->Session->setF

setFlash() appending a "1"

2010-01-06 Thread Kerr
Hi all, I'm experiencing a really weird issue where the $session- >setFlash() method appends a single "1" character directly after the generated tag. I'm using an unmolested copy of CakePHP 1.2.5. I've looked all through the source in SessionComponent, CakeSession and SessionHelper and don't see

Re: Scaffold and table names

2009-11-28 Thread Kerr
ic function in your model and call it from the > controller, to confirm that your model is being used! > Enjoy, >    John > > On Nov 28, 7:50 pm, Kerr wrote: > > > Sorry guys, please ignore, "though I did not", in the first sentence > > of my latest reply.  :) &

Re: Scaffold and table names

2009-11-28 Thread Kerr
Sorry guys, please ignore, "though I did not", in the first sentence of my latest reply. :) On Nov 28, 11:49 am, Kerr wrote: > I noted in my initial post that I'd tried $useTable to no avail, > though I did not > > I don't see in the API where $uses is a valid op

Re: Scaffold and table names

2009-11-28 Thread Kerr
> Try specifying the tables name using: > > >   var $useTable = 'your tablename'; > > > Enjoy, > >   John > > > On Nov 28, 3:26 pm, Kerr wrote: > > > @John > > > > * When the table is named invoice_statuses, the error message reads, >

Re: Scaffold and table names

2009-11-28 Thread Kerr
nships for you =) > > http://book.cakephp.org/view/83/hasAndBelongsToMany-HABTM > > <http://book.cakephp.org/view/83/hasAndBelongsToMany-HABTM> > > On Fri, Nov 27, 2009 at 6:40 AM, John Andersen wrote: > > > Which table does CakePHP say it can't find? Is it "

Re: How to have 2 forms on one page for same model

2009-11-25 Thread Kerr
There are some articles on this subject. You may try this one out. http://bakery.cakephp.org/articles/view/how-to-create-multirecord-forms It includes a component called Multirecord that does some looping to handle validation. Be sure to read the comments, as there are some bugs in the posted c

Scaffold and table names

2009-11-25 Thread Kerr
Hi folks, I'm using CakePHP for a new project, and I am having a great time not having to do so much CRUD work! That said, I want to set up a simple $scaffold based model, and I'm having trouble reconciling a table to a model. My application handles client billing for a business, and I have a mod

Re: Tree reorder tweaking

2009-11-21 Thread Kerr
Zoe -- Sorry, I just now saw your reply! You can use $this->Category- >reorder(); just like that to reorder the entire tree from top to bottom... very handy! On Nov 9, 10:19 am, MonkeyGirl wrote: > OK, so using $this->Category->reorder(); reorders all the children of > a given category (in this

Re: Tree reorder tweaking

2009-11-02 Thread Kerr
t;reorder(); On Nov 2, 9:22 pm, Robert P wrote: > Also note that one issue with your reorderAll() function is that it > loops through all non-empty parent IDs. The only problem with this is > that top-level items WILL have an empty parent. > > On Nov 3, 10:27 am, Kerr wrote: > >

Re: Tree reorder tweaking

2009-11-02 Thread Kerr
To be more specific in addressing, "I'm also still not sure if reorder() recurses as far as it can, or just one level. " -- Yes, it will recurse the tree until it finds no children in all affected branches. On Nov 2, 8:25 pm, Kerr wrote: > Hi, I've been playing around wi

Re: Tree reorder tweaking

2009-11-02 Thread Kerr
Hi, I've been playing around with the tree functionality as well. Looking at the code, you'll notice that the reorder method calls itself recursively. If you want to reorder the entire tree, simply pass no arguments... e.g. $this->reorder(); Overall, I'm pretty impressed so far with how easy