[[+content_image]]
A
A
Alexis178422015-07-14 18:39:53
Yii
Alexis17842, 2015-07-14 18:39:53

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

[[+comments_count]] answer(s)
K
krypt3r, 2015-07-15
@krypt3r

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

B
BoShurik, 2015-07-14
@BoShurik

Very similar to wiki markup
https://en.wikipedia.org/wiki/Help:Wiki_markup#Ren...

A
Andrey Pavlenko, 2015-07-14
@Akdmeh

| 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.

D
Dmitry Bay, 2015-07-14
@kawabanga

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 question

Ask a Question

731 491 924 answers to any question