Questions tagged [yii-inheritance]

6 questions
8
votes
1 answer

How to load selected list items in multiple-select-listbox in update view in yii?

I have a multiple select-list-box for Staff in Create-Service-Form, used to select multiple staff when creating a new service. for this i can assign multiple staff on a single service. I saved staff_id field as: $model->staff_id =…
Frank
  • 2,285
  • 7
  • 43
  • 68
2
votes
1 answer

Yii CUserIdentity vs a User Model

I have at least one model in my Yii project that will need to reference a particular user ID. In my SQL for the model I have something like CONSTRAINT FOREIGN KEY (user_id) REFERENCES User(id). I was going to go ahead and create a User model when I…
tacos_tacos_tacos
  • 10,277
  • 11
  • 73
  • 126
1
vote
1 answer

How To wigetized a single view using several models in Yii?

Am working on Yii application, which has only one view -'Dashboard', i need to do all application activity on this single interface. like as show all user details, account, history, status with curd facility. --In Controller-- class…
Frank
  • 2,285
  • 7
  • 43
  • 68
1
vote
1 answer

Implementing Yii RESTful API from example - _sendResponse function generating 500 error

I am trying to implement http://www.yiiframework.com/wiki/175/how-to-create-a-rest-api and having some trouble with the _sendResponse function they specify. Below is my function, but first, let me explain the problem. I have an abstract class…
tacos_tacos_tacos
  • 10,277
  • 11
  • 73
  • 126
0
votes
2 answers

How to reuse Yii form using scenario

I have Registration model(which has fields login, password, email, mobile) and want to use some of the fields from Registration(like login and password) in a login action, and also validate it. How can i reuse the model fields, and also Validate the…
Harish Kurup
  • 7,257
  • 19
  • 65
  • 94
0
votes
1 answer

Yii2-Api: How to pass Token for the HttpBearer Filter

Here is my Controller class ClientController extends ActiveController { public $modelClass = 'common\models\Client'; public $serializer = [ 'class' => 'yii\rest\Serializer', 'collectionEnvelope' => 'items', ]; public…
rajwa766
  • 604
  • 13
  • 31