Yii2: The worst PHP framework. Why these lines done work

Created on 27 Mar 2017  路  4Comments  路  Source: yiisoft/yii2

\app\models\UserMenu::find()->orderBy(['display_order' => SORT_DESC]);

or

\app\models\UserMenu::orderBy(['display_order' => SORT_DESC])->find();

or

\app\models\UserMenu::findAll(['active'=>1])->orderBy(['display_order' => SORT_DESC])->find();

question

Most helpful comment

The worst question on GitHub ever :)

All 4 comments

Thank you for your question.
In order for this issue tracker to be effective, it should only contain bug reports and feature requests.

We advise you to use our community driven resources:

If you are confident that there is a bug in the framework, feel free to provide information on how to reproduce it. This issue will be closed for now.

_This is an automated comment, triggered by adding the label question._

The worst question on GitHub ever :)

man... RTFM

There is only one reason those commands wouldn't work. There appears to be some sort of IO error between your keyboard and the internet.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alexandernst picture alexandernst  路  163Comments

spiritdead picture spiritdead  路  67Comments

dhiman252 picture dhiman252  路  44Comments

sepidemahmoodi picture sepidemahmoodi  路  104Comments

gpoehl picture gpoehl  路  47Comments