Wiki

Sorted by commentsX
Displaying 131-140 of 467 result(s).

Displaying image in a CGridView column.

Created about a year ago by sirin kHow-tos5 comments – viewed 22,497 times – ( +12 / -1 )
This is a simple example of how we can display images in CGridviews.Imagine that you have an image field in your table ie either a location field or a blob type field used to store the images.
tags: CGridView, image

Storing your images in your table's blob field and displaying that stored images.

Created about a year ago by sirin kHow-tos5 comments – viewed 10,792 times – ( +8 / -1 )
He im giving you a very simple example ie how you can store an image to your blob field in a table.Hope you already familiar with the normal image upload.
tags: blob, image

CSV Export

Created 11 months ago by JohnPollardHow-tos5 comments – viewed 5,541 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

Create image thumbnails with php_img_preview

Created 9 months ago by Anas AbuDayahTutorials5 comments – viewed 5,535 times – ( +3 )
This is another way to view images in your application and I like this way because it's simple and I think it's better performance than other.
tags: images, views

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

Created 2 years ago by Steve FriedlHow-tos5 comments – viewed 24,162 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

CButtonColumn: Use special variable $data for the 'id' in the 'options' of a button

Created 8 months ago by bluezedTutorials5 comments – viewed 6,990 times – ( +6 )
In an application I had a CGridView with a CButtonColumn and for an Ajax-Request I needed to make sure that the IDs of the buttons would not change when the GridView was updated so in effect I wanted to link them to the $data->id. So I tried:

Create Yii Project In Cloud9

Created 8 months ago by BenTutorials5 comments – viewed 7,637 times – ( +3 )
This tutorial will guide you through the process of creating a yii application using Cloud9. We will use a git workspace to enable version control and also show how to link the Cloud9 workspace to GitHub.

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

Created 2 years ago by Maurizio DombaHow-tos5 comments – viewed 22,908 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 7 months ago by AsgarothHow-tos5 comments – viewed 9,929 times – ( +5 )
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 7 months ago by CTalaHow-tos5 comments – viewed 6,826 times – ( +3 / -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 ).