Yii Framework Forum: Multiple Select At Once? - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Multiple Select At Once? Rate Topic: -----

#1 User is offline   clonevn 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 111
  • Joined: 25-March 13

Posted 19 May 2013 - 11:09 AM

My task is manual select model before display it by view or do something in other controller. So here is situation: I use findAll to list all the models. Display it in the view with checkbox for each model. I would like to choose model I like then send them as CActiveRecord objects to other controller to do stuff. At this moment, I dont know how to do it with Yii. Any solution with selector, checkbox, dropdownlist is OK if it allows me to choose models I want. Your help would be appreciated :) .
0

#2 User is offline   KonApaz 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,305
  • Joined: 21-February 11
  • Location:Greece

Posted 20 May 2013 - 03:50 PM

Hi clonevn

Each Controller/action manipulate one user request at once!

I you want different part of code manipulates each model in one request then make many methods in one Controller and an action to send each model to those methods.

If you want each instance model to send to other controller/action then create multiple forms in view to send each model to another controller/action
Yii is the best php framework in the world!
find our demo Yii extension on www.webkit.gr
Is it post useful? please v++ ;)
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users