What is difference between "render" and "renderpartial" in Yii ?

Member

by sidney , in category: Technology , 3 years ago

What is difference between "render" and "renderpartial" in Yii ?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by melvina , 3 years ago

Render function is used to render a view in Yii with specified layout whereas renderpartial is used to render only view layout is not included in view.

Renderpartial is basically used when we have to update a portion of page via AJAX.


Usage

render('yourviewname');

renderpartial('yourviewpartial');