Wiki

Articles in category "how-tos", sorted by viewsX
Displaying 41-50 of 354 result(s).

Displaying image in a CGridView column.

Created 5 years ago by sirin kHow-tos5 comments – viewed 63,201 times – ( +13 / -2 ) – version 1.1
This is a simple example of how we can display images in CGridviews.Imagine that you have an image field in your table ie either a location field or a blob type field used to store the images.
tags: CGridView, image

yii2-app-advanced on single domain (Apache, Nginx)

Created 2 years ago by MadAndHow-tos4 comments – viewed 63,099 times – ( +9 / -1 ) – version 2.0
If you develop rather complex applications with Yii2, you might already be familiar with yii2-app-advanced application template. Well, the template is awesome and provides high flexibility regarding code/configuration sharing among parts of an application.

Using Yii with Nginx and PHP-FPM

Created 6 years ago by LericHow-tos10 comments – viewed 61,809 times – ( +18 / -1 ) – version 1.1
This config is built on an Ubuntu 11.04 server. Software is nginx, php-fpm (php5-fpm). For performance, it's recommended to run php-fpm in SOCKET mode, instead of accessing via IP:PORT. That is the method shown below.

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

Created 5 years ago by kiran sharmaHow-tos21 comments – viewed 61,265 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 60,947 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.

How to send emails using SMTP

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

CKEditor Integration (includes steps for file uploads) - Step by Step

Created 4 years ago by shulmeHow-tos12 comments – viewed 58,237 times – ( +26 / -1 ) – version 1.1
Hey guys, I'm hoping other people will find this helpful. Today I went through the process of adding CKEditor to one of my projects, and then integrating KCFinder as the image uploader. It will be used in a CActiveForm, without the use of any crazy weird widgets. All paths are relative, using Yii functions, so this will work no matter where you install. Here it is:

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

Created 2 years ago by Wade ShulerHow-tos2 comments – viewed 58,179 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!

How to write a simple application component

Created 6 years ago by zaccariaHow-tos5 comments – viewed 57,872 times – ( +20 / -8 ) – version 1.1
An application component is a confortable way for share information among all component of the application

Updating fields on a form with Ajax and Json

Created 6 years ago by Russell EnglandHow-tos4 comments – viewed 57,554 times – ( +12 / -2 ) – version 1.1
I'm developing a website that has an option to look up a car's registration number via SOAP and return additional details such as make, model, colour etc.