I have $model->findAll() in controller, and send it to a view. In this view I use foreach with $model to create many buttons with id = $model->id, onclick = aFunction($model->id). If i click on the button number 3 -> run the aFunction(3).
Can I use $model in JQuery?
How i could use these variables with JQuery or pass them to a Jquery function?