Jump to content
Larry Ullman's Book Forums

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


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



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




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,



Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...