Wiki

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

Show captcha after <N> unsuccessfull attempts

Created 4 years ago by zitterHow-tos7 comments – viewed 21,229 times – ( +15 / -5 ) – version 1.1
In this mini howto I would like to show how to add a required captcha field in the login form, after a defined number of unsuccessfull attempts. To do this, I will use the blog demo that you have in default Yii download package (path/to/yii/demos/blog).

get summary of related model via STAT relation

Created 3 years ago by rootbearHow-tos2 comments – viewed 16,189 times – ( +7 / -1 ) – version 1.1
typical scenario: invoice, invoice items.

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

Created 4 years ago by BoazHow-tos2 comments – viewed 14,318 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,371 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 85,270 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 6 years ago by zaccariaTips8 comments – viewed 56,590 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 26,004 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 8 years ago by milesTutorials3 comments – viewed 58,313 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 8 years ago by qiangTutorials6 comments – viewed 24,549 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,749 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.