frontend/controllers/SiteController.php
/**
     * Renders Site Supported file hosts page.
     *
     * @return mixed
     */
Renders Site Supported file hosts page.
@return mixed
Renders Site Supported file hosts page . @return mixed
public function actionHosts()
    {   
        $title = $this->pages->getPageTitle('hosts');
        $url_lang = explode('-', Yii::$app->language);
        $lang_path = $url_lang[0];
        $meta = $this->pages->getPageMetaData('hosts');
        $hosts = $this->hosts->getAllHosts();
        return $this->render('hosts', ['lang_path'=>$lang_path,'hosts' => $hosts,'meta'=>$meta,'title'=>$title]);
    }
public function actionHosts ( ) { $ title = $ this -> pages -> getPageTitle ( 'hosts' ) ; $ url_lang = explode ( '-' , Yii :: $ app -> language ) ; $ lang_path = $ url_lang [ 0 ] ; $ meta = $ this -> pages -> getPageMetaData ( 'hosts' ) ; $ hosts = $ this -> hosts -> getAllHosts ( ) ; return $ this -> render ( 'hosts' , [ 'lang_path' => $ lang_path , 'hosts' => $ hosts , 'meta' => $ meta , 'title' => $ title ] ) ; }
Renders Site Supported file hosts page.
Renders Site Supported file hosts page .