frontend/controllers/ResellerController.php
/**
     * Renders reseller account info
     *
     * @return mixed
     */
Renders reseller account info
@return mixed
Renders reseller account info @return mixed
public function actionMyAccount()
    {
        $user = Yii::$app->user->identity;
        $vouchersLimit = Yii::$app->config->get('Reseller.UnpayedVouchersLimit');
        $pageRepo = Yii::$container->get('common\repositories\PagesRepository');
        $pageMeta = $pageRepo->getPageMetaData('reseller-profile');
        $pageTitle = $pageRepo->getPageTitle('reseller-profile');
        $this->layout = 'reseller';
        return $this->render('myAccount', [
            'meta' => $pageMeta,
            'title' => $pageTitle,
            'vouchersLimit' => $vouchersLimit
        ]);
    }
public function actionMyAccount ( ) { $ user = Yii :: $ app -> user -> identity ; $ vouchersLimit = Yii :: $ app -> config -> get ( 'Reseller.UnpayedVouchersLimit' ) ; $ pageRepo = Yii :: $ container -> get ( 'common\repositories\PagesRepository' ) ; $ pageMeta = $ pageRepo -> getPageMetaData ( 'reseller-profile' ) ; $ pageTitle = $ pageRepo -> getPageTitle ( 'reseller-profile' ) ; $ this -> layout = 'reseller' ; return $ this -> render ( 'myAccount' , [ 'meta' => $ pageMeta , 'title' => $ pageTitle , 'vouchersLimit' => $ vouchersLimit ] ) ; }
Renders reseller account info
 @return mixed
Renders reseller account info @return mixed