I have just started using Agile Toolkit 4.2.0 for a simple CRUD web application, and so far I'm very impressed with the framework, except that I can't get column sorting to function properly.
Updating the dvdrental page/video.php example with an added line at the end for setting makeSortable()
does not seem to work as intended. In all the browsers I have tested the code on so far (Firefox 12, Chrome 18, Opera 11.62 and IE 9), it only outputs a malformed line of HTML before the 'Year' column header.
class page_video extends Page {
function init(){
parent::init();
$this->api->auth->check();
$grid = $this->add('MVCGrid');
$grid->setModel('Movie');
$grid->getColumn('year')->makeSortable();
}
}
Any help would be greatly appreciated, and hopefully it's not a simple error caused by my own ineptitude with this new tool.