function __construct() { if (in_array('Comment', App::objects('plugin'))) { $this->components[] = 'Comment.Commenting'; } parent::__construct(); }