Wiki

Sorted by ratingX
Displaying 391-400 of 750 result(s).

How to use Expression in default AccessControl to allow only the owner to do some action

Created about a year ago by whatifHow-tos2 comments – viewed 22,849 times – ( +7 / -1 ) – version 1.1
Hi Everyone

get summary of related model via STAT relation

Created about a year ago by rootbearHow-tos2 comments – viewed 10,771 times – ( +7 / -1 ) – version 1.1
typical scenario: invoice, invoice items.

i18n All-in-one format and timezone conversions for date, time, timestamp and datetime.

Created about a year ago by Gerhard LiebenbergHow-tos3 comments – viewed 14,622 times – ( +7 / -1 ) – version 1.1
Countries sometimes change their laws pertaining to timezones and daylight saving times. This means that GMT+2 can be a different time this August compared to last August! However, by using php's DateTime class (instead of timestamps), we can do both "format" and "timezone" conversions on a single DateTime object (only 2 lines of code) for date, time, timestamp and datetime types - while php takes care of nightmares such as current and historical timezones and daylight saving times.

How to "masquerade" a non-required form element as 'required' one (in the view only)

Created 2 years ago by BoazHow-tos2 comments – viewed 10,110 times – ( +7 / -1 ) – version 1.1
In a nutshell, the task at hand is to mark (or render) a model attribute in the typical "_form.php" view file with the 'required' red asterisk while this attribute is not marked as required in the model's rule() method. If you're interested only in the solution, jump ahead to the 'solution' section below.

Yii registry, how to use it, does it exist at all?

Created 3 years ago by dckurushinHow-tos2 comments – viewed 20,171 times – ( +7 / -1 ) – version 1.1
From time to time people ask about registry...

Installing Yii Users and Rights to Newly Created Yii app

Created 2 years ago by Rajith RTutorials25 comments – viewed 68,348 times – ( +23 / -10 ) – version 1.1
After creating an yii app . we need to implement permission, Authentication and Authorization .so the best way is to use the Yii users and Rights modules.

Saving files to a blob field in the database

Created 4 years ago by zaccariaTips8 comments – viewed 46,123 times – ( +9 / -2 ) – version 1.1
As a follow-up from the How to upload a file using a model wiki entry that explains how to save a file to the filesystem, this article will do the same using a blob field in the database.
tags: File upload

Windows Web Development With AMPPS, NetBeans and XDebug

Created 3 years ago by macinvilleTutorials1 comment – viewed 21,385 times – ( +4 ) – version 1.1
This article will discuss how to setup your web development environment with the following specifications:

How to hide index.php on nginx

Created 6 years ago by milesTutorials3 comments – viewed 46,199 times – ( +4 ) – version 1.1
For a complete sample Nginx+PHP-FPM config, view this how-to: Nginx & PHP-FPM
tags: URL

How to generate Web feed for an application

Created 6 years ago by qiangTutorials6 comments – viewed 20,672 times – ( +4 ) – version 1.1
Web feed is a data format used for providing users with frequently updated content. In this article, we describe how to use Zend_Feed, an excellent component from Zend Framework to generate Web feed for an Yii application. This article can also serve as a general guide on how to use other components in Zend Framework.