public static function model($className = __CLASS__) { return parent::model($className); }
public function deletePost() { $this->controller->getActionProperties()->setModel(\BlogContent::model())->setRequire(array('id' => true, 'action' => true))->setAccess(array('manageOwnContent', array('entity' => 'Record'))); $this->controller->delete(); }