#5971: Tree reorder method causes fatal error on PHP 4
---------------------------+------------------------------------------------
Reporter: pshevtsov | Type: Bug
Status: new | Priority: Medium
Milestone: 1.2.x.x | Component: Behaviors
Version: 1.2 Final | Severity: Critical
Keywords: | Php_version: PHP 4 >= 4.3.2
Cake_version: 1.2.0.7962 |
---------------------------+------------------------------------------------
When I call reorder method in my controller's action code e.g.:
{{{
#!php
<?php
class MyTreeModelsController extends AppController {
var $name = 'MyTreeModels';
var $helpers = array('Tree');
function reorder() {
$this->MyTreeModel->reorder();
}
}
?>
}}}
I get the following error message:
'''Fatal error''': Call to undefined function: verify() in
'''cake/libs/model/behaviors/tree.php''' on line '''621'''
Also when I call reorder method such way:
{{{
#!php
<?php
class MyTreeModelsController extends AppController {
var $name = 'MyTreeModels';
var $helpers = array('Tree');
function reorder() {
$this->MyTreeModel->reorder(array('validate' => false));
}
}
?>
}}}
I get the following error message:
'''Fatal error''': Call to undefined function: children() in
'''cake/libs/model/behaviors/tree.php''' on line '''628'''
Also when I try to run test cases for tree behaviour I also get
'''Fatal error''': Call to undefined function: verify() in
'''cake/libs/model/behaviors/tree.php''' on line '''621'''
--
Ticket URL: <https://trac.cakephp.org/ticket/5971>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC.
Our primary goal is to provide a structured framework that enables PHP users at
all levels to rapidly develop robust web applications, without any loss to
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"tickets cakephp" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---