Jump to content
Larry Ullman's Book Forums

Need Explanation On How Yii::app()->Name Works


maman
 Share

Recommended Posts

Hello guys I was confused to what Yii::app()->name meant. I know that Yii::app() is calling the static function app() in the YiiBase class, but there is no property name in that same class, can someone explain?

Link to comment
Share on other sites

Hi,

 

There is a property called name in app.  Here is a link to the documentation for $app property.

 

http://www.yiiframework.com/doc-2.0/yii-web-application.html

 

use a program like notepad++ that can recursively search sub-folders for Yii::$app->name and see what shows up.  You'll get an idea of how it might be used.

 

Hope that helps,

 

Brent.

Link to comment
Share on other sites

 Share

×
×
  • Create New...