Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: ioluci
Added: Apr 1, 2019 2:18 PM
Modified: Apr 2, 2019 12:59 PM
Views: 11
  1. /*
  2.  relative HomeUrl = Url::home() = /complex/web/index.php
  3.  absolute HomeUrl = Url::home(true) = http://localhost/complex/web/index.php
  4.  http absolute HomeUrl = Url::home('http') = http://localhost/complex/web/index.php
  5.  -----------------------------------------------------------------------------
  6.  Url::base() = /complex/web
  7.  Url::base(true) = http://localhost/complex/web
  8.  -----------------------------------------------------------------------------
  9.  @web = /complex/web
  10.  @webroot = C:/wamp64/www/complex/web
  11.  @app = C:\\wamp64\\www\\complex
  12.  @runtime = C:\\wamp64\\www\\complex\\runtime
  13.  -----------------------------------------------------------------------------
  14.  Yii::$app->basePath = C:\\wamp64\\www\\complex
  15.  Yii::$app->homeUrl = /complex/web/index.php
  16.  Yii::$app->params['uploadPath'] = C:\\wamp64\\www\\complex/uploads/
  17.  
  18.  
  19.  date(<d/m/Y H:i:s>) = 01/04/2019 14:16:46
  20.  new \\DateTime(<now>, new \\DateTimeZone(<Europe/Rome>)->format(<d/m/Y H:i:s>) = 01/04/2019 16:16:46
  21.  time() = 1554128206
  22.  strtotime(<now>) = 1554128206
  23.  date(<d/m/Y H:i:s>, strtotime(<now>) = 01/04/2019 14:16:46
  24.  strftime(<%d/%m/%Y %T>) = 01/04/2019 14:16:46
  25.  */