PHP Method Yii::getPathofAlias Code Examples

This page contains top rated real world PHP examples of method Yii::getPathofAlias extracted from open source projects. You can rate examples to help us improve the quality of examples
Example #1
Show file File: Utils.php Project: ArpanTanna/seo
0
 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;
 }
Example #2
Show file File: SystemModules.php Project: kolbensky/rybolove
0
 /**
  * Check if info file exists
  *
  * @return bool
  */
 public function infoFileExists()
 {
     return file_exists(Yii::getPathofAlias('application.modules.' . $this->name . '.config.info') . '.php');
 }
Example #3
Show file File: profile.php Project: piond/new_rsud
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>