Wiki

Articles in category "tutorials", sorted by viewsX
Displaying 51-60 of 255 result(s).

RBAC Super Simple with Admin and User

Created 3 years ago by evercodeTutorials11 comments – viewed 64,820 times – ( +17 / -4 ) – version 2.0
One of the common requests I see in the forum is how to implement RBAC. While you can implement Yii 2's built-in RBAC, that might be too much for developers who are just starting with Yii 2 or have simpler needs. Sometimes you are looking for a fast solution and just want two flavors, user and admin. And even if you will eventually need more, you can use these methods as a starting point for developing your own features or move on to Yii 2's RBAC.

How to display static pages in Yii?

Created 8 years ago by qiangTutorials2 comments – viewed 64,546 times – ( +19 / -1 ) – version 1.1
In a Web application, we often need to display pages like "about this site", "legal information", whose content are mostly static. There are several approaches to deal with this kind of pages.
tags: static pages

Yii and XAMPP server on Windows

Created 7 years ago by TrejderTutorials0 comments – viewed 64,141 times – ( +3 / -1 ) – version 1.1
This article explains issues about installing XAMPP server package (Lite version) on Windows OS and configuring it for serving webapps written in Yii. Please note, that XAMPP is available for many more platforms and systems. I write about Windows edition as it was the only one tested by me.
tags: windows, xampp, server

How To Customize CMenu Output

Created 7 years ago by AngeloTutorials7 comments – viewed 63,605 times – ( +10 / -1 ) – version 1.1
CMenu comes with a lot of great customization options built in but sometimes you need it to do more.
tags: menu

How to hide index.php on nginx

Created 9 years ago by milesTutorials3 comments – viewed 61,744 times – ( +4 / -1 ) – version 1.1
For a complete sample Nginx+PHP-FPM config, view this how-to: Nginx & PHP-FPM
tags: URL

Displaying, sorting and filtering HasMany & ManyMany relations in CGridView

Created 5 years ago by yJeroenTutorials8 comments – viewed 61,686 times – ( +21 / -1 ) – version 1.1
This tutorial gives you multiple options of how to fully implement showing, sorting and filtering related data in gridviews.

SEO-conform Multilingual URLs + Language Selector Widget (i18n)

Created 6 years ago by c@cbaTutorials37 comments – viewed 61,106 times – ( +32 / -1 ) – version 1.1
You have a multilingual application, and you want the URL of a page to be different for different languages, to account for SEO. The URL for the contact page for example should look like http://something.com/en/contact in english, and http://something.com/de/contact in german. This tutorial describes how to make it happen. Note that currently selected language is always a part of the URL, and thus available to the application through $_GET. You don't have to use sessions variables to keep track of the language if you don't want to.

Create / Generate PDF files with TCPDF plugin (Example to generate Table with TCPDF plugin)

Created 4 years ago by codesutraTutorials11 comments – viewed 61,105 times – ( +6 / -1 ) – version 1.1
Few days ago i was playing with TCPF plugin to create a PDF files. Since i have checked few available extension and also checked some forum threads but still i dont get my expected result for PDF file.

Working with radiobutton list

Created 5 years ago by vibhaJadwaniTutorials3 comments – viewed 59,330 times – ( +10 / -1 ) – version 1.1
This is a tutorial to work with radioButtonList which will handle enum datatype. Form design and validation both are detailed here.

Custom Number Formatting or Decimal Separators and i18n

Created 5 years ago by c@cbaTutorials8 comments – viewed 59,316 times – ( +7 / -1 ) – version 1.1
By default, the decimal separator in php (also in mysql) is a dot (.). So when we work with floats in Yii (in calculations, validation, sql statements etc.), the decimal separator has to be a dot. If we want to use for example a comma (,) as the decimal separator, that is if we want to display numbers and enable users to enter numbers with a comma before the decimals, we have to...