Wiki

Sorted by viewsX
Displaying 481-490 of 746 result(s).

Yii HMVC

Created about a year ago by ezekielnoobHow-tos6 comments – viewed 8,937 times – ( +5 / -1 )
Right now we can use widgets + action provider like in this tutorial: How to use a Widget as an Action Provider

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

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

Building Page Specific Menus using CMenu

Created about a year ago by mistrybHow-tos1 comment – viewed 8,932 times – version 1.1
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.
tags: CMenu

Rendering a view file in a console application

Created 3 years ago by TompiHow-tos1 comment – viewed 8,932 times – ( +4 / -2 ) – version 1.1
When someone want to send formatted HTML mails from a console application she/he will probably come across the problem of rendering view files.

Our WebApp that will run without downtime during update/upgrade

Created 3 years ago by Pinoy CoderzTutorials3 comments – viewed 8,800 times – ( +8 / -2 ) – version 1.1
How many of us wonder how we can upgrade the website without hurting the operation of our WebApp?
tags: tutorial

New Relic Error Alert with Yii

Created about a year ago by simon604Tips2 comments – viewed 8,765 times – ( +6 ) – version 1.1
Introduction

Using sub query for doubletts

Created 2 years ago by mbTips3 comments – viewed 8,759 times – ( +1 ) – version 1.1
find doubletts by db fields. in this example i will check doublets for 3 tabelfields (col1,col2,col3). so i will get a subquery with the condition, select and grouping of the tablefields. the having with COUNT() > 1 means: find all records more then one result.

Using the jamselect widget with min and max values

Created 4 years ago by got 2 doodleHow-tos0 comments – viewed 8,753 times – ( +2 ) – version 1.1
I needed to have users select from a list of keywords, in this example they must select at least two keywords but they cannot select more than six.

An important tip when you are using CArrayDataProvider.

Created 2 years ago by sirin kTips0 comments – viewed 8,736 times – ( +8 / -1 ) – version 1.1
Yii ‘s CArrayDataProvider is very helpful to display model relation data's directly on it.But it is truely a confusing one because by default it will assume a table field named “id” as primary key for its pagination purpose and what if you dont have field named “id” as primary key on your table? so its truely confusing and if you tried to display without an “id” field on ur table you will get an error like “yourmodel.id is not defined”.

Implementing a Flat User Access System

Created 2 years ago by TrejderHow-tos1 comment – viewed 8,635 times – ( +9 ) – version 1.1
This article shows a quick and easy way to implement flat user access control system. Flat means, that user access is controlled by level only, which is solution exactly opposite to complex RBAC access systems.