first of all thank for the yii developer team you rock.
am new in yii and i was wondering where is the best place to code my query(i.e is it in controller or model)
i have tried using CDataProvider in controller with params passed for view inputs and its working collectively,but when i try the same with model:
- i don’t have an idea on how to pass params to be used in the criteria part
2.am confuse on how to merge the three Model,control and view together as in to have the logic in model that get param from view through controller
what i need you people to help me with is an example of this scenerio:
- user enter data in two texfield in a form.
2.the data are passed to the controller using $_GET method i.e if(isset($_get(‘value1’)))
3 bind the value 1 into a param to be passed to a model
4 query the db based on the value one and display the result in a gride.
am sorry for the bad english its not my first language