Re: Tagging system in Cake - hasAndBelongsToMany problems

2009-04-05 Thread Ben Coleman
4, 11:07 am, Ben Coleman benc...@gmail.com wrote: Hi, I've been using Cake for some time, but recently hit a problem with hasAndBelongsToMany. I have a videogame database, I'm trying to add a tagging system to it. I'm storing my tags in 3NF. So I have a model for games which is binding

Tagging system in Cake - hasAndBelongsToMany problems

2009-04-04 Thread Ben Coleman
Hi, I've been using Cake for some time, but recently hit a problem with hasAndBelongsToMany. I have a videogame database, I'm trying to add a tagging system to it. I'm storing my tags in 3NF. So I have a model for games which is binding Games to Tags with hasAndBelongsToMany and also my Tag

Pagination of multiple models in 1.2

2008-01-12 Thread Ben Coleman
I'm trying to use the pagination helper in 1.2 I'm following the example given here http://bakery.cakephp.org/articles/view/basic-pagination-overview-3 I set the following in my controller var $paginate = array('Game' = array('limit'=5), 'System' = array('limit'=5)); in my action I call

Flash not working with redirect

2008-01-07 Thread Ben Coleman
Hi, I'm trying to use the session flash message with controller actions that redirect - with no luck. For example, if I have the following action defined in a controller called test: function foo() { $this-Session-setFlash(Hello world);

SQL error when adding item using the scaffolding

2008-01-06 Thread Ben Coleman
Hi, Just got back into using Cake after some time away from it (and PHP development in general) I want to knock up an app very quickly so I want to use the scaffolding. I have a very simple table, model controller defined but when I come to add an item I always get this error: SQL Error: 1366: