Wiki

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

How to setup FCKeditor

Created 7 years ago by krillzipTutorials2 comments – viewed 17,988 times – ( +3 / -1 ) – version 1.1
To start with you need to download the latest stable release of FCKeditor. Extract the downloaded file and place the fckeditor/ folder in your applications webroot directory.

Multi level dropdown menu in Bootstrap

Created 2 years ago by sefburhanTutorials1 comment – viewed 17,761 times – ( +38 ) – version 1.1
To get multi level dropdown menu of using boostrap extension (http://www.yiiframework.com/extension/bootstrap/) widget TbNavbar just follow steps

Force a User to Change Their Password (ChangePasswordFilter)

Created 4 years ago by waterloomattTutorials2 comments – viewed 17,129 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.

Logout CSRF Protection

Created 4 years ago by Rodrigo CoelhoTutorials1 comment – viewed 16,869 times – ( +10 ) – version 1.1
CSRF is the acronymn for Cross-site request forgery. It is an attack which forces an end user to execute unwanted actions on a web application in which he/she is currently authenticated.

TDD with PHPUnit_Story and Yii

Created 4 years ago by sidewinderTutorials1 comment – viewed 16,515 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.

Log Activity in DataBase

Created 2 years ago by mahdi1986Tutorials6 comments – viewed 15,878 times – ( +8 ) – version 1.1
In this article i will explain how to customize log activity in database, Imaging you need to save IP user, Url request and user_name in database,But table created by default with Yii only have id,level,category,logtime and message

Impersonate Users within Yii Framework

Created 5 years ago by WoilTutorials6 comments – viewed 15,499 times – ( +22 ) – version 1.1
For some applications it can be advantageous for administration reasons to allow site administrators to login as other users. This is sometimes called user impersonation or "becoming that user".

Save or Update Multiple related model values in one Tabular input form

Created about a year ago by Kostas Apazidis (KonApaz)Tutorials4 comments – viewed 15,420 times – ( +1 / -7 ) – version 1.1
In this wiki I will show you how to save/update a model with many related model For example: How to set a product to multiple categories only in one post form ?

Managing your nested dropdown dependency with DepDrop widget

Created about a year ago by Kartik VTutorials6 comments – viewed 15,403 times – ( +37 / -5 ) – version 2.0
If you are coming over to Yii 2 from Yii 1.x, you may have already read this useful wiki for creating dependent dropdowns. You can use a similar approach in Yii 2 to do the same. But if you are looking at a prebuilt solution that helps you manage it easier, read along.

How to log context information to logger (session id, user, ...)

Created 6 years ago by olafureTutorials0 comments – viewed 14,539 times – ( +2 ) – version 1.1
Logging context information (session, user, ...) to the logfile can be of great help tracking down problems with specific users.
tags: Logging