Wiki

Articles in category "how-tos", sorted by commentsX
Displaying 161-170 of 314 result(s).

How to hide `index` action from URL

Created 2 years ago by rootbearHow-tos2 comments – viewed 11,062 times – ( +3 / -2 ) – version 1.1
Here is my experiment inspired by my own question and others from the forum.
tags: index

How to Create Pdf Report / Excel Report By Using Parameters (From - Until)

Created 9 months ago by ruderbytesHow-tos2 comments – viewed 13,877 times – ( +2 / -2 ) – version 1.1
Asslamualaikum Wr.Wb Hello I'm Fahmi Azain i will share wiki tutorial about Creating Pdf Report / Excel Report by using Parms / Parameters.

Using recaptchlib in your projects

Created 3 years ago by Antonio RamirezHow-tos2 comments – viewed 7,752 times – ( +5 ) – version 1.1
It is good when someone writes extensions for us but trust, sometimes we forget about other approaches that, if we know the library, we shouldn't forget.

How to create a criteria condition for a multiple value text search i.e a "LIKE IN"

Created 9 months ago by tophHow-tos2 comments – viewed 12,493 times – ( -1 ) – version 1.1
This is a shortcut for adding a text search for multiple values i.e.

Simple Multiple Environment Setup with Default Yii Installation

Created 8 months ago by turiHow-tos2 comments – viewed 3,878 times – ( +3 ) – version 1.1
After installing Yii basic application on our systems, most of the time we want to have multiple environment such as local, dev and live setup. Most of the times when we want to make changes to configuration file, we have to over-write configurations file for each environment.

Configuring Yii to run on both Windows and OSX

Created 8 months ago by trondHow-tos2 comments – viewed 2,564 times – ( +2 ) – version 1.1
If you develop your Yii project on both Windows and Mac, there can be a problem setting up the configuration unless the configurations for both system are identical. On my machines I have the following configurations:
tags: config

Override/Eliminate Bootstrap CSS/JS for Yii 2.0 widgets

Created 7 months ago by Kartik VHow-tos2 comments – viewed 5,694 times – ( +27 / -4 ) – version 2.0
In Yii 2.0, the yii widgets that use Twitter Bootstrap CSS & JS directly, are part of the yii2-bootstrap extension, starting with yii/bootstrap namespace. For customizing bootstrap extension specific widget assets, you could configure your own assets (CSS/JS) using the new Yii Asset Manager in your Yii Config file. Something like:

Simple example for language translation

Created 7 months ago by RKAHow-tos2 comments – viewed 7,627 times – ( +1 ) – version 1.1
Language translation is a common requirement in multi lingual sites. In Yii, we can translate using message and view translation.
tags: yii, i18n

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

Created 2 years ago by BoazHow-tos2 comments – viewed 8,494 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 2 years ago by GiulianoHow-tos2 comments – viewed 11,026 times – ( +8 ) – 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.