Wiki

Articles in category "how-tos", sorted by commentsX
Displaying 31-40 of 348 result(s).

CKEditor Integration (includes steps for file uploads) - Step by Step

Created 3 years ago by shulmeHow-tos12 comments – viewed 48,302 times – ( +26 ) – version 1.1
Hey guys, I'm hoping other people will find this helpful. Today I went through the process of adding CKEditor to one of my projects, and then integrating KCFinder as the image uploader. It will be used in a CActiveForm, without the use of any crazy weird widgets. All paths are relative, using Yii functions, so this will work no matter where you install. Here it is:

How to show ajax delete status in CGridView like flash messages

Created 4 years ago by hasanaviHow-tos12 comments – viewed 41,582 times – ( +24 ) – version 1.1
I've seen many tickets regarding how to show friendly delete confirmation using CGridView's CButtonColumn in ajax request. If you are using relational database, after producing CRUD functionality when you try to delete a record in ajax mode which has child record it can't be deleted and you can see the ajax loader forever. By this way you can't show the users if a record has been successfully deleted or if there are some problem in flash style (setFlash() / getFlash())

jQuery UI Datepicker

Created 3 years ago by softarkHow-tos11 comments – viewed 67,308 times – ( +13 ) – version 1.1
We all love the convenient gadget, namely jQuery UI Datepicker as an input element for date. Yii supports it as CJuiDatePicker. Let's see how to use it.

How to set up Unicode

Created 6 years ago by MikeHow-tos10 comments – viewed 81,762 times – ( +19 ) – version 1.1
To fix issues with display of special language characters once and for all there's a solution: use Unicode UTF-8 everywhere. If everything is set up to use Unicode, you can use mostly every language in your application.
tags: i18n, unicode

Model password confirmation field.

Created 4 years ago by twisted1919How-tos10 comments – viewed 63,502 times – ( +11 / -1 ) – version 1.1
I had some troubles with the password confirmation field for when adding updating user records, so i thought that i should share the way i got it working.

Getting the Most out of APC for Yii

Created 3 years ago by Da:SourcererHow-tos10 comments – viewed 33,851 times – ( +16 ) – version 1.1
The Advanced PHP Cache is a PHP extension which primarily serves as an opcode cache for PHP. The basic idea is to save PHP from re-evaluating the PHP code to intermediate bytecode on each request. Installing and enabling APC already yields a significant performance benefit. However, APC is not a black box that will magically change all for the better. More over it is important to understand that APC needs memory to operate.
tags: caching, apc

Creating and updating model and its related models in one form, inc. image

Created 3 years ago by BoazHow-tos10 comments – viewed 73,420 times – ( +6 / -3 ) – version 1.1
We start slowly and simple...

How to implement cron in Yii 2

Created about a year ago by hemcHow-tos10 comments – viewed 27,883 times – ( +10 ) – version 2.0
In advance template there is already a file yii. And there is no need to run it as php, it is Linux script.
tags: cron, yii2, console

Single sign on across multiple subdomains

Created 5 years ago by ianaréHow-tos10 comments – viewed 38,846 times – ( +32 ) – version 1.1
This had me stumped for a while so I figured it would be nice to share here to avoid others the grief.

Using Yii with Nginx and PHP-FPM

Created 4 years ago by LericHow-tos10 comments – viewed 52,611 times – ( +18 ) – version 1.1
This config is built on an Ubuntu 11.04 server. Software is nginx, php-fpm (php5-fpm). For performance, it's recommended to run php-fpm in SOCKET mode, instead of accessing via IP:PORT. That is the method shown below.