Jump to content
Larry Ullman's Book Forums
maman

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?

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...