frontend/controllers/SiteController.php
/**
     * Renders Site how does it works page
     *
     * @return mixed
     */
Renders Site how does it works page
@return mixed
Renders Site how does it works page @return mixed
public function actionWork()
    {
        $title = $this->pages->getPageTitle($this->param);
        $meta = $this->pages->getPageMetaData($this->param);
        $hostsNum = $this->hosts->getAllHosts()->count();
        return $this->render('work', ['hostsNum' => $hostsNum,'meta'=>$meta,'title'=>$title]);
    }
public function actionWork ( ) { $ title = $ this -> pages -> getPageTitle ( $ this -> param ) ; $ meta = $ this -> pages -> getPageMetaData ( $ this -> param ) ; $ hostsNum = $ this -> hosts -> getAllHosts ( ) -> count ( ) ; return $ this -> render ( 'work' , [ 'hostsNum' => $ hostsNum , 'meta' => $ meta , 'title' => $ title ] ) ; }
Renders Site how does it works page
 @return mixed
Renders Site how does it works page @return mixed