Sorted by commentsX
Displaying 91-100 of 784 result(s).

Model password confirmation field.

Created 5 years ago by twisted1919How-tos10 comments – viewed 72,018 times – ( +11 / -2 ) – 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.

A very easy way to setup yiic on WAMP server (without extra windows settings)

Created 3 years ago by Kostas Apazidis (KonApaz)Tutorials10 comments – viewed 39,790 times – ( +6 / -2 ) – version 1.1
Assuming that you have already install the wampserver on your windows.

Organize directories for applications with front-end and back-end

Created 8 years ago by qiangTutorials10 comments – viewed 76,611 times – ( +28 / -1 ) – version 1.1
Large applications are often divided into front-end and back-end (or even more ends) depending on the target user groups. The front-end should be used by common users, while the back-end mainly the administrators or staff members. The two ends usually have dramatically different appearance, even though they may share a lot of code underneath. In this tutorial, we describe a way of organizing directories of the code for both ends.

Manage (Target) Language in Multilingual Applications + A Language Selector Widget (i18n)

Created 5 years ago by c@cbaTutorials10 comments – viewed 36,470 times – ( +15 / -1 ) – version 1.1
In case of a multilingual application, one might consider it a reasonable approach to store the preferred language of the user in a session variable, and after that, every time a page is requested, to check this session variable and render the page in the indicated language. This tutorial shows a Yii-way of doing this. We implement an event handler for the onBeginRequest event; as the name of the event suggests, this event handler will be called at the beginning of each request, so its a good place to check whether a language is provided (via post, session or cookie) and set the application language accordingly. We also implement a simple Language-Selector Widget, which can render the language options as ajax-links or as a drop-down list.

Behaviors & events

Created 7 years ago by pestaaTutorials10 comments – viewed 128,912 times – ( +52 / -1 ) – version 1.1
These features provide endless possibilities and unbelievable flexibility, but as current documentation does not give more than a few examples, it might be difficult to fully understand their internals and requirements.

Getting the Most out of APC for Yii

Created 5 years ago by Da:SourcererHow-tos10 comments – viewed 38,064 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

Display an AJAX tree from your DB using CTreeView

Created 7 years ago by Fran̤ois GannazTutorials10 comments Рviewed 57,145 times Р( +21 / -1 ) Рversion 1.1
This example uses a MySQL DB with a table named tree with the fields id, name, and parent_id. The parent_id will be NULL for root elements. The SQL is kept simple (no autoinc, no FK, etc).
tags: AJAX, CTreeView

Events explained

Created 5 years ago by pligorTutorials10 comments – viewed 39,277 times – ( +22 / -4 ) – version 1.1
Let's see what exactly are the events in Yii!

How to implement cron in Yii 2

Created 3 years ago by hemcHow-tos10 comments – viewed 51,501 times – ( +10 / -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

Single sign on across multiple subdomains

Created 6 years ago by ianar̩How-tos10 comments Рviewed 45,208 times Р( +32 / -1 ) Р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.