Wiki

Articles in category "tutorials", sorted by viewsX
Displaying 141-150 of 242 result(s).

MVC primer and 5 minute form walkthrough

Created 3 years ago by rix.rix.Tutorials0 comments – viewed 17,126 times – ( +8 ) – version 1.1
This tutorial assumes some basic knowledge of Yii and a functional development environment.
tags: Forms, tutorial, mvc

Performance - A Guide For Best Practice

Created 5 years ago by Y!!Tutorials3 comments – viewed 17,032 times – ( +8 / -5 ) – version 1.1
In this guide I will explain best practise regarding performance in MySQL, PHP and of course our loved Yii Framework. Since this is a complex topic, I will start with some basics and then expand this guide from time to time. Since this wiki can become big, you may click on View history - there you can see what changes have been made, so you don't miss anything.
tags: performance

How to setup FCKeditor

Created 6 years ago by krillzipTutorials2 comments – viewed 17,010 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.

Auto set model fields values

Created 3 years ago by vibhaJadwaniTutorials3 comments – viewed 16,765 times – ( +9 ) – version 1.1
This is a tutorial for how to auto set model values without any code.

Implementing a WebDAV server using SabreDAV

Created 2 years ago by nineinchnickTutorials6 comments – viewed 16,280 times – ( +5 )
This article will show you how to easily implement a WebDAV server in your project using SabreDAV.

Force a User to Change Their Password (ChangePasswordFilter)

Created 3 years ago by waterloomattTutorials2 comments – viewed 15,905 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.

TDD with PHPUnit_Story and Yii

Created 3 years ago by sidewinderTutorials1 comment – viewed 15,678 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.

Logout CSRF Protection

Created 4 years ago by Rodrigo CoelhoTutorials1 comment – viewed 15,665 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.

Handling tabular data loading and validation in Yii 2

Created about a year ago by Kartik VTutorials3 comments – viewed 15,444 times – ( +41 / -5 ) – version 2.0
How do you read and handle tabular data submission via form in Yii framework 2.0? Sometimes we want to collect user input in a batch mode. That is, the user can enter the information for multiple model instances and submit them all at once. We call this tabular input because the input fields are often presented in an HTML table.

Relational data fields display and edit with the yii2-detail-view extension

Created about a year ago by Kartik VTutorials1 comment – viewed 14,700 times – ( +39 ) – version 2.0
If you have read this wiki you would be aware of the yii2-detail-view extension and how it offers you an easy way to EDIT and VIEW your model data, toggle these modes, and other features. You can read the extension documentation and/or view a demo of this extension, to understand usage.