Wiki

Sorted by viewsX
Displaying 471-480 of 786 result(s).

YouTube API v2.0 – Browser-based Uploading

Created 5 years ago by VaibhavHow-tos1 comment – viewed 15,967 times – ( +6 / -1 ) – version 1.1
Through the YouTube API you can upload files directly to the Youtube server. Youtube currently offers two services 1. Direct Link 2. Browser Based Uploading. In this wiki I will demonstrate how you can quickly set Browser Based Uploading for your Yii application. This is the protocol request that takes place.

Using Google Maps in Yii Applications via Jquery

Created 4 years ago by bluyellHow-tos2 comments – viewed 15,958 times – ( +3 / -2 ) – version 1.1

How to make customizable Db Table prefixes using ActiveRecord

Created 8 years ago by killermonkTutorials0 comments – viewed 15,914 times – ( -1 ) – version 1.1
Note: As of Yii 1.1.x this functionality is integrated into the framework. If you are using 1.1.x please disregard this article and use the built-in functionality.

How to install Yii 2 advanced on a shared hosting environment

Created about a year ago by oligalmaHow-tos1 comment – viewed 15,892 times – ( +3 / -1 ) – version 2.0
I've read many comments that it's not possible to install Yii 2 advanced on a shared hosting environment, as it has two webroots. This is partially true.

How to log context information to logger (session id, user, ...)

Created 8 years ago by olafureTutorials0 comments – viewed 15,886 times – ( +2 / -1 ) – version 1.1
Logging context information (session, user, ...) to the logfile can be of great help tracking down problems with specific users.
tags: Logging

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

Created 5 years ago by BoazHow-tos2 comments – viewed 15,806 times – ( +7 / -2 ) – 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.

Caching the config main.php

Created 6 years ago by dckurushinTutorials11 comments – viewed 15,784 times – ( +4 / -3 ) – version 1.1
The config long array included every time, and it's not cached at all!

Book Has Author - Many to Many relations using Kartik\Select2

Created 3 years ago by thiagoc7How-tos2 comments – viewed 15,780 times – ( +4 / -1 ) – version 2.0
I could make this work following same useful tips from this post.

Using events with CAction classes

Created 6 years ago by Antonio RamirezTips0 comments – viewed 15,658 times – ( +10 / -1 ) – version 1.1
There are some good guides out there explaining how to work with events and the ways to attach them to your components, but none (that I know) explain the following way to configure your events with CAction classes on your controllers the following way.

Create image thumbnails with php_img_preview

Created 5 years ago by Anas AbuDayahTutorials6 comments – viewed 15,614 times – ( +3 / -1 ) – version 1.1
This is another way to view images in your application and I like this way because it's simple and I think it's better performance than other.
tags: images, views