Wiki

Articles in category "how-tos", sorted by viewsX
Displaying 221-230 of 355 result(s).

How to create a wrapper for a js library

Created 6 years ago by zaccariaHow-tos2 comments – viewed 15,174 times – ( +16 / -2 ) – version 1.1
This wiki will explain how to include a javascript library in a widget.
tags: wrapper, js, uploadify

Use minified version of JqueryAsset, BootstrapAsset (and all default assets)

Created 2 years ago by robregonmHow-tos2 comments – viewed 15,167 times – ( +11 / -2 ) – version 2.0
By default, Yii 2.0 chooses to use the non-minified version of Jquery and Bootstrap files (CSS and JS). However, there's a simple way to indicate Yii to use the minified version.

More security in your applications with Yii and PHPIDS

Created 6 years ago by Rafael GarciaHow-tos1 comment – viewed 14,633 times – ( +8 / -1 ) – version 1.1
PHPIDS is a well known project that can be found in php-ids.org.
tags: phpids, security

How to get & store Last Login DateTime in database?

Created 3 years ago by Rohit SutharHow-tos2 comments – viewed 14,434 times – ( +7 / -1 ) – version 1.1
In this wiki I will show how could be store last login date & time in database. First we need a field LastLoginTime (Type must be datetime). this field store a user login detalis (like - Date & Time).

MongoDb's embedded documents mapping for ActiveRecord in Yii2

Created 3 years ago by edoardo849How-tos2 comments – viewed 14,424 times – ( +6 / -1 ) – version 2.0
You are working with MongoDb and you have embedded documents in your collection that you want to easily map in your Model for CRUD operations.

Load data from internal/external source to fill form fields

Created 2 years ago by skwordenHow-tos4 comments – viewed 14,383 times – ( +1 / -1 ) – version 2.0
This wiki is to show you how to use jQuery get and JSON to get data from a dropdown/any form field and fill form fields with the values instantaneously. First, I'll give example use cases of what I'm going to teach you so you can quickly see if this is for you.

Bootstrap Yii cGridView add popup button

Created 3 years ago by Arockia Johnson SRHow-tos6 comments – viewed 14,300 times – ( +4 / -1 ) – version 1.1
Hi,

How to: use github for download yii, create new app, and store our modules or extensions.

Created 5 years ago by sensorarioHow-tos1 comment – viewed 14,272 times – ( +8 / -1 ) – version 1.1
Yesterday I've written a module for myself. Just an experiment. When I was feeling satisfied, I've created a repository on github, and pushed my code. My module and yii are on github. So I'll show you a "new" way to start our yii projects.
tags: github, git

CGridView Date Range Without Cookies or Session (External Filtering)

Created 4 years ago by ezekielnoobHow-tos6 comments – viewed 14,262 times – ( +5 / -1 ) – version 1.1
Here's a tutorial on how to create a CGridView with external date filters the trick is to create hidden columns within the CGridView Filters something like in the example below:

Moving the vendor directory for multiple projects

Created 2 years ago by mariosimaremareHow-tos2 comments – viewed 14,179 times – ( +5 / -2 ) – version 2.0
This How-To is useful if you are planning to move the Yii vendor directory outside the default location.