Wiki articles

Showing 141-160 of 822 items.

Active Record snapshotting (Model data base history)

Created 9 years ago by Bizley, updated 9 years ago by Bizley.

One of the common tasks the web application might be required to perform, especially the app using some kind of a CMS, is to save the history of data changes. Your client for sure will want the answer to this simple question - If I mess this up or delete by accident can we bring it back? Well, DB backup is one thing and quick recovery is another - let's talk about latter one.

1 0
5 followers
Viewed: 16 516 times
Version: 1.1
Category: Tutorials

Syncing sessions between Yii and KCFinder

Created 11 years ago by Thanasis Fotis, updated 10 years ago by Boaz.

>Info: As KCFinder's documentation mentions, if your application (Yii in our case) session handling is using the PHP environment configuration - meaning no change in session handling at all, then no change is needed also on KCFinder side to be able to use this session and thus have this simple interface between your Yii webapp and KCFinder. If t...

1 0
6 followers
Viewed: 16 517 times
Version: 1.1
Category: How-tos

Locking your Yii 2 project package versions with composer.lock

Created 9 years ago by Kartik V, updated 9 years ago by Kartik V.

Ok, you have installed a Yii 2 basic or advanced app for the first time and completed the post install steps. You have picked up a few extensions to install for the first time as well. You would already see a composer.lock file in your application root folder.

0 2
37 followers
Viewed: 16 595 times
Version: 2.0
Category: Tips

ISA hierarchy of tables inside a database and how to implement a single form

Created 12 years ago by pligor, updated 12 years ago by pligor.

Please consider the following Dear software engineers imagine I have a simple ISA hierarchy: parent A with children B and C. So let's say we have the corresponding tables named "a", "b", "c" and (created with the help of the gii model creator) the classes A, B, C The following is a screenshot from MySQL workbench: ![MySQL workbench screenshot](http://s4.postimage.org/4tuwkm43d/Screenshot.pn...

1 0
3 followers
Viewed: 16 710 times
Version: 1.1
Category: How-tos

Simple Multiple Environment Setup with Default Yii Installation

Created 10 years ago by Ibrar Turi, updated 10 years ago by CeBe.

After installing Yii basic application on our systems, most of the time we want to have multiple environment such as local, dev and live setup. Most of the times when we want to make changes to configuration file, we have to over-write configurations file for each environment.

2 0
8 followers
Viewed: 16 747 times
Version: 1.1
Category: How-tos

How to make bootstrap tabs remain active/selected after navigating to different web pages.

Created 7 years ago by emrald, updated 7 years ago by emrald.

Bootstrap tabs gets unselected/inactive when user navigates to other page and comes back. How to make bootstrap tabs remain active/selected after navigating to different web pages.

1 0
3 followers
Viewed: 16 759 times
Version: 2.0
Category: Tutorials

Creating HTML code using Jamboree Panels

Created 11 years ago by bluyell, updated 11 years ago by bluyell.
2 0
2 followers
Viewed: 16 804 times
Version: 1.1
Category: Tutorials

Directory independent extensions

Created 13 years ago by GOsha, updated 13 years ago by GOsha.

Many people want to use downloaded extensions in their own way. As for me most of the extensions require me to correct Yii::import() instructions inside their source code. All these extensions are directory dependent. To avoid the situation described above, I suggest to implement pseudo-anonymous aliases:

// take the curr...
16 1
7 followers
Viewed: 16 879 times
Version: 1.1
Category: Tips

How to have truly multilingual URLs

Created 8 years ago by oligalma, updated 2 years ago by oligalma.

We can easily have a multilingual site if we put a "lang" parameter that comes via GET. For example:

0 0
3 followers
Viewed: 16 895 times
Version: 1.1
Category: How-tos

Expert's model generation with Gii

Created 9 years ago by le_top, updated 9 years ago by le_top.

Efficient coding with Yii implies efficient use of the code generator. This article shares the personalised Gii templates that were built starting from the standard templates proposed by AweGen.

1 0
2 followers
Viewed: 16 932 times
Version: 1.1
Category: Tips

Update Gridview with Dropdown Selection

Created 9 years ago by lgastmans, updated 9 years ago by lgastmans.

I recently worked on updating the content of a gridview based on the selection of a dropdown menu. I thought I should share it in the forum...

0 0
4 followers
Viewed: 16 961 times
Version: 1.1
Category: Tips

CGridView keep focus on the control after filtering

Created 12 years ago by jayala, updated 12 years ago by jayala.

You can find the reason why I wrote this article here.

5 0
10 followers
Viewed: 17 002 times
Version: 1.1
Category: How-tos

Building Page Specific Menus using CMenu

Created 10 years ago by mistryb, updated 9 years ago by mistryb.

The Yii Framework provides a sweet functionality that allows you to easily create page specific menus. What does this mean? This allows you to create one layout or CSS styling for your menu, and when each page is loaded, a new set of menu items is loaded in. This is useful for context specific sidebars within your application.

0 0
3 followers
Viewed: 17 126 times
Version: 1.1
Category: How-tos
Tags: CMenu

关于Yii CHttpSession性能优化篇之源码流程分析

Created 12 years ago by Darwin Wen, updated 12 years ago by Maurizio Domba Cerin.

当我们使用Yii数据库去保存Session时,只要简单的配置就可以完成这个功能,在进行性能优化这个主题之前,我们先来查看一下CHttpSession和CDBHttpSession源代码,探讨CHttpSession和CDBHttpSession的流程再进行深一步优化主题。

0 1
2 followers
Viewed: 17 237 times
Version: 1.1
Category: Tips

Implementing a Flat User Access System

Created 11 years ago by Trejder, updated 11 years ago by Trejder.

This article shows a quick and easy way to implement flat user access control system. Flat means, that user access is controlled by level only, which is solution exactly opposite to complex RBAC access systems.

6 0
7 followers
Viewed: 17 267 times
Version: 1.1
Category: How-tos

How to make use of a fragment cache

Created 15 years ago by dalip, updated 13 years ago by wei.
1 0
2 followers
Viewed: 17 285 times
Version: 1.1
Category: Tutorials

Fixing extensions without modifying their code

Created 11 years ago by schmunk, updated 11 years ago by schmunk.

If you're working a lot with extensions you often stumble upon problems, when you want to include them into your custom web application, like hardcoded or absolute path aliases or classes extended from core application components, which implement addiditonal features.

6 0
10 followers
Viewed: 17 307 times
Version: 1.1
Category: Tips

Upload Files to Rackspace Cloud Files CDN

Created 11 years ago by StephenMiracle, updated 11 years ago by StephenMiracle.

** I actually made this into an extension for easier use. You can view the extension: http://www.yiiframework.com/extension/rackspaceconnect/

2 0
3 followers
Viewed: 17 365 times
Version: 1.1
Category: Tutorials

Making friends' configs, DB credentials and paths with version control

Created 11 years ago by Alexander Palamarchuk, updated 11 years ago by ajsharma.

In many cases developers of one project use their own local environments for coding. There may be a common test platform and, of course, production. All these environments usually have different DB credentials and directory structures (first of all, path to YII framework directory). Another feature is debugging. It's convenient to turn it on for local environments, eventually - on the test s...

1 1
4 followers
Viewed: 17 432 times
Version: 1.1
Category: Tips
Tags: config

Insert a model record using CGridview

Created 9 years ago by Kostas Apazidis (KonApaz), updated 9 years ago by Kostas Apazidis (KonApaz).

CGridview displays existent rows of the table (using DataProvider)

2 0
1 follower
Viewed: 17 512 times
Version: 1.1
Category: How-tos