Re: Tree misbehaviour

2009-03-01 Thread Mauricio Morales
Damn, It was a 8 OSI-Layer error. :=) . There is no errors. On Feb 28, 10:54 pm, Mauricio Morales maomora...@gmail.com wrote: Hi folks, I've got the same problem.. It's really strange because all of my code was working in the last Beta version. This is my DB table: CREATE TABLE

Re: Tree misbehaviour

2009-02-28 Thread Mauricio Morales
Hi folks, I've got the same problem.. It's really strange because all of my code was working in the last Beta version. This is my DB table: CREATE TABLE intracategories ( id SERIAL PRIMARY KEY, parent_id INT, lft INT, rght INT, name VARCHAR(255), tags VARCHAR(255),

Re: Tree misbehaviour

2009-02-25 Thread Jon Bennett
Hi Mark, Can anybody see anything wrong with the file or class names below? They look ok to me, just checking, you are using the Tree behaviour aren't you? You've got: var $actsAs = array('Tree'); in your model? j -- jon bennett w: http://www.jben.net/ iChat (AIM): jbendotnet Skype:

Re: Tree misbehaviour

2009-02-24 Thread Mark
Hi Adam, I'm using the following data structure for the table: id int(11) unsigned NULL auto_increment name varchar(50) NULL parent_id int(11) Default NULL lft int(11) unsigned Default NULL rghtint(11) unsigned Default NULL Thanks for the tutorial link. I've had a read it and can't

Re: Tree misbehaviour

2009-02-24 Thread AD7six
On Feb 24, 1:11 pm, Mark markk...@gmail.com wrote: Hi Adam, I'm using the following data structure for the table: id  int(11) unsigned NULL auto_increment name varchar(50) NULL parent_id       int(11) Default NULL lft int(11) unsigned Default NULL rght    int(11) unsigned Default NULL

Re: Tree misbehaviour

2009-02-24 Thread Mark
Hi AD7six, I have the following setup: Table article_categories Controller Class name: ArticleCategoriesController File name: article_categories_controller.php var $name: ArticleCategories Model Class: ArticleCategory File name: article_category.php var $name: ArticleCategory Views Directory

Re: Tree misbehaviour

2009-02-24 Thread Mark
Hi All, Can anybody see anything wrong with the file or class names below? Table article_categories Controller Class name: ArticleCategoriesController File name: article_categories_controller.php var $name: ArticleCategories Model Class: ArticleCategory File name: article_category.php var

Tree misbehaviour

2009-02-23 Thread Mark
Hi All, I’m having a problem with the Tree behaviour that I was hoping somebody could help me with. I’m setting my object id and parent_id, but the 'lft' and 'rght' columns are not being updated by the tree behaviour. They are being left as their defaults (NULL). The CakePHP 1.2 manual

Re: Tree misbehaviour

2009-02-23 Thread Adam Royle
What data type are you using for your lft and rght columns? I'm not sure if it will help you, but have a browse over my article which has all the code to get the Tree behavior working and see if you're doing anything differently.