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

schmunk42 picture schmunk42  路  3Comments

SamMousa picture SamMousa  路  3Comments

chaintng picture chaintng  路  3Comments

skcn022 picture skcn022  路  3Comments

sobit picture sobit  路  3Comments