A
A
Alexander2016-11-14 18:48:06
Yii
Alexander, 2016-11-14 18:48:06

Comments in yii2 remain comments like everywhere else? Or are they functional?

I listen yii2. Everywhere in the comments there is something like:
/* \@var $content string */ /* \
@var $this \yii\web\View * / Now, is this what would someone like understand me? (A regular comment with an explanation). Or is it addressed to some kind of code handler? sorry for being stupid

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry, 2016-11-14
@koshalex

Good evening.
Here's an article for you to start, the rest is a search on google
And after another article .

A
Alexander Makarov, 2016-11-15
@SamDark

These are the comments for the IDE. To make the plugin work better.
There are practically no annotations in Yii. The comments are read by the console controller help to demonstrate the description of the commands and, as far as I remember, that's it.

V
Vasily Nazarov, 2016-11-14
@vnaz

Yii does have "magic" comments, i.e. those that affect the operation of the application.
For example, "@soap"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question