Wiki

Articles in category "how-tos", sorted by commentsX
Displaying 91-100 of 339 result(s).

Take more control of CGridview and model searching (related model or another controller)

Created about a year ago by Kostas Apazidis (KonApaz)How-tos5 comments – viewed 22,217 times – ( +5 ) – version 1.1
Suppose you have an Application in Yii that manages hotels each one has many customers.

Dynamic Sidebar using CClipWidget

Created 4 years ago by SheldmanduHow-tos5 comments – viewed 23,882 times – ( +21 ) – version 1.1
Most applications will have one or two sidebars and often you want to control the content that should appear in the sidebar based on the action. For example you will want to show something different on the homepage as opposed to some view page. While achieving this you generally also want to avoid putting the layout into each view, as that would mean if you wanted to change the layout (e.g. put the sidebar on the left instead of the right or do some funky layout which requires an additional div tag to be added) you'd have to go through every view, which does not achieve good code re-use. It is also bad practice to have lots of if statements in column2 layout just so that you can generate the sidebar correctly.

X-Sendfile - serve large static files efficiently from web applications

Created 4 years ago by Maurizio Domba CerinHow-tos5 comments – viewed 45,447 times – ( +26 ) – version 1.1
Normally when we want users to download a file, that file is put in a folder under the web application root and the web server does the rest.

How to Enhance a CGridView

Created about a year ago by bluyellHow-tos5 comments – viewed 3,779 times – ( +4 ) – version 1.1
by: Christian Salazar (bluyell, @salazachris74, christiansalazarh@gmail.com)

Select2 Infinite Scroll With Remote Data in Yii

Created about a year ago by amanationHow-tos5 comments – viewed 6,037 times – ( +4 ) – version 1.1
I was able to set up the infinite scroll of select2 in Yii. I am glad to share it with you. The demo and source code can be found here. However, select2 for Yii can be found here which uses a widget.

simple CSV export

Created 2 years ago by bluyellHow-tos5 comments – viewed 17,834 times – ( +4 / -1 ) – version 1.1
tags: csv, excel, export

Cookie management in Yii

Created 4 years ago by TrejderHow-tos5 comments – viewed 103,284 times – ( +42 / -1 ) – version 1.1
Cookie management in Yii is easy, but may not be so obvious for the beginners to this framework, so I wrote this simple article to clear some doubts out.

Install, update and use Yii with WAMP server

Created 2 years ago by mrsHow-tos5 comments – viewed 33,827 times – ( +5 / -1 ) – version 1.1
Here I am describing how you can install and update Yii in WAMP sever.

Load the Yii-Bootstrap Extension on Specific Actions

Created 2 years ago by chuntleyHow-tos5 comments – viewed 16,853 times – ( +10 ) – version 1.1
A big problem I've hit with the Yii-Bootstrap extension is that all AJAX requests are initializing Bootstrap because of preload. This is a huge waste of resources, especially when using AJAX-based file uploaders that split the file into chunks. Large file uploads using that method could be initializing bootstrap hundreds of times.
tags: bootstrap, filter

How to write a simple application component

Created 4 years ago by zaccariaHow-tos5 comments – viewed 44,623 times – ( +20 / -7 ) – version 1.1
An application component is a confortable way for share information among all component of the application