In Yii2, how can I exclude layout from rendering in a view file?

learner

I have an admin login page that I want to render without the layout. How can I render a view in Yii2 without rendering the main layout?

Zack

This can be done using renderPartial() method.

You can get more from the official documentation. Here's a link!

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How can I render a partial view from within a layout file?

How to exclude rendering existing script in DOM in Yii2

How can i limit the data from Yii2 DataProvider?

yii2 how to replace customize meta tag from "view" with default meta tags in "layout"

Yii2: Rendering view from within the widget

How can I exclude a particular file from test coverage analysis?

How can I exclude a file from deploy in gcloud?

Change layout file within a view in Yii2

How can i programmatically add a view from XML to a Layout?

Pass params from view to layout in Yii2

How to exclude navbar from my login page in yii2

How I can to turn off a theme in a especific yii2's view?

Yii2 How to split layout file to separate header and footer?

How to use custom css file for layout of a module in Yii2

How to access css/js file for layout of a module in Yii2

How to pass param from controller to layout in YII2

How can I exclude $(this) from a jQuery selector?

How can I exclude the 10 from the output?

Should i calling model direct from view yii2

how can I get a value, not key from dropDownList Yii2

how can I access frontend module from backend in yii2?

how can i get data from table with relation many to many in yii2?

Yii2, how to use another model for display in view file

How can I submit to a file in controller from view

How can I include a seperate CSS file from an ejs that borrows from a layout.ejs file?

Yii2 How to call controller action from the view

How to get data from model A in view B Yii2

Yii2: How to send new variable from view to controller?

How to remove an asset from a particular view in yii2