Wiki

Articles in category "tutorials", sorted by commentsX
Displaying 151-160 of 228 result(s).

Multilanguage web site controlling by get request and database allowed languages

Created 3 years ago by Igor IvanovicTutorials2 comments – viewed 16,843 times – ( +6 ) – version 1.1
First, you have to have create database table for default language and allowed languages.

Manage Email Template content from database

Created about a month ago by Ankit ModiTutorials2 comments – viewed 1,381 times – ( -2 ) – version all
Hi Friends,

Avoiding duplicate script download when using CActiveForm on Ajax calls

Created 2 years ago by Antonio RamirezTutorials2 comments – viewed 15,246 times – ( +12 / -1 ) – version 1.1
Sometimes the active form we wish to use to edit/add a new element on our database is too small and we believe that is much better to use an AJAX'ed dialog/slide form rather than reloading the page to just display one or two fields.

Force a User to Change Their Password (ChangePasswordFilter)

Created 2 years ago by waterloomattTutorials2 comments – viewed 13,980 times – ( +16 / -2 ) – version 1.1
Sometimes you need to force a user to change their password after x number of days. This article describes how to implement this using a filter, ChangePasswordFilter.

Windows Web Development With AMPPS, NetBeans and XDebug

Created 2 years ago by macinvilleTutorials1 comment – viewed 18,951 times – ( +4 ) – version 1.1
This article will discuss how to setup your web development environment with the following specifications:

Mantis Manager: An Asset Manager that minifies, combines, and publishes

Created about a year ago by aarondfrancisTutorials1 comment – viewed 3,458 times – ( +7 )
Hello everybody.
tags: heroku, assets

TDD with PHPUnit_Story and Yii

Created 2 years ago by sidewinderTutorials1 comment – viewed 13,646 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.

First Yii App: CTabView

Created 5 years ago by meanpenguinTutorials1 comment – viewed 17,040 times – ( -2 ) – version 1.1
Once you are completed with the "Creating First Yii Application", the following can be done.

How to add more information to Yii::app()->user

Created 5 years ago by qiangTutorials1 comment – viewed 114,745 times – ( +26 ) – version 1.1
By default, the expression Yii::app()->user returns a CWebUser application component which represents the information that are closely related with the current user. Some information can be persistent throughout the current user session. For example, CWebUser already comes with a name property that stores the username of the current user.

Q: My yiic tool cannot run model and crud commands. Why?

Created 5 years ago by qiangTutorials1 comment – viewed 6,957 times – version 1.1
Some PHP installations may use a different php.ini file for CLI PHP (command line PHP parser). As a result, when running the model or crud command in yiic shell, you may encounter errors like "YiiBase::include(PDO.php): failed to open stream..." or "...could not find driver", even though the requirement checker confirms you have PDO and the corresponding database driver.