Wiki

Sorted by viewsX
Displaying 411-420 of 783 result(s).

Starting with YII 1.1.x in Windows Environment (WAMP)

Created 2 years ago by Rajith RTutorials0 comments – viewed 17,611 times – ( +8 ) – version 1.1
As we know YII is the Leading Framework of PHP. Lots of new developers are starting to use YII day by day. Most of the beginners are little bit confused with how to start with YII . I think this note will help them. Follow the simple steps To run a Yii-powered Web application, you need a Web server that supports PHP 5.1.0.
tags: newbie, yii, yiic

TDD with PHPUnit_Story and Yii

Created 5 years ago by sidewinderTutorials1 comment – viewed 17,567 times – ( +7 ) – version 1.1
Unfortunately Sebastian Bergmann decided to remove PHPUnit_Story from future PHPUnit versions. Thanks to elvan for pointing me to the relevant comment. As an alternative Behat has been suggested but it seems too bloated for me TBH. There is also PHPSpec but it's non flexible enough for me and tightly bound with English language (What's the purpose of using DSL if customers can't speak English). Since both frameworks are quite young I think I'll just stick to PHPUnit and see what's going on on the BDD frameworks arena. Even PHPUnit_Story parts of this entry are going to be deprecated soon, rest is still valid! When doing TDD, please write tests with design and behaviour of application in mind instead of testing single functions.

Code style

Created 6 years ago by zaccariaTips2 comments – viewed 17,486 times – ( +30 ) – version 1.1
Often, when writing widgets or editing Yii code, it is unclear whether or not the code is following the MVC pattern.
tags: mvc

Using Grunt for deploying client scripts

Created 4 years ago by Chris83How-tos8 comments – viewed 17,462 times – ( +11 ) – version 1.1
For a long time I have struggled to find a suitable tool for doing server tasks such as compiling LESS files, concatenating and minifying of JavaScript files and copying the minified JavaScript files. While most of these tasks can be done with Yii extensions I would still not recommend using them because it requires you to include these extensions in your project, and therefore also deploying them in your production environment.

BUM - Add Additional Info to a User

Created 3 years ago by fireflyHow-tos1 comment – viewed 17,410 times – ( +1 ) – version 1.1
How to add additional information to a user when using BUM extension?

CSV Export

Created 4 years ago by JohnPollardHow-tos5 comments – viewed 17,278 times – ( +4 ) – version 1.1
I needed a csv export function for my cgridview and I wanted to export the entire result set of the sorted and filtered cgridview the user was viewing via ajax.
tags: csv, export

Create a custom menu using CMenu data-items (flat or tree structure)

Created 3 years ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 17,211 times – ( +4 ) – version 1.1
There are cases that you want more control to your menu Suppose you want a specific menu with complex css, layout, images. also you want to add extra content,html,css,javascript etc it run time foreach submenu item by conditions.

Simple Way to Upload and Save File

Created 2 years ago by Misbahul D MunirTutorials0 comments – viewed 17,139 times – ( -2 ) – version 2.0
This tutorial need extension mdmsoft/yii2-upload-file. Follow the intruction to install. After installation done, create controller and action

Extending an ActiveRecord model

Created 4 years ago by BogseyHow-tos3 comments – viewed 17,035 times – ( +2 / -3 ) – version 1.1
Introduction

Generate a multi-lever array sub-category for a menu

Created 3 years ago by Kostas Apazidis (KonApaz)How-tos8 comments – viewed 17,034 times – ( +10 ) – version 1.1
Everyone have seen a multilayer menu in several CMS