示例#1
0
<?php

$this->title = 'Run 4 Good | My Profile';
use yii\helpers\Html;
use yii\helpers\Url;
use app\assets\ChartAsset;
ChartAsset::register($this);
?>
<div class="jumbotron">
  <div class="container">
    <div class="col-lg-6">
      <div class="col-lg-4">
        <?php 
echo Html::img('@web/' . $hero['Pic'], array('class' => 'img-circle', 'width' => '150', 'height' => '150'));
?>
      </div>
      <div class="col-lg-8">
        <p>HERO</p>
        <h2><?php 
echo $hero['Name'] . ' ' . $hero['Surame'];
?>
</h2>
        <p>
          <?php 
echo $event['Date'];
?>
<br>
          <?php 
echo $event['Name'];
?>
        </p>
<?php

/**
 * Created by PhpStorm.
 * User: karen
 * Date: 1/24/16
 * Time: 8:45 PM
 */
$this->title = 'Trash: Charts';
use yii\web\JqueryAsset;
use app\assets\ChartAsset;
use yii\web\View;
use app\components\LanguageHelper;
//ChartAsset::register($this);
$this->registerJsFile('js/charts.js', ['depends' => [JqueryAsset::className(), ChartAsset::className()]]);
$seasons = ['summer' => 'Մոտավոր աղբի քանակը ամռանը', 'winter' => 'Մոտավոր աղբի քանակը ձմռանը'];
$arrayParams = ['MainSearch' => ['region' => $region]];
$indexLink = LanguageHelper::getLinks('index', $arrayParams);
?>
<h3><a href="<?php 
echo $indexLink['url'];
?>
"><?php 
echo $indexLink['label'];
?>
</a></h3>

<div class="col-sm-12">
    <?php 
foreach ($totals as $season => $seasonValues) {
    ?>