示例#1
0
文件: Utils.php 项目: ArpanTanna/seo
 public static function getPdfFile($domain, $lang = null)
 {
     $root = Yii::getPathofAlias('webroot');
     $lang = $lang ? $lang : Yii::app()->language;
     $subfolder = mb_substr($domain, 0, 1);
     $file = $root . "/pdf/" . $lang . "/" . $subfolder . "/" . $domain . ".pdf";
     return $file;
 }
示例#2
0
 /**
  * Check if info file exists
  *
  * @return bool
  */
 public function infoFileExists()
 {
     return file_exists(Yii::getPathofAlias('application.modules.' . $this->name . '.config.info') . '.php');
 }
示例#3
0
		<?php 
    echo Yii::app()->user->getFlash('profileMessage');
    ?>
	</div>
<?php 
}
?>
<div class="row">
	<div class="col-sm-4">
		<?php 
$box = $this->beginWidget('booster.widgets.TbPanel', array('title' => false, 'padContent' => false));
?>
			<div class="profile_heading">
				<?php 
if (isset($attributes['photo'])) {
    if (file_exists(Yii::getPathofAlias('webroot') . '/' . $attributes['photo']['value'])) {
        ?>
						<img src="<?php 
        echo Yii::app()->getBaseUrl(true) . '/' . $attributes['photo']['value'];
        ?>
" class="img-thumbnail">
				<?php 
    }
}
?>
			</div>
			<div class="navigation">
				<?php 
$this->widget('booster.widgets.TbMenu', array('type' => 'list', 'items' => array(array('label' => 'Edit profile', 'url' => array('edit'), 'icon' => 'fa fa-edit fa-lg'), array('label' => 'Change password', 'url' => array('changepassword'), 'icon' => 'fa fa-lock fa-lg'))));
?>
			</div>