Wiki articles

Showing 161-180 of 650 items.

Interactive mode command-line command for Yii1

Created 2 years ago by Trejder, updated 2 years ago by Trejder.

For one of my projects I needed an interactive console command in Yii 1, i.e. the one that is gathering all information from user in an interactive mode (a serie of questions and answers displayed directly in the console), ignoring command-line arguments at all.

0 0
1 follower
Viewed: 13 509 times
Version: 1.1
Category: How-tos

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

Created 7 years ago by sensorario, updated 7 years ago by Maurizio Domba Cerin.

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.

8 0
4 followers
Viewed: 16 362 times
Version: 1.1
Category: How-tos
Tags: git, github

BootProgressColumn - Progress Bar Inside GridView Column compatible with 'bootstrap' extension

Created 7 years ago by Luiz, updated 6 years ago by robregonm.

A little hint of how to create a progress bar inside the column of the grid, using the 'bootstrap' extension.

5 0
8 followers
Viewed: 19 784 times
Version: 1.1
Category: Tips

How-To: Create Token Authenticated Web Services

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

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

4 0
15 followers
Viewed: 31 176 times
Version: 1.1
Category: How-tos

Multi level dropdown menu in Bootstrap

Created 5 years ago by sefburhan, updated 5 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: 27 167 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: 26 459 times
Version: 1.1
Category: How-tos

Adding Yii Search to Your Browser Search Box

Created 8 years ago by qiang, updated a year 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: 50 267 times
Version: all
Category: Tips

How to create Module based Login

Created 5 years ago by Ibrar Turi, updated 5 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: 16 621 times
Version: 1.1
Category: How-tos

Cambiando el diseño de JuiWidgets

Created 8 years ago by Luis Lobo Borobia, updated 8 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 076 times
Version: 1.1
Category: Tutorials
Tags:

How to apply a layout to an AJAX update

Created 5 years ago by trond, updated 5 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: 11 546 times
Version: 1.1
Category: How-tos
Tags: AJAX, views

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

Created 5 years ago by Selvakumar Kaliyappan, updated 5 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: 61 241 times
Version: 1.1
Category: How-tos

How to customize error handling in console-mode applications

Created 8 years ago by Steve Friedl, updated 8 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: 16 210 times
Version: 1.1
Category: How-tos

YouTube API v2.0 – Browser-based Uploading

Created 6 years ago by Vaibhav, updated 6 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: 18 637 times
Version: 1.1
Category: How-tos

How to limit number of guest page views

Created 5 years ago by PeRoChAk, updated 5 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 430 times
Version: 1.1
Category: How-tos

Facebook DeAuthorize callback URL and its response data.

Created 6 years ago by sirin k, updated 2 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: 16 929 times
Version: 1.1
Category: Tutorials
Tags: facebook

Setting up PHPUnit and Selenium with IntelliJ IDEA/PhpStorm

Created 6 years ago by rAWTAZ, updated 6 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: 43 050 times
Version: 1.1
Category: How-tos

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

Created 8 years ago by Davidhhuan, updated 8 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 678 times
Version: 1.1
Category: Tutorials

Yii code completion and calltips in Komodo Edit

Created 8 years ago by viter, updated 8 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: 12 932 times
Version: 1.1
Category: Tips

Automatically get the SVN Revision Number of your Project

Created 5 years ago by jcagentzero, updated 5 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: 8 059 times
Version: all
Category: Tutorials

More security in your applications with Yii and PHPIDS

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

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

6 0
14 followers
Viewed: 16 614 times
Version: 1.1
Category: How-tos