Wiki

Sorted by viewsX
Displaying 111-120 of 786 result(s).

How to use Multiple instances of the same model in the same form

Created 5 years ago by kiran sharmaHow-tos21 comments – viewed 61,870 times – ( +22 / -7 ) – version 1.1
When i had created this functionality then i found some difficulties and not got much idea from wiki and forums. so, i think this will be useful for newbie users and save time of other developers when create related functionality. I refer Collecting Tabular Input tutorial but not got clear idea for create/update.

Integrating Wordpress and Yii: still another approach, using Yii as the router/controller

Created 5 years ago by acorncomHow-tos23 comments – viewed 61,546 times – ( +22 / -1 ) – version 1.1
A lot of people have written posts on integrating Yii and WordPress. This article combines goncin's approach with an article I read about integrating Symfony and WordPress and applies it all to Yii and WordPress.

RBAC Super Simple with Admin and User

Created 2 years ago by evercodeTutorials11 comments – viewed 61,536 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 send emails using SMTP

Created 3 years ago by robregonmHow-tos2 comments – viewed 60,958 times – ( +8 / -1 ) – version 2.0
Follow @robregonm
tags: yii2, email, mail, mailer, smtp

YiiBoilerplate - Setup a professional project structure in seconds

Created 5 years ago by Antonio RamirezOthers53 comments – viewed 60,370 times – ( +48 / -1 ) – version 1.1
YiiBoilerplate
tags: directory, config

How to hide index.php on nginx

Created 8 years ago by milesTutorials3 comments – viewed 60,334 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 60,331 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 5 years ago by c@cbaTutorials37 comments – viewed 60,029 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.

[Guide] How to actually separate Frontend (User) and Backend (Admin) on Yii2 Advanced

Created 2 years ago by Wade ShulerHow-tos2 comments – viewed 59,286 times – ( +17 / -2 ) – version 2.0
I am writing this guide because I struggled to find a resource that included ALL of the necessary steps to completely separate the frontend from the backend. After reading guides like Configuring different sessions for backend and frontend in yii-advanced-app and yii2 configuring different sessions for backend and frontend in yii advanced application template, there are still steps missing. It is funny how the 2nd one says it is an extension of the first one's article. So I guess, my wiki guide here is yet a 3rd and more complete extension of both of them. I also found a few StackOverflow questions and blog posts regarding this topic. None of them fully worked, and must be missing some magic sauce!

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

Created 4 years ago by codesutraTutorials11 comments – viewed 59,254 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.