Wiki

Sorted by viewsX
Displaying 311-320 of 470 result(s).

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

Created about a year ago by samdarkHow-tos1 comment – viewed 6,817 times – ( +20 )
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:

caching controllers with filters()

Created 2 years ago by RusAlexHow-tos0 comments – viewed 6,740 times – ( +2 )
Hello, this article will describe some aspects about caching controllers with filters() method in your controller. And I will describe some problems I meet when using this approach for caching, the main problem was

Getting nulls from database instead of empty strings

Created 2 years ago by samdarkTips2 comments – viewed 6,677 times – ( +12 )
To get null from database instead of empty strings you need to set up your DB connection as follows:
tags: database, null

Encapsulate db and module configurations

Created 3 years ago by ricardogranaTutorials3 comments – viewed 6,672 times – ( +6 )
This method was inspirated on the excellent text about different environments available at http://www.yiiframework.com/doc/cookbook/32/
tags: module

URL management for Websites with secure and nonsecure pages

Created 7 months ago by qiangHow-tos3 comments – viewed 6,516 times – ( +13 )
In this article, I will describe how to manage URLs for a Website that has both secure and nonsecure content.
tags: URL

Creating a Simple CRUD App With Yii2

Created 20 days ago by Charles R. Portwood IITutorials11 comments – viewed 6,456 times – ( +5 / -3 )
Getting Started With Yii Framework 2. A Basic Tutorial
tags: yii2, tutorial, howto

Hyphenation of routes in URL management

Created 7 months ago by qiangHow-tos4 comments – viewed 6,379 times – ( +15 )
In this article, we introduce an approach that allows automatic hyphenation of the route part in URLs.
tags: URL

Radio Button List with enum values for column of type ENUM >+> incorporate into giix

Created 12 months ago by pckabeerHow-tos1 comment – viewed 6,374 times – ( +6 )
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 Radio Button List, which has the enum values as options. This is a rewrite of c@cba in the wiki article of enumDropdownListThe main code was contributed by zaccaria in the forum (see this post).

How to hide `index` action from URL

Created 11 months ago by rootbearHow-tos2 comments – viewed 6,323 times – ( +3 / -2 )
Here is my experiment inspired by my own question and others from the forum.
tags: index

Load the Yii-Bootstrap Extension on Specific Actions

Created 5 months ago by chuntleyHow-tos5 comments – viewed 6,318 times – ( +8 )
A big problem I've hit with the Yii-Bootstrap extension is that all AJAX requests are initializing Bootstrap because of preload. This is a huge waste of resources, especially when using AJAX-based file uploaders that split the file into chunks. Large file uploads using that method could be initializing bootstrap hundreds of times.
tags: bootstrap, filter