mvc pattern and jquery script

Hello to everybody, i’m a new yii fan. I’m wondering if and how I have to divide a block of jquery code that manipolates the dom (by adding or removing elements), something that generally is related to view, and also manipolates a data array, generally related to model. I have to forget mvc pattern inside a jquery block? Sorry for my english


if you want to have OO code on client side (where you write functional one using jQuery) you probably should consider using another JS framework (like ExtJS) or simply forget about MVC while using jQuery. Yii is using MVC in their’s PHP code, but if look into some pieces of JS code bundled with framework (say jquery.yiigridview.js - code used with CGridView widget) - you won’t find any MVC there :)