public function actionRemovePageVersion()
    {
        $pageId = Yii::$app->request->getBodyParam('pageId');
        
        $page = NavItemPage::findOne((int) $pageId);
        
        if ($page) {
            $page->forceNavItem->updateTimestamp();
            return $page->delete();
        }
        
        return false;
    }
public function actionRemovePageVersion()
    {
        $pageId = Yii::$app->request->getBodyParam('pageId');
        
        $page = NavItemPage::findOne((int) $pageId);
        
        if ($page) {
            $page->forceNavItem->updateTimestamp();
            return $page->delete();
        }
        
        return false;
    }
public function actionRemovePageVersion ( ) { $ pageId = Yii :: $ app -> request -> getBodyParam ( 'pageId' ) ; $ page = NavItemPage :: findOne ( ( int ) $ pageId ) ; if ( $ page ) { $ page -> forceNavItem -> updateTimestamp ( ) ; return $ page -> delete ( ) ; } return false ; }
Delete a given page from pageId body param.

@return boolean
Delete a given page from pageId body param .