Jump to content

Yupik

New Members
  • Content Count

    1
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Yupik

  • Rank
    Newbie
  1. Hi benoit1980, First of all, sorry for "late" answer It seems that You don't have namespace for ActiveRecord class use yii\db\ActiveRecord; If You won't specify this, PHP will look for that class in current namespace, like You see in throwed exception, 'app\models'. The other way is to override ActiveRecord class in 'app\models' <?php namespace app\models; use yii\db\ActiveRecord as BaseActiveRecord; class ActiveRecord extends BaseActiveRecord { // ... } Tip: IDE like NetBeans have auto detecting for namespaces (Ctrl+Shif+I), which can save alot of time
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.