public function behaviors() { return [['class' => DisableRobotIndexBehavior::className()]]; }
public function behaviors() { return ['access' => ['class' => AccessControl::className(), 'rules' => [['actions' => ['show', 'list'], 'allow' => true, 'roles' => ['?']], ['allow' => true, 'roles' => ['@']], ['allow' => false, 'roles' => ['?']]]], ['class' => DisableRobotIndexBehavior::className()]]; }