Wiki

Sorted by commentsX
Displaying 441-450 of 777 result(s).

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

Created 3 years ago by BoazHow-tos2 comments – viewed 13,062 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.

How to hide index.php on Microsoft Windows Server with IIS7

Created 3 years ago by GiulianoHow-tos2 comments – viewed 19,006 times – ( +10 ) – version 1.1
I've seen lot of people struggling in finding a way to hide the script name when installing their Yii Application. In an Apache environment everything is well documented in this wiki article, but for those who are running their app on a Windows Server machine there are no hints.

Creating Yii applications with composer

Created 3 years ago by schmunkTutorials2 comments – viewed 71,786 times – ( +30 ) – version 1.1
Creating Yii applications with composer

The complete beginner's study guide for the Yii Framework

Created 3 years ago by Rodrigo CoelhoTips2 comments – viewed 77,147 times – ( +21 ) – version 1.1
Start studying the MVC pattern. You will understand the roles of the model, the view and the controller and know where goes each part of the code.

How to send emails using SMTP

Created 2 years ago by robregonmHow-tos2 comments – viewed 41,251 times – ( +8 ) – version 2.0
Follow @robregonm
tags: yii2, email, mail, mailer, smtp

Yii2 default values for Index data Provider

Created 2 years ago by CTalaTips2 comments – viewed 12,478 times – ( +3 ) – version 2.0
Guys,

Overcoming removal of client helpers (e.g. ajaxLink) and ClientScript in Yii 2.0

Created 2 years ago by Kartik VFAQs2 comments – viewed 20,278 times – ( +40 / -4 ) – version 2.0
With Yii Framework 2.0, one of the many changes, that Yii 1.x developers will face is removal of all client helpers and revamp of the CClientScript functionality. For example no more CHtml::ajaxLink or Html::ajaxLink. How do you cater to such requirements in Yii 2.0?

Create custom button button with AJAX function in CGridView

Created 3 years ago by nkdHow-tos2 comments – viewed 50,532 times – ( +19 ) – version 1.1
CButtonColumn in CGridView can be customised to include user built buttons. To learn a great deal about including custom buttons, read this excellent wiki. This tutorial will show how to call an action from one custom button using AJAX instead of regular GET calls.

Localized version of CFormatter

Created 3 years ago by marcovtwoutHow-tos2 comments – viewed 4,974 times – ( +3 ) – version 1.1
Since Yii 1.1.14, a CLocalizedFormatter is available.

Yii 2 list of path aliases available with default basic and advanced app.

Created 2 years ago by Kartik VTips2 comments – viewed 63,511 times – ( +52 / -5 ) – version 2.0
If you are coming over from Yii 1.x to Yii 2, and already read this guide, you may note that namespaces are very important in Yii 2 to identify classes. But do you know the list of seeded path aliases that come shipped with a basic or advanced app? Here is my attempt to list them.