Wiki

Sorted by ratingX
Displaying 401-410 of 785 result(s).

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

Created 4 years ago by BoazHow-tos2 comments – viewed 13,887 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 5 years ago by dckurushinHow-tos2 comments – viewed 24,054 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 4 years ago by Rajith RTutorials27 comments – viewed 84,391 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.

How to include Javascript, CSS

Created 3 years ago by InterboyHow-tos4 comments – viewed 379,751 times – ( +11 / -3 ) – version 1.1
There are many methods that we can include javascript, css into your Yii App. Today I will demonstrate three simple and helpul methods.

Saving files to a blob field in the database

Created 6 years ago by zaccariaTips8 comments – viewed 55,975 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 5 years ago by macinvilleTutorials1 comment – viewed 25,642 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 7 years ago by milesTutorials3 comments – viewed 57,694 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 7 years ago by qiangTutorials6 comments – viewed 24,228 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.

How to add a named scope to ActiveRecords with a behavior

Created 7 years ago by MikeTutorials2 comments – viewed 21,462 times – ( +4 ) – version 1.1
Since Yii 1.0.5 you can use named scopes with ActiveRecords. They are a great help in simplifying your query calls.

Managing constants easily

Created 5 years ago by briiC.lvTips4 comments – viewed 15,428 times – ( +4 ) – version 1.1
For time to time i have models with constants (basicly status constants) which i use in diferent places and if these constant changes, i have to change mentions of constant in code elsewhere.