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

Member

sidney

by sidney , in category: Technology , 2 months ago

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

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by melvina , 2 months 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');