Showing 441-460 of 652 items.

关于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 157 times
Version: 1.1
Category: Tips

三步使用cronjobs自动化去执行Yii 控制台任务

Created 15 years ago by Darwin Wen Darwin Wen, updated 15 years ago by Darwin Wen Darwin Wen. 0 comments

这篇文章将介绍使用Linux cronjobs去自动化执行Yii Console Application(控制台)任务,像每天晚上执行缓存清理,临时文件清理,发送邮件,网站备份等等,重复的工作都交给服务器后台去完成,Yii本身已经提供了强大的支持,我们所做的工作就很少,当使用yiic webapp 自动生成工程结构时,强大的Yii已经全部帮我们生成好,仅仅只需三步。

0 4
2
Viewed: 31 018 times
Version: 1.1
Category: Tutorials

Update/delete model with CJuiDialog (works in CGridView)

Created 15 years ago by ifdattic ifdattic, updated 15 years ago by ifdattic ifdattic. 7 comments

This tutorial will show you how to create Ajax dialog which allows to create new model, update or delete existing model. It works with simple links, CGridView button column links, adds a minimal amount of code and degrades gracefully with JavaScript turned off.

15 0
25
Viewed: 81 663 times
Version: 1.1
Category: Tutorials

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 612 times
Version: 1.1
Category: How-tos

Creating a CSS Driven Drop Down Menu using CMenu

Created 15 years ago by blindMoe blindMoe, updated 14 years ago by blindMoe blindMoe. 10 comments

[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.

19 1
25
Viewed: 103 387 times
Version: 1.1
Category: How-tos

Multilanguage web site controlling by get request and database allowed languages

Created 15 years ago by Igor Ivanovic Igor Ivanovic, updated 14 years ago by rei rei. 2 comments

First, you have to have create database table for default language and allowed languages.

CREATE TABLE IF NOT EXISTS `tbl_languages` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `lang` varchar(2) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `flagpath` varchar(40) CHARACTER SET utf8 COLLATE utf8_unicode_...
5 0
12
Viewed: 34 670 times
Version: 1.1
Category: Tutorials

How to use an application behavior to maintain runtime configuration

Created 15 years ago by zaccaria zaccaria, updated 14 years ago by Pablovp Pablovp. 3 comments

In this tutorial will be explained a method to manage some configuration runtime. This excellent tutorial follows a similar approach, but requires to write a masterclass which all controllers are supposed to extend, following this wiki you can achieve the same by only editing the configuration.

26 0
25
Viewed: 48 106 times
Version: 1.1
Category: How-tos

How to show ajax delete status in CGridView like flash messages

Created 15 years ago by hasanavi hasanavi, updated 13 years ago by adlersd adlersd. 12 comments

I've seen many tickets regarding how to show friendly delete confirmation using CGridView's CButtonColumn in ajax request. If you are using relational database, after producing CRUD functionality when you try to delete a record in ajax mode which has child record it can't be deleted and you can see the ajax loader forever. By this way you can't show the users if a record has been successfully dele...

17 0
30
Viewed: 61 579 times
Version: 1.1
Category: How-tos

Integrating Yii with Wordpress

Created 15 years ago by isekream isekream, updated 15 years ago by isekream isekream. 6 comments

Well I finally had some time and tinkered a bit with the notion of integrating wordpress and Yii. Now for me I wanted to use Yii as a framework to develop wordpress plugins. Using some tips from imasia Article I was able to do a simple integration of yii as a wordpress plugin. The integratio...

9 1
13
Viewed: 79 603 times
Version: 1.1
Category: Tips