* @copyright (c), Thread */ class SitemaphtmlController extends \frontend\components\BaseController { public $title = "Sitemaphtml"; public $defaultAction = 'index'; /** * */ public function init() { parent::init(); $this->breadcrumbs = [ [ 'label' => Yii::t('page', 'Pages') ] ]; } /** * @return array */ public function behaviors() { return [ 'verbs' => [ 'class' => VerbFilter::className(), 'actions' => [ 'index' => ['get'], ], ], ]; } /** * @return string */ public function actionIndex() { $this->layout = "@app/layouts/page_no_sidebar"; // $this->breadcrumbs[] = [ 'label' => Yii::t('seo', 'SitemapHtml:Title'), 'url' => Url::toRoute(['index']) ]; // return $this->render('index', [ 'pages' => Page::getAllWithLabel(), 'catalog_groups' => Group::getAllWithLabel(), 'trademarks' => Trademark::getAllWithLabel() ]); } }