Wiki articles

Showing 161-180 of 650 items.

How-To: Create Token Authenticated Web Services

Created 6 years ago by hemc, updated 6 years ago by CeBe.

This article is about implementing authentication to Yii based web services.

4 0
15 followers
Viewed: 32 850 times
Version: 1.1
Category: How-tos

Multi level dropdown menu in Bootstrap

Created 6 years ago by sefburhan, updated 6 years ago by CeBe.

To get multi level dropdown menu of using boostrap extension (http://www.yiiframework.com/extension/bootstrap/) widget TbNavbar just follow steps

4 0
38 followers
Viewed: 28 848 times
Version: 1.1
Category: Tutorials

How to render a view in Fancybox using ajax

Created 7 years ago by rix.rix., updated 7 years ago by 张 迪.

Sometimes you want to render a view in Fancybox.

4 0
14 followers
Viewed: 27 481 times
Version: 1.1
Category: How-tos

Adding Yii Search to Your Browser Search Box

Created 9 years ago by qiang, updated 2 years ago by CeBe.

The official Yii project site now supports OpenSearch. This means you can customize your browser's search box to enable direct search of the content in yiiframework.com. For example, by entering a Yii class name in the browser's search box, the corresponding class API page will be shown in the browser.

25 0
6 followers
Viewed: 52 111 times
Version: all
Category: Tips

How to create Module based Login

Created 6 years ago by Ibrar Turi, updated 6 years ago by CeBe.

Lets say we have 3 modules (customer, user, admin) in an application and we need, separate logins for each module.

1 0
7 followers
Viewed: 17 717 times
Version: 1.1
Category: How-tos

Cambiando el diseño de JuiWidgets

Created 9 years ago by Luis Lobo Borobia, updated 9 years ago by Ivan Wilhelm.

Un aspecto del diseño de interfaces de usuario tiene que ver con la coherencia del diseño y uso de colores entre los distintos componentes de interfaz de usuario utilizados.

0 0
4 followers
Viewed: 13 584 times
Version: 1.1
Category: Tutorials
Tags:

How to apply a layout to an AJAX update

Created 6 years ago by trond, updated 6 years ago by CeBe.
  1. The Main template holds the header, main navigation and footer
  2. One or more layout files holds the column setup, sub navigation etc.
  3. The view files hold the actual page content.
1 0
4 followers
Viewed: 12 436 times
Version: 1.1
Category: How-tos
Tags: AJAX, views

Upload image and content using AJAX and Store it in different table

Created 6 years ago by Selvakumar Kaliyappan, updated 6 years ago by CeBe.

var formData = new FormData($("#post-form")[0]);
$.ajax({
    url: '<?php echo Yii::app()->createUrl("forumPost/uploadPost"); ?>',
    type: 'POST',
    data: formData,
    datatype:'json',
    // as...
1 0
5 followers
Viewed: 64 354 times
Version: 1.1
Category: How-tos

How to customize error handling in console-mode applications

Created 9 years ago by Steve Friedl, updated 9 years ago by Steve Friedl.

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 th...

3 0
4 followers
Viewed: 17 216 times
Version: 1.1
Category: How-tos

YouTube API v2.0 – Browser-based Uploading

Created 7 years ago by Vaibhav, updated 7 years ago by Vaibhav.

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.

2 0
7 followers
Viewed: 19 610 times
Version: 1.1
Category: How-tos

How to limit number of guest page views

Created 6 years ago by PeRoChAk, updated 6 years ago by CeBe.

In some cases, we have to limit the number of page views for the guests users. Yii provide an efficient method to get this.

2 0
5 followers
Viewed: 6 992 times
Version: 1.1
Category: How-tos

Facebook DeAuthorize callback URL and its response data.

Created 7 years ago by sirin k, updated 3 years ago by Maurizio Domba Cerin.

Facebook Deauthorize callback is used to getting notification to the app owner when a user uninstall our app from their fan page or profile.

3 0
6 followers
Viewed: 18 411 times
Version: 1.1
Category: Tutorials
Tags: facebook

Setting up PHPUnit and Selenium with IntelliJ IDEA/PhpStorm

Created 7 years ago by rAWTAZ, updated 7 years ago by rAWTAZ.

This article intends to summarize the steps taken to set up PHPUnit and Selenium for a Yii project, with IntelliJ IDEA Ultimate (the IDE). It was done on Mac OS X 10.6.

7 0
10 followers
Viewed: 44 642 times
Version: 1.1
Category: How-tos

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

Created 9 years ago by Davidhhuan, updated 9 years ago by Davidhhuan.

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...

1 1
2 followers
Viewed: 9 973 times
Version: 1.1
Category: Tutorials

Yii code completion and calltips in Komodo Edit

Created 9 years ago by viter, updated 9 years ago by wei.

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:

5 0
3 followers
Viewed: 13 218 times
Version: 1.1
Category: Tips

Automatically get the SVN Revision Number of your Project

Created 6 years ago by jcagentzero, updated 6 years ago by jcagentzero.

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.

3 0
4 followers
Viewed: 9 163 times
Version: all
Category: Tutorials

More security in your applications with Yii and PHPIDS

Created 9 years ago by Rafael Garcia, updated 9 years ago by Gustavo.

PHPIDS is a well known project that can be found in php-ids.org.

6 0
14 followers
Viewed: 17 330 times
Version: 1.1
Category: How-tos

Login Form With email or Whatever

Created 6 years ago by nabil abdouali, updated 6 years ago by nabil abdouali.

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

1 2
2 followers
Viewed: 24 914 times
Version: 1.1
Category: How-tos

Update Gridview with Dropdown Selection

Created 6 years ago by lgastmans, updated 6 years ago by lgastmans.

I recently worked on updating the content of a gridview based on the selection of a dropdown menu. I thought I should share it in the forum...

0 0
4 followers
Viewed: 14 173 times
Version: 1.1
Category: Tips

Preventing CJuiTabs from hiding drop-down CMenu items

Created 9 years ago by Steve Friedl, updated 9 years ago by RusAlex.

Almost all Yii applications use CMenu at the top of each page to show options available to the user, and many include drop-down components to allow more fine-grained selection.

4 0
3 followers
Viewed: 13 243 times
Version: 1.1
Category: Tips