updating for strict standards and cakephp 2.5.x