Wiki articles

Showing 441-460 of 651 items.

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

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

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

0 4
2 followers
Viewed: 28 416 times
Version: 1.1
Category: Tutorials

Our WebApp that will run without downtime during update/upgrade

Created 13 years ago by Pinoy Coderz, updated 12 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: 14 838 times
Version: 1.1
Category: Tutorials
Tags: tutorial

How to ensure unicity to url

Created 13 years ago by zaccaria, updated 12 years ago by marcovtwout.

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

13 0
16 followers
Viewed: 24 312 times
Version: 1.1
Category: Tips
Tags: SEO, unique, URL

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

Created 13 years ago by RusAlex, updated 13 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.

16 0
33 followers
Viewed: 73 447 times
Version: 1.1
Category: How-tos

Custom Autocomplete Display and Value Submission

Created 13 years ago by Antonio Ramirez, updated 12 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: 61 611 times
Version: 1.1
Category: How-tos

Update/delete model with CJuiDialog (works in CGridView)

Created 13 years ago by ifdattic, updated 13 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: 77 715 times
Version: 1.1
Category: Tutorials

adding class and links to Ctreeview node

Created 13 years ago by bingjie2680, updated 13 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: 19 915 times
Version: 1.1
Category: Tips

Url: hide index.php

Created 13 years ago by Hermans, updated 13 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: 322 538 times
Version: 1.1
Category: How-tos

Integrating Wordpress and Yii: yet another approach

Created 13 years ago by goncin, updated 13 years ago by goncin.
6 2
11 followers
Viewed: 76 474 times
Version: 1.1
Category: How-tos

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

Created 13 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 130 times
Version: 1.1
Category: How-tos

Creating a CSS Driven Drop Down Menu using CMenu

Created 13 years ago by blindMoe, updated 12 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: 99 259 times
Version: 1.1
Category: How-tos

Multilanguage web site controlling by get request and database allowed languages

Created 13 years ago by Igor Ivanovic, updated 13 years ago by rei.

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

How to use an application behavior to maintain runtime configuration

Created 13 years ago by zaccaria, updated 12 years ago by Pablovp.

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 followers
Viewed: 43 086 times
Version: 1.1
Category: How-tos

BaseModuleAR class with MultiActiveRecord

Created 13 years ago by dinhtrung, updated 13 years ago by Gustavo.

MultiActiveRecord is an extension that add support for multiple database connection for your application.

2 0
0 follower
Viewed: 15 326 times
Version: 1.1
Category: Tips

Using MBMenu and Rights to automatically create menu item for your modules

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

Using Rights generator component, we can easily create a dynamic menu, in which we scan every modules' controllers, to access the index page of them.

1 1
2 followers
Viewed: 18 355 times
Version: 1.1
Category: Tips

How to show ajax delete status in CGridView like flash messages

Created 13 years ago by hasanavi, updated 11 years ago by adlersd.

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 followers
Viewed: 56 867 times
Version: 1.1
Category: How-tos

Using CJuiDialog to edit rows in a CGridView

Created 13 years ago by Russell England, updated 13 years ago by Russell England.

I used Zaccarias excellent article as the base http://www.yiiframework.com/wiki/145/cjuidialog-for-create-new-model/

Solution

First follow the wiki above to create all the required code. Then make the following modifications in your...

3 1
11 followers
Viewed: 42 096 times
Version: 1.1
Category: Tips

How to create a wrapper for a js library

Created 13 years ago by zaccaria, updated 13 years ago by Maurizio Domba Cerin.

This wiki will explain how to include a javascript library in a widget.

16 1
20 followers
Viewed: 23 379 times
Version: 1.1
Category: How-tos

Integrating Yii with Wordpress

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

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 followers
Viewed: 74 690 times
Version: 1.1
Category: Tips

How to use EzComponents in Yii

Created 13 years ago by Ehsanjs, updated 13 years ago by samdark.

change your index.php

4 0
6 followers
Viewed: 13 752 times
Version: 1.1
Category: How-tos