Questions tagged [yii2-model]

Use this tag if your question relates to the Yii2-model-class or one of its descendants.

This tag should be used whenever your question relates to the \yii\base\Model class or one of its descendants like \yii\db\ActiveRecord.

304 questions
-2
votes
1 answer

Yii2 How can i use save() with this array?

I have a problem with my code. I want to clone a string and into this string, there are three data. Each parameter is a different table of the DB. When I run the code, Yii2 say error: Call to a member function save() on an array this is in my…
niksolaz
  • 102
  • 8
-2
votes
1 answer

Yii2: how to control which attributes a user is allowed to see?

I'm wondering what the best approach is to control which model attributes a given user is allowed to view. To control which attributes they are allowed to modify I'm of course using scenarios, but sometimes they should be allowed to view attributes…
TheStoryCoder
  • 2,874
  • 4
  • 24
  • 54
-2
votes
1 answer

Widget error undefined $model

I'm new in yii2... I need to use this widget in yii2 app: https://github.com/2amigos/yii2-file-upload-widget But when I install it, throw this error: Undefined variable: model There is a screen: http://prntscr.com/bnvul8 Any suggession? --…
-3
votes
1 answer

Moving from local to server Yii

I have configured(installed successfully) on my WAMP in Local and is working fine. When I uploaded it to my server, it doesn't work. I have edited only "config/db.php" as per requirement. Now I browse to my webpage that is…
1 2 3
20
21