controllers/AuthItemController.php
public function actionRemoveChild($itemName, $childName)
    {
        /* @var $am CAuthManager|AuthBehavior */
        $am = Yii::app()->getAuthManager();

        if ($am->hasItemChild($itemName, $childName)) {
            $am->removeItemChild($itemName, $childName);
            if ($am instanceof CPhpAuthManager) {
                $am->save();
            }
        }

        $this->redirect(array('view', 'name' => $itemName));
    }
public function actionRemoveChild($itemName, $childName)
    {
        /* @var $am CAuthManager|AuthBehavior */
        $am = Yii::app()->getAuthManager();

        if ($am->hasItemChild($itemName, $childName)) {
            $am->removeItemChild($itemName, $childName);
            if ($am instanceof CPhpAuthManager) {
                $am->save();
            }
        }

        $this->redirect(array('view', 'name' => $itemName));
    }
public function actionRemoveChild ( $ itemName , $ childName ) { /* @var $am CAuthManager|AuthBehavior */ $ am = Yii :: app ( ) -> getAuthManager ( ) ; if ( $ am -> hasItemChild ( $ itemName , $ childName ) ) { $ am -> removeItemChild ( $ itemName , $ childName ) ; if ( $ am instanceof CPhpAuthManager ) { $ am -> save ( ) ; } } $ this -> redirect ( array ( 'view' , 'name' => $ itemName ) ) ; }
Removes the child from the item with the given name.
@param string $itemName name of the item.
@param string $childName name of the child.
Removes the child from the item with the given name .