Wiki

Articles tagged with "render", sorted by ratingX
Displaying 1-4 of 4 result(s).

Understanding the view rendering flow

Created 2 years ago by dckurushinFAQs16 comments – viewed 128,043 times – ( +89 / -3 ) – version 1.1
There is a lot of confusion surrounding what is happening behind the scenes when you render a view.

Avoiding rendering entire page when using CGridView and CListView via AJAX

Created 3 years ago by xrxHow-tos16 comments – viewed 31,580 times – ( +23 ) – version 1.1
Since I used CGridView for a first time, I didn't like how it handled operations like sorting, filtering, changing page and etc using AJAX.

Putting Function To Be Called In View

Created 3 years ago by junxiongTips2 comments – viewed 22,896 times – ( +6 / -1 ) – version 1.1
Sometimes we need some complicated view to be displayed (such as generating complicated table). Most people suggest that in MVC the View must be as simple as possible (don't have too much loops, etc). So what we have to do is to hide away the complex code by putting it at somewhere else. The following are few places options to keep the function:
tags: view, render

embed a view file of the class which implement the CAction.

Created 3 years ago by DavidhhuanTutorials1 comment – viewed 6,611 times – ( +1 / -1 ) – version 1.1
In Yii, we can define an action class and ask the controller to instantiate it. And we always create ourselves actions class in rootPath/protected/extensions, and the view file we called in the actions class always are located in rootPath/protected/views/ControllerNAME or rootPath/themes/ThemeNAME/ControllerNAME, then when we use the same actions class in different controllers, we have to copy it from one controller to the other controller, so we also need the "same" view file work for us, here is an example.
tags: actions, render, views