a port of redmine to CakePHP from Ruby on Rails