Wiki articles

Showing 101-120 of 651 items.

Insert data from database to another database table

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

According to below wiki we could migrate database schema to another database

1 0
2 followers
Viewed: 16 982 times
Version: 1.1
Category: Tutorials

Selecting best language based on Browser language and available languages.

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

Your application is international and you have to select the best language for the user. Your user may have selected 'fr_CA' and you have 'fr_FR' or 'fr' available. What do you do? Here is a tip.

2 0
1 follower
Viewed: 16 996 times
Version: 1.1
Category: Tips

Get notified about the status of a Facebook user in your web app using periodic Ajax calls.

Created 12 years ago by sirin k, updated 8 years ago by Maurizio Domba Cerin.

hello,

 This article is helpful only if you have the following situation:
 A web app which uses facebook login to login its users and if a user is logged out from his/her facebook account through another browser tab, then your app dont know that he is logged out  out or not from his facebook account and he/she will remain as logged in your web application.Its ok if you have no problem wi...
4 0
6 followers
Viewed: 17 134 times
Version: 1.1
Category: Tips
Tags: facebook, user

Application-driven database with CDbMigration and an extended CActiveRecord

Created 13 years ago by Tudor Ilisoi, updated 13 years ago by Tudor Ilisoi.

This is an incipient implementation of application-driven database with Yii.

8 0
10 followers
Viewed: 17 255 times
Version: 1.1
Category: Others

Syncing sessions between Yii and KCFinder

Created 12 years ago by Thanasis Fotis, updated 11 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: 17 492 times
Version: 1.1
Category: How-tos

Disallowing login for INACTIVE users in Yii

Created 11 years ago by Rohit Suthar, updated 11 years ago by Rohit Suthar.

In this wiki I will show how to Disallowing login for Inactive users. Only Active users can logging and access their account. You can set privacy for your yii web apps users.

1 0
3 followers
Viewed: 17 512 times
Version: 1.1
Category: Tutorials

Themed translations (i18n)

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

When using themes you want to changes some of the translations specifically to the theme while keeping the standard translations for most of the text. Duplicating the main translation file is a headache for maintainance. This how to provides a solution.

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

Ordering Models by Weight with CJuiSortable

Created 15 years ago by Matt Kelliher, updated 12 years ago by Phil Loaiza.

In this tutorial we will be setting up a content type to be ordered by weight using the JUI Sortable plugin.

9 0
10 followers
Viewed: 17 540 times
Version: 1.1
Category: Tutorials
Tags:

Turn Web HTML Into Newsletter

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

These newsletters have always been hard to create as regular web HTML is not properly read by web email interfaces and email clients. I thought that the simplest solution would be to use a web page that would serve as a web version of the newsletter and turn it somehow into newsletter HTML.

6 0
9 followers
Viewed: 17 649 times
Version: 1.1
Category: How-tos

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

Created 14 years ago by pligor, updated 13 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: 17 661 times
Version: 1.1
Category: How-tos

Active Record snapshotting (Model data base history)

Created 10 years ago by Bizley, updated 10 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: 17 724 times
Version: 1.1
Category: Tutorials

Handling recursive deletion in Yii

Created 12 years ago by JamesBarnsley, updated 9 years ago by JamesBarnsley.

I www.jamesbarnsley.com was tasked to find a way to do recursive deletion in Yii. As I asked other developers and looked around the internet the usual answers all came up, use a plugin or use cascade delete at the DB level, but I did not want to do either of these.

3 0
5 followers
Viewed: 17 802 times
Version: 1.1
Category: How-tos

Creating HTML code using Jamboree Panels

Created 12 years ago by bluyell, updated 12 years ago by bluyell.
2 0
2 followers
Viewed: 17 897 times
Version: 1.1
Category: Tutorials

CGridView keep focus on the control after filtering

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

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

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

Update Gridview with Dropdown Selection

Created 11 years ago by lgastmans, updated 11 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: 17 941 times
Version: 1.1
Category: Tips

Building Page Specific Menus using CMenu

Created 12 years ago by mistryb, updated 10 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 951 times
Version: 1.1
Category: How-tos
Tags: CMenu

Directory independent extensions

Created 14 years ago by GOsha, updated 14 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: 17 954 times
Version: 1.1
Category: Tips

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

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

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

0 1
2 followers
Viewed: 18 022 times
Version: 1.1
Category: Tips

How to apply a layout to an AJAX update

Created 11 years ago by trond, updated 11 years ago by CeBe.
  1. The Main template holds the header, main navigation and footer
  2. One or more layout files holds the column setup, sub navigation etc.
  3. The view files hold the actual page content.
1 0
4 followers
Viewed: 18 028 times
Version: 1.1
Category: How-tos
Tags: AJAX, views

belajar AR : part 1 (learn AR : part 1)

Created 14 years ago by rianday, updated 14 years ago by rianday.

hai teman yii... apa kabar.. kembali lagi bersama catatan saya..

0 0
1 follower
Viewed: 18 200 times
Version: 1.1
Category: Tutorials
Tags: indonesia