Controller structure for Slim framework