Opening New Window from Controller

2010-10-26 Thread Xandornot
Does anyone know how to open a new window with a given URL from the controller (not javascript)? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" g

Re: findNeighbours does not seem to be working

2007-02-28 Thread Xandornot
I even tried putting this in the model with all parameters as static values, still it does not respond with any values for prev and next. Does anyone have any ways to get this to work? On Feb 26, 9:32 am, "Xandornot" <[EMAIL PROTECTED]> wrote: > Hi, has anyone successfully use

Re: Query returns fatal error - Please help

2007-02-27 Thread Xandornot
Thanks Langdon! That does the trick. On Feb 26, 7:42 pm, Langdon Stevenson <[EMAIL PROTECTED]> wrote: > Hi Xandornot > > "query" is a method of the model class. Therefore you can't call > $this->query() in a controller. You have to call it via a model. &g

Query returns fatal error - Please help

2007-02-26 Thread Xandornot
$this->query("UPDATE users SET password = 'test' WHERE id = 25"); I am using the previous in a controller, the controller returns a fatal error Fatal error: Call to undefined method UsersController::query() Does this not work in a controller?? What other magic do I have to do? I hope someone can

findNeighbours does not seem to be working

2007-02-26 Thread Xandornot
Hi, has anyone successfully used findNeighbours? I have tried this in several models and even a simple use such as $this->set('neighbours', $this->Slide->findNeighbours(null, 'id', $id); with $id properly filled only produces an empty array of [prev] and [next] with no previous and next ids produc

Bake and Sqlite

2006-10-01 Thread Xandornot
I am trying to use bake with sqlite, but it does not seem to see my database. When it goes to list the tables, after I type "m" for model, that it sees, it lists none. If I name a table, it cannot find it. Any ideas on this? I also tried rdBaker, but that does not seem to actually look at your ta