Answer the question
In order to leave comments, you need to log in
[[+content_image]]
What do entries like mean in the Yii2 documentation?
I took up learning yii2 and while reading the documentation I came across notations like
[[yii\base\Model::rules ()|rules()]] etc.
It is clear from the context that this is how the framework classes are designated, but did not quite understand what the vertical bar means? Why in one case [[yii\base\Object |Object ]] and not [[yii\base\Object \Object ]], for example?
Similar question about methods.
Answer the question
In order to leave comments, you need to log in
I believe it's GitHub Flavored Markdown . In a specific case, this is either malformed markup for links, or links to non-existent translation pages
Very similar to wiki markup
https://en.wikipedia.org/wiki/Help:Wiki_markup#Ren...
| means "or". That is, the argument can take either the parent object Yii \yii\base\Object, which is inherited by all objects in Yii2, or just any object.
hmm, didn't notice before.
perhaps the alias is already crammed into memory, and you can use the class simply by entering use Object.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question