-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't access to message property of HttpException. #2503
Comments
Yii Exception classes extend from PHP exception so they have the same properties and methods. message property is protected so you have to use getMessage() to retrieve it. http://www.php.net/manual/en/class.exception.php |
Thank you again!
I don't have deep PHP knowledges..Is it so obviously? |
@cebe it seems we need to inspect PHP classes when generating methods. |
Also in method detail display, we should show whether the method is public or private. |
done. 82d103d |
This is out of scope of the beta, moved to RC. |
Issue moved to yiisoft/yii2-apidoc#44 |
Hello, I can't access to
message
property of exception's object. Is in normal?My simple code:
When I go to nonexist page, I get the following:
It means that I can't insert
$exception->message
into view file.The text was updated successfully, but these errors were encountered: