ajax - Yii Framework Post and comments associated -
i'm new in yii framework , render commments associated given post. tried find solution until now, cannot figure out how it.
i have list of posts , when click link want list associated comments without refreshing page.
to clear, have following
post 1
my post 1 description .......................... comment (1)
post 2
my post 2 description .......................... comment (3)
post 3
my post 3 description .......................... comment (5)
and when click comment (3) of post 2, want following
my post 1 description .......................... comment (1)
post 2
my post 2 description .......................... comment (3)
comment 1
comment 2
comment 3
post 3
my post 3 description .......................... comment (5)
...
any appreciate
you need use chtml::ajaxlink()
there plenty of examples on linked article populate div, under post.
Comments
Post a Comment