Wiki

Articles in category "how-tos", sorted by commentsX
Displaying 41-50 of 355 result(s).

Getting the Most out of APC for Yii

Created 5 years ago by Da:SourcererHow-tos10 comments – viewed 38,955 times – ( +17 / -1 ) – 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

How to implement cron in Yii 2

Created 3 years ago by hemcHow-tos10 comments – viewed 57,966 times – ( +11 / -1 ) – 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

Update CGridview row separately using ajax request

Created 3 years ago by Kostas Apazidis (KonApaz)How-tos10 comments – viewed 16,883 times – ( +8 / -1 ) – version 1.1
There are cases you want to update a record on CGridview directly

Using Yii with Nginx and PHP-FPM

Created 6 years ago by LericHow-tos10 comments – viewed 63,167 times – ( +18 / -1 ) – 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.

Creating a CSS Driven Drop Down Menu using CMenu

Created 6 years ago by blindMoeHow-tos10 comments – viewed 88,928 times – ( +22 / -2 ) – version 1.1
CMenu offers great functionality and the ability to customize just about every aspect of the output. There are many times when I need to create a drop down menu or simply modify the look to make the designers happy. Because this seems to be a common task for me, I figured I would share my code to create a very simple drop down menu that other people could use.

Caching strategy

Created 4 years ago by darkheirHow-tos9 comments – viewed 7,476 times – ( +5 / -2 ) – version 1.1
Note: Before reading this wiki you should have read the caching part in the Yii guide
tags: caching, filter

A Multi-Tenant Strategy using Yii and MySQL

Created 3 years ago by JFReyesHow-tos9 comments – viewed 27,036 times – ( +10 / -1 ) – version 1.1
This article describes an implementation of multi-tenancy using Yii and MySQL.

Escape from Default's Yii2 Delete Confirm Box

Created 3 years ago by Antonio RamirezHow-tos9 comments – viewed 26,969 times – ( +9 / -2 ) – version 2.0
If you started playing with Yii2's new GridView, you will soon realize that some things have improved quite a lot, but I am sure its going to be a bit confusing at first glance when you try to modify certain javascript behaviors like for example, its delete confirmation dialog box.

How to generate Yii-like Documentation

Created 6 years ago by AsgarothHow-tos9 comments – viewed 34,850 times – ( +46 / -1 ) – version 1.1
Something a good application cant miss is documentation, and what would be better than some nice formatted HTML documentation that can be auto-generated from your code, we know several tools that already do this like phpDocumentor, but today we are introducing Yii Docs Generator which is a modification of the code that Yii itself uses to generate its documentation, thank phpnode for this wonderful work.
tags: doc

Local time zones and locales

Created 6 years ago by Russell EnglandHow-tos9 comments – viewed 73,514 times – ( +14 / -3 ) – version 1.1
Following on from international dates, I also wanted times in the local timezone and format. This was a little more tricky but I think I've got a solution. This is only really appropriate if you have an international app.