Showing 101-120 of 652 items.

Sub-domains with different databases in Yii!

Created 15 years ago by jwerd jwerd, updated 15 years ago by jwerd jwerd. 5 comments

I used another example posted here a while back where the person was modifying the index.php and adding in a switch case for different domains and loading separate config files. This was actually too much for me, because all my portals are the exact same (as far as routes, modules, extensions, etc) and if I ever wanted to add another route it wouldn't be feasible opening up all the config files t...

2 0
12
Viewed: 29 461 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: 80 093 times
Version: 1.1
Category: Tips

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

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: 82 036 times
Version: 1.1
Category: Tutorials

Moving project code outside of webroot (plus multiple project support)

Created 15 years ago by Steve Friedl Steve Friedl, updated 15 years ago by Steve Friedl Steve Friedl. 8 comments

Yii's by-default directory organization works well enough, but there are several steps one can take that improve the security and serviceability of the system, especially in the context of multiple Yii projects on the same machine (including multiple versions of the same project).

21 1
19
Viewed: 71 758 times
Version: 1.1
Category: How-tos

三步使用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 238 times
Version: 1.1
Category: Tutorials

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

Created 15 years ago by Revelis Luc Bonnin Revelis Luc Bonnin, updated 15 years ago by Revelis Luc Bonnin Revelis Luc Bonnin. 2 comments

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