Wiki

Articles in category "how-tos", sorted by commentsX
Displaying 51-60 of 188 result(s).

CSV Export

Created about a year ago by JohnPollardHow-tos5 comments – viewed 5,896 times – ( +4 )
I needed a csv export function for my cgridview and I wanted to export the entire result set of the sorted and filtered cgridview the user was viewing via ajax.
tags: csv, export

Moving project code outside of webroot (plus multiple project support)

Created 2 years ago by Steve FriedlHow-tos5 comments – viewed 25,060 times – ( +22 / -1 )
Yii's by-default directory organization works well enough, but there are several steps one can take that improve the security and serviceability of the system, especially in the context of multiple Yii projects on the same machine (including multiple versions of the same project).
tags: config, security

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

Created 2 years ago by Maurizio DombaHow-tos5 comments – viewed 24,010 times – ( +24 )
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.

Additional form data with XUpload

Created 8 months ago by AsgarothHow-tos5 comments – viewed 11,134 times – ( +6 )
In this article you'll learn how to send additional form data when uploading files using XUpload widget

A simple go back button widget

Created 8 months ago by CTalaHow-tos5 comments – viewed 7,318 times – ( +4 / -2 )
We all know that widgets are really useful. We can use the almost everywhere we want, and we can use the same code a lot of times ( Almost OOP ).

URL management for Websites with secure and nonsecure pages

Created 8 months ago by qiangHow-tos5 comments – viewed 7,224 times – ( +14 )
In this article, I will describe how to manage URLs for a Website that has both secure and nonsecure content.
tags: URL

Install, update and use Yii with WAMP server

Created 7 months ago by mrsHow-tos5 comments – viewed 10,160 times – ( +4 / -1 )
Here I am describing how you can install and update Yii in WAMP sever.

Syncing sessions between Yii and KCFinder

Created 6 months ago by Thanasis FotisHow-tos5 comments – viewed 2,798 times – ( +1 )
I have been trying to find information on how to sync the sessions between Yii and KCFinder so that the two applications can "communicate" with each other. I managed to find some bits and pieces on the correct approach to use, but not a definite guide or concrete code.

Load the Yii-Bootstrap Extension on Specific Actions

Created 6 months ago by chuntleyHow-tos5 comments – viewed 6,786 times – ( +8 )
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

Custom Autocomplete Display and Value Submission

Created about a year ago by Antonio RamirezHow-tos5 comments – viewed 22,089 times – ( +12 / -1 )
How many of us has wondered how to create an autocomplete that will display the names of a related models but do require the id of that selected name to be submitted for model creation/update?