Example #1
0
<?php

/* @var $this yii\web\View */
use frontend\assets\FrontendAsset;
use app\components\ArticulosWidget;
use frontend\models\Contenido;
$baseUrl = FrontendAsset::register($this)->baseUrl;
$this->title = 'My Yii Application';
?>

<?php 
echo ArticulosWidget::widget(['message' => ' Yii2.0']);
?>



<!-- BEGIN .full-block -->
<div class="full-block">

    <!-- BEGIN .ot-slider-new -->
    <div class="ot-slider-new">

        <!-- BEGIN .slider-new-slides -->
        <div class="slider-new-slides">

            <div class="slider-slide">
                <img src="<?php 
echo $baseUrl;
?>
/img/photos/image-102.jpg" alt="" style="width: 100%;">
                <div class="slider-layer">
Example #2
0
<?php

/**
 * Created by PhpStorm.
 * User: x.guo
 * Date: 2016/4/4
 * Time: 18:18
 */
use yii\helpers\Html;
use yii\helpers\Url;
use yii\widgets\Menu;
use yii\widgets\Breadcrumbs;
use frontend\assets\FrontendAsset;
yii::beginProfile('mainAsset', 'gx');
FrontendAsset::register($this);
yii::endProfile('mainAsset', 'gx');
$this->title = 'admin';
$baseUrl = Yii::getAlias('@web');
?>

<?php 
$this->beginPage();
?>

    <!DOCTYPE html>
    <html lang="<?php 
echo Yii::$app->language;
?>
">

    <head>
Example #3
0
<?php

use yii\helpers\Html;
/* @var $this \yii\web\View */
/* @var $content string */
\frontend\assets\FrontendAsset::register($this);
$this->beginPage();
?>
<!DOCTYPE html>
<html lang="<?php 
echo Yii::$app->language;
?>
">
<head>
    <meta charset="<?php 
echo Yii::$app->charset;
?>
"/>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title><?php 
echo Html::encode($this->title);
?>
</title>
    <?php 
$this->head();
?>
    <?php 
echo Html::csrfMetaTags();
?>
</head>
<body>