Wiki articles

Showing 201-220 of 804 items.

Creating a CSS Driven Drop Down Menu using CMenu

Created 8 years ago by blindMoe, updated 8 years ago by blindMoe.

[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 followers
Viewed: 93 951 times
Version: 1.1
Category: How-tos

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

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

Integrating Wordpress and Yii: yet another approach

Created 8 years ago by goncin, updated 8 years ago by goncin.
6 2
11 followers
Viewed: 31 532 times
Version: 1.1
Category: How-tos

Url: hide index.php

Created 8 years ago by Hermans, updated 8 years ago by Hermans.

Maybe it looks simple, but some time ago I need some time to find a solution of this case. I finally got it, and I want to share that I also experienced such cases. So that it can make reference.

19 0
31 followers
Viewed: 238 281 times
Version: 1.1
Category: How-tos

adding class and links to Ctreeview node

Created 8 years ago by bingjie2680, updated 8 years ago by bingjie2680.

This article will show you how to add links and class to each node in ctreeview. so you can attach events in js by obtaining handler on anchor or class.

4 0
6 followers
Viewed: 17 479 times
Version: 1.1
Category: Tips

Update/delete model with CJuiDialog (works in CGridView)

Created 8 years ago by ifdattic, updated 8 years ago by ifdattic.

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 followers
Viewed: 72 878 times
Version: 1.1
Category: Tutorials

Custom Autocomplete Display and Value Submission

Created 8 years ago by Antonio Ramirez, updated 7 years ago by SebK.

I was looking around wiki and found that was no approach as the one I did so I guessed this is worth to write.

12 0
18 followers
Viewed: 54 781 times
Version: 1.1
Category: How-tos

How to use single form to collect data for two or more models (CActiveForm and Ajax Validation edition)

Created 8 years ago by RusAlex, updated 8 years ago by Darwin Wen.

With Yii you can use one CActiveForm for collecting data for two or more models with ajax validation and client validation.

15 0
33 followers
Viewed: 66 095 times
Version: 1.1
Category: How-tos

How to ensure unicity to url

Created 8 years ago by zaccaria, updated 8 years ago by marcovtwout.

Many time for SEO porpouses is important that each page will have a unique address.

13 0
17 followers
Viewed: 18 456 times
Version: 1.1
Category: Tips
Tags: SEO, unique, URL

Our WebApp that will run without downtime during update/upgrade

Created 8 years ago by Pinoy Coderz, updated 7 years ago by Maurizio Domba Cerin.

How many of us wonder how we can upgrade the website without hurting the operation of our WebApp?

8 2
7 followers
Viewed: 11 983 times
Version: 1.1
Category: Tutorials
Tags: tutorial

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

Created 8 years ago by Darwin Wen, updated 8 years ago by Darwin Wen.

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

0 4
2 followers
Viewed: 24 269 times
Version: 1.1
Category: Tutorials

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

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

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

0 1
2 followers
Viewed: 14 777 times
Version: 1.1
Category: Tips

Yii CDBHttpSession数据库存储session性能优化实战

Created 8 years ago by Darwin Wen, updated 8 years ago by Darwin Wen.

上一篇 关于 Yii CHttpSession性能优化篇之源码流程分析 有详细分析CHttpSession执行流程,在了解CHttpSession的详细执行流程之后,我们就可以非常轻松的扩展Yii Session,来优化和符合自己的业务流程。

1 1
1 follower
Viewed: 12 247 times
Version: 1.1
Category: Tips

Using a CDbDataReader (sql query result) in a zii widget (such as CGridView or CListView)

Created 8 years ago by Revelis Luc Bonnin, updated 8 years ago by Revelis Luc Bonnin.

If in your application you have to proceed to a complex SQL query that is not associated to a model, you will use CDbDataReader like it is described in the Yii documentation. An example could be

8 1
8 followers
Viewed: 30 896 times
Version: 1.1
Category: How-tos

an easy way to required multi columns(At least one cannot be blank)

Created 8 years ago by 1065227709, updated 8 years ago by 1065227709.

in model add the following code:

3 0
3 followers
Viewed: 9 700 times
Version: 1.1
Category: Tips
Tags: rules

Run Yiic directly from your app without a shell

Created 8 years ago by jacmoe, updated 8 years ago by jacmoe.

Whatever reason, it turns out to be easy enough to add that feature to your application. :)

13 0
20 followers
Viewed: 43 401 times
Version: 1.1
Category: How-tos

Guidelines for good schema design

Created 8 years ago by Steve Friedl, updated a year ago by softark.

Virtually all Yii applications are built on top of a database, and though Yii is very flexible in how it addresses your DB, some design choices make things more convenient than others.

123 0
71 followers
Viewed: 103 804 times
Version: 1.1
Category: Tips

Display a nice exception message on ajax requests

Created 8 years ago by Maurizio Domba Cerin, updated 8 years ago by Maurizio Domba Cerin.

in Yii versions previous to 1.1.9 exceptions was handled differently during ajax request and displayed by CApplication::displayException(). This way the exception message displayed on ajax requests could not be customized.
The message for the CGridView delete request with YII_DEBUG set to true l...

12 0
19 followers
Viewed: 44 335 times
Version: 1.1
Category: Tips

Filter / Search with CListView

Created 8 years ago by JohnPollard, updated 7 years ago by JohnPollard.

This is what I did. Its the EASIEST solution that I know of. I just reused the advanced search done in CGridView.

22 0
26 followers
Viewed: 50 145 times
Version: 1.1
Category: How-tos

Customizing Yii's formatting rules (extending CFormatter)

Created 8 years ago by Haensel, updated 8 years ago by Haensel.

CFormatter is one of Yii's core components and used to format values displayed in widgets like CGridView or CDetailView. All classic formats like numbers, text, urls or datetime are supported but you may have to use a formatting rule that isn't built in. Let's say we want to display arrays of strings (like tags associated with a product model)...

12 0
6 followers
Viewed: 20 150 times
Version: 1.1
Category: Tips