Wiki

Sorted by viewsX
Displaying 391-400 of 771 result(s).

Logout CSRF Protection

Created 5 years ago by Rodrigo CoelhoTutorials1 comment – viewed 16,950 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.

Using jQuery UI 1.8.10 themes with Yii 1.1.6

Created 5 years ago by a110yTips7 comments – viewed 16,896 times – ( +2 ) – version 1.1
When using the latest stable jQuery UI themes (1.8.10) with Yii 1.1.6 (which uses 1.8.6) the widgets don't appear (they're invisible but they're there). In order to make them visible you need to change the following line:

Update a part of content using AJAX when select a GridView row

Created 2 years ago by Kostas Apazidis (KonApaz)How-tos2 comments – viewed 16,705 times – ( +4 ) – version 1.1
Suppose you want to refresh a form or any content when a single row of CGridView is selected

A simple class to use a different db for a module

Created 5 years ago by tydeas_drTips3 comments – viewed 16,632 times – ( +9 ) – version 1.1
What would you do if you want/need to have a different than the main database connection in an module's models?

TDD with PHPUnit_Story and Yii

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

Escape from Default's Yii2 Delete Confirm Box

Created 2 years ago by Antonio RamirezHow-tos9 comments – viewed 16,575 times – ( +9 / -1 ) – version 2.0
If you started playing with Yii2's new GridView, you will soon realize that some things have improved quite a lot, but I am sure its going to be a bit confusing at first glance when you try to modify certain javascript behaviors like for example, its delete confirmation dialog box.

Yii2: Configuring different sessions for backend and frontend in Yii Advanced Application Template

Created about a year ago by hrnairHow-tos2 comments – viewed 16,460 times – ( +6 ) – version 2.0
This is as an extension of this wiki by Kartik V which shows to make different enableAutoLogin cookies for frontend and backend.

Code style

Created 5 years ago by zaccariaTips2 comments – viewed 16,432 times – ( +29 ) – 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

Log Activity in DataBase

Created 2 years ago by mahdi1986Tutorials6 comments – viewed 16,047 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