Showing 101-120 of 652 items.

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

Created 15 years ago by pligor pligor, updated 15 years ago by pligor pligor. 2 comments

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
Viewed: 19 835 times
Version: 1.1
Category: How-tos

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

Created 14 years ago by sirin k sirin k, updated 9 years ago by Maurizio Domba Cerin Maurizio Domba Cerin. 0 comments

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
Viewed: 19 986 times
Version: 1.1
Category: Tips

Syncing sessions between Yii and KCFinder

Created 13 years ago by Thanasis Fotis Thanasis Fotis, updated 12 years ago by Boaz Boaz. 8 comments

>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
Viewed: 19 986 times
Version: 1.1
Category: How-tos

Q: My yiic tool cannot run model and crud commands. Why?

Created 17 years ago by qiang qiang, updated 17 years ago by mishhh mishhh. 1 comment

Some PHP installations may use a different php.ini file for CLI PHP (command line PHP parser). As a result, when running the model or crud command in yiic shell, you may encounter errors like "YiiBase::include(PDO.php): failed to open stream..." or "...could not find driver", even though the requirement checker confirms you have PDO and the corresponding database driver.

0 0
1
Viewed: 20 058 times
Version: 1.1
Category: Tutorials

    Building Page Specific Menus using CMenu

    Created 13 years ago by mistryb mistryb, updated 11 years ago by mistryb mistryb. 1 comment

    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
    Viewed: 20 084 times
    Version: 1.1
    Category: How-tos

    Turn Web HTML Into Newsletter

    Created 13 years ago by yasen yasen, updated 13 years ago by yasen yasen. 1 comment

    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
    Viewed: 20 326 times
    Version: 1.1
    Category: How-tos

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

    Created 15 years ago by Darwin Wen Darwin Wen, updated 14 years ago by Maurizio Domba Cerin Maurizio Domba Cerin. 0 comments

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

    0 1
    2
    Viewed: 20 381 times
    Version: 1.1
    Category: Tips

    Active Record snapshotting (Model data base history)

    Created 11 years ago by Bizley Bizley, updated 11 years ago by Bizley Bizley. 3 comments

    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
    Viewed: 20 528 times
    Version: 1.1
    Category: Tutorials

    Directory independent extensions

    Created 15 years ago by GOsha GOsha, updated 15 years ago by GOsha GOsha. 3 comments

    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
    Viewed: 20 696 times
    Version: 1.1
    Category: Tips