Wiki

Sorted by commentsX
Displaying 491-500 of 707 result(s).

How to customize error handling in console-mode applications

Created 3 years ago by Steve FriedlHow-tos1 comment – viewed 8,734 times – ( +3 ) – version 1.1
One can control the detail of a web application in the webroot/index.php file by manipulating the values of YII_DEBUG and YII_TRACE_LEVEL, but these don't appear to be used by console applications. This is because although the base CApplication class defines a displayError() method that does consider these variable, CConsoleApplication overrides it with a function that doesn't honor them.

YouTube API v2.0 – Browser-based Uploading

Created 2 years ago by VaibhavHow-tos1 comment – viewed 10,874 times – ( +6 ) – 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.

MongoDb's embedded documents mapping for ActiveRecord in Yii2

Created 8 months ago by edoardo849How-tos1 comment – viewed 3,589 times – ( +2 ) – 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.

How to limit number of guest page views

Created 8 months ago by PeRoChAkHow-tos1 comment – viewed 2,951 times – ( +3 ) – version 1.1
In some cases, we have to limit the number of page views for the guests users. Yii provide an efficient method to get this.

Facebook DeAuthorize callback URL and its response data.

Created 2 years ago by sirin kTutorials1 comment – viewed 8,689 times – ( +3 ) – version 1.1
Facebook Deauthorize callback is used to getting notification to the app owner when a user uninstall our app from their fan page or profile.
tags: facebook

embed a view file of the class which implement the CAction.

Created 3 years ago by DavidhhuanTutorials1 comment – viewed 6,905 times – ( +1 / -1 ) – version 1.1
In Yii, we can define an action class and ask the controller to instantiate it. And we always create ourselves actions class in rootPath/protected/extensions, and the view file we called in the actions class always are located in rootPath/protected/views/ControllerNAME or rootPath/themes/ThemeNAME/ControllerNAME, then when we use the same actions class in different controllers, we have to copy it from one controller to the other controller, so we also need the "same" view file work for us, here is an example.
tags: actions, render, views

Yii code completion and calltips in Komodo Edit

Created 3 years ago by viterTips1 comment – viewed 9,668 times – ( +6 ) – version 1.1
My favourite editor is Komodo Edit (free and crossplatform) and I use it for my everyday coding work. Just recently I found out how to make it help me to work with Yii. :) So follow these steps:
tags: Komodo Edit

Automatically get the SVN Revision Number of your Project

Created 6 months ago by jcagentzeroTutorials1 comment – viewed 1,992 times – ( +3 ) – version all
When you are handling so many projects and those projects are saved in different repository locations, you may find it very difficult to keep track all the versions and revisions manually and it will be much harder if you are developing in multiple repository branches.

More security in your applications with Yii and PHPIDS

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

Login Form With email or Whatever

Created 6 months ago by nabil abdoualiHow-tos1 comment – viewed 4,212 times – ( -2 ) – version 1.1
Here is my solution to login with email or anything else This update works with database mysql You must generate the user model with GII