Wiki

Articles tagged with "views"X
Displaying 11-14 of 14 result(s).

Front-end developer's guide

Created 5 years ago by jonahTutorials5 comments – viewed 28,117 times – ( +11 / -1 ) – version 1.1
This wiki is a work in progress.

Understanding the view rendering flow

Created 5 years ago by dckurushinFAQs16 comments – viewed 198,610 times – ( +96 / -4 ) – version 1.1
There is a lot of confusion surrounding what is happening behind the scenes when you render a view.

Avoiding duplicate script download when using Ajax calls to render different Views

Created 6 years ago by Antonio RamirezTips6 comments – viewed 24,303 times – ( +13 / -2 ) – version 1.1
I had to partially render two types of views, depending on user selection. Wanted to display a GRID or a LIST style with an event that AJAX'ed new contents and update a layer with them.
tags: tutorial, AJAX, views

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

Created 6 years ago by DavidhhuanTutorials1 comment – viewed 8,847 times – ( +1 / -2 ) – 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