Wiki

Articles in category "how-tos", sorted by viewsX
Displaying 71-80 of 341 result(s).

Additional form data with XUpload

Created 2 years ago by AsgarothHow-tos7 comments – viewed 30,354 times – ( +9 ) – version 1.1
In this article you'll learn how to send additional form data when uploading files using XUpload widget

Integrating HybridAuth directly into Yii without an extension

Created 2 years ago by biz devHow-tos8 comments – viewed 29,259 times – ( +14 ) – version 1.1
This article tries to explain the steps required in integrating the HybridAuth into Yii directly, without using an extension.

Using the jqueryslidemenu plugin with CMenu

Created 4 years ago by Antonio RamirezHow-tos0 comments – viewed 28,840 times – ( +18 / -1 ) – version 1.1
Yii makes it really easy for all to use their already made objects that automate everything we do. It provides also great power of flexibility and styling but hey, we programmers tend to complicate our lives and push a little more the power of our tools.

javascript + tabular input

Created 4 years ago by zaccariaHow-tos4 comments – viewed 28,161 times – ( +14 / -1 ) – version 1.1
If you tried this extension with success, maybe you thought how to do it without page submission or ajax calls.

Drop down list with enum values for column of type ENUM >+> incorporate into giix

Created 3 years ago by c@cbaHow-tos3 comments – viewed 27,901 times – ( +14 ) – version 1.1
Let's say our table 'mug' has a column named 'color' of the type ENUM('red','green','blue'). We want to replace the textfield for the attribute color in the create and update forms of a 'mug' with a drop down list, which has the enum values as options. The main code was contributed by zaccaria in the forum (see this post).

Setting up PHPUnit and Selenium with IntelliJ IDEA/PhpStorm

Created 2 years ago by rAWTAZHow-tos0 comments – viewed 27,828 times – ( +7 ) – version 1.1
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.

How to generate Yii-like Documentation

Created 4 years ago by AsgarothHow-tos9 comments – viewed 27,751 times – ( +45 ) – version 1.1
Something a good application cant miss is documentation, and what would be better than some nice formatted HTML documentation that can be auto-generated from your code, we know several tools that already do this like phpDocumentor, but today we are introducing Yii Docs Generator which is a modification of the code that Yii itself uses to generate its documentation, thank phpnode for this wonderful work.
tags: doc

How to use an application behavior to maintain runtime configuration

Created 3 years ago by zaccariaHow-tos3 comments – viewed 26,990 times – ( +28 ) – version 1.1
In this tutorial will be explained a method to manage some configuration runtime. This excellent tutorial follows a similar approach, but requires to write a masterclass which all controllers are supposed to extend, following this wiki you can achieve the same by only editing the configuration.

AssetManager: clearing browser's cache on site update

Created 3 years ago by dhampikHow-tos4 comments – viewed 26,815 times – ( +19 ) – version 1.1
If you like the things to be short and clear, then you can skip right to a short summary of instructions at the end of this article.

Single table inheritance

Created 3 years ago by samdarkHow-tos8 comments – viewed 26,389 times – ( +40 ) – version 1.1
Relational databases do not support inheritance so if we need to represent it, we have to somehow store meta info while keeping performance by minimizing JOINs. One way to solve this problem is using single table inheritance. All fields for the whole class tree are stored in a single table. Class name is stored in the type field of the same table.