pceuropa / yii2-menu

Menu menager, dynamic Yii2 widget. Active menu items
https://pceuropa.net/yii2-extensions/yii2-menu
MIT License
27 stars 17 forks source link

Running in advanced template #3

Open pdempsey opened 7 years ago

pdempsey commented 7 years ago

I'm having a lot of problems running this package in the advanced template set up for yii2

Installed with composer. Did the migrate with the package in the installed code in vendor It failed on first run.. Was looking for menu_id and the table id col was id. changed that.. Made a menu, no problem. However when I try to go in and edit that menu. I get

Non-static method pceuropa\menu\models\Model::findModel() should not be called statically, assuming $this from incompatible context

Fatal error, and app stops.

pceuropa commented 7 years ago

Tank You for your feedback. I changed migrate files (I prefers menu_id than id) and 25 line in Model -public static function findModel($id)

Try "composer update" . Database update required. It should be menu_id instead of id (2.0.1+)

I'm not sure will help, your error did not occur with me before and after I tested on the advanced template, it should just work. If you have questions I am available.