Wiki articles

Showing 181-200 of 651 items.

Encapsulate db and module configurations

Created 14 years ago by ricardograna, updated 11 years ago by Yang He.

This method was inspirated on the excellent text about different environments available at http://www.yiiframework.com/doc/cookbook/32/

7 0
9 followers
Viewed: 20 269 times
Version: 1.1
Category: Tutorials
Tags: module

Using Yii with PHP 5.4 built-in webserver instead of Apache

Created 12 years ago by samdark, updated 12 years ago by samdark.

Since version 5.4 PHP can work as a simple webserver so you can develop Yii applications without installing Apache. That's how to use it:

21 0
5 followers
Viewed: 20 291 times
Version: 1.1
Category: How-tos
3 0
4 followers
Viewed: 20 337 times
Version: 1.1
Category: How-tos

How to sum (Update) of all input button price value using jquery

Created 9 years ago by Ankit Modi, updated 9 years ago by Ankit Modi.

Hi Friends, In this tutorial, how to update the sum of all the button data-price value using jquery, Just Follow three step and it's work easily.I hope It may be some helpful to others. See Image

0 0
2 followers
Viewed: 20 447 times
Version: all
Category: How-tos

How to catch and log MySQL deadlock errors

Created 11 years ago by seb, updated 11 years ago by seb.

This method allows to log InnoDB monitor output when deadlock error occured. This way we will have much more useful data to find and fix deadlock.

4 0
7 followers
Viewed: 20 563 times
Version: 1.1
Category: Tips
Tags: database

New Relic Error Alert with Yii

Created 10 years ago by simon604, updated 9 years ago by razvanphp.

Introduction

2 0
4 followers
Viewed: 20 577 times
Version: 1.1
Category: Tips

How to implement magento cron on yii

Created 10 years ago by Ankit Modi, updated 9 years ago by CeBe.

Hi Friends, First I would to say sorry but I am not very familiar to magento so after a 1 week spend I will implement the magneto cron functionality on yii I hope it's may be some helpful.

0 0
3 followers
Viewed: 20 660 times
Version: 1.1
Category: How-tos

Auto TDD - How to auto-run PHPUnit

Created 13 years ago by imehesz, updated 13 years ago by imehesz.

If you are lucky enough and have the privilege to develop on a Linux based environment, this little tip might boost-up your TDD process (at least the Unit Testing part). Please note, that this should work just fine with Apple computers also, but not tested!

3 0
6 followers
Viewed: 20 743 times
Version: 1.1
Category: Tips

How to use bizRules in standard accessControl filter

Created 10 years ago by Maciej Liżewski, updated 9 years ago by Maciej Liżewski.

I assume you are familiar with accessControl standard filter. It allows you to separate privileges to run some action from action code itself. There is however one problem with most common usage - you cannot use bizRules, at least based on some parameters passed to 'checkAccess' just because it is hard to pass them in accessRules() result.

3 0
8 followers
Viewed: 20 870 times
Version: 1.1
Category: How-tos
1 0
3 followers
Viewed: 20 923 times
Version: 1.1
Category: How-tos

Alternative folder structure for a standard Yii app

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

I found a standard Yii app's protected folder structure nearly perfect. With a few simple moves and a little bit change to the code, I managed to bring it to the level, which I found as fully perfect. I want to share my point of view, in case someone would like to use this structure as well.

3 0
9 followers
Viewed: 21 030 times
Version: 1.1
Category: How-tos

How to customize error handling in console-mode applications

Created 13 years ago by Steve Friedl, updated 13 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: 21 041 times
Version: 1.1
Category: How-tos

CGridView Date Range Without Cookies or Session (External Filtering)

Created 10 years ago by ezekielnoob, updated 8 years ago by ezekielnoob.

Here's a tutorial on how to create a CGridView with external date filters the trick is to create hidden columns within the CGridView Filters something like in the example below: grid

3 0
8 followers
Viewed: 21 111 times
Version: 1.1
Category: How-tos

Display Status image on CGridView column

Created 10 years ago by Ankit Modi, updated 5 years ago by samdark.

How to display status image on admin gridview.

0 0
5 followers
Viewed: 21 125 times
Version: 1.1
Category: Tutorials

Profiling using XDebug

Created 10 years ago by le_top, updated 8 years ago by le_top.

A short explication on how to extract profile information for PHP on your server using XDebug and KCacheGrind or WinCacheGrind.

3 0
3 followers
Viewed: 21 290 times
Version: all
Category: How-tos

Adding 'disabled' to CCheckBoxColumn and support for yiigridview.js

Created 11 years ago by Xgamer99, updated 11 years ago by Maurizio Domba Cerin.

I recently had to have a checkbox column in my grid view that supported the 'disabled' attribute. This was easy enough to do by extending the CCheckBoxColumn. However, I also wanted the checkbox to be selected when clicking on the table's row (supported via CGridView's selectableRows option). I discovered I had to tweak yiigridview.js so that it would not select disabled rows when clicking on it o...

1 0
7 followers
Viewed: 21 292 times
Version: 1.1
Category: Tips

Select2 Infinite Scroll With Remote Data in Yii

Created 9 years ago by IsraelAma, updated 9 years ago by CeBe.

I was able to set up the infinite scroll of select2 in Yii. I am glad to share it with you. The demo and source code can be found here. However, select2 for Yii can be found here which uses a widget.

3 0
5 followers
Viewed: 21 392 times
Version: 1.1
Category: How-tos

Implementing menu items with progress (wait) dialog

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

This article shows one of possible ways to implement menu items (as well as links), which displays a progress / wait dialog and are redirecting browser to destination URL in the same time. This is especially useful, for links or routes that are know to be loaded for a prolonged period of time (i.e. getting a lot of data from database).

1 0
1 follower
Viewed: 21 411 times
Version: 1.1
Category: How-tos

Create/Develop View files with plain HTML (Without using ActiveForm Class)

Created 10 years ago by kalpit, updated 9 years ago by CeBe.

Today i want to share with you is "How can we write HTML Code in view files? I am writing this article because many times we can not use CActiveForm to design our form...

2 2
6 followers
Viewed: 21 514 times
Version: 1.1
Category: How-tos