Wiki

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

Displaying, sorting and filtering HasMany & ManyMany relations in CGridView

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

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

Created 4 years ago by kiran sharmaHow-tos21 comments – viewed 58,928 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.

How to hide index.php on nginx

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

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

Created 5 years ago by c@cbaTutorials37 comments – viewed 58,683 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.

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

Created 5 years ago by acorncomHow-tos23 comments – viewed 58,268 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.

Module based login

Created 6 years ago by suriyansureshTutorials6 comments – viewed 57,327 times – ( +14 / -1 ) – version 1.1
If you want to add module based login to a site without using RBAC, please follow these guidelines.

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

Created 4 years ago by shulmeHow-tos12 comments – viewed 57,143 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:

Saving files to a blob field in the database

Created 6 years ago by zaccariaTips8 comments – viewed 57,136 times – ( +9 / -3 ) – version 1.1
As a follow-up from the How to upload a file using a model wiki entry that explains how to save a file to the filesystem, this article will do the same using a blob field in the database.
tags: File upload

Display an AJAX tree from your DB using CTreeView

Created 7 years ago by Fran├žois GannazTutorials10 comments – viewed 56,900 times – ( +21 / -1 ) – version 1.1
This example uses a MySQL DB with a table named tree with the fields id, name, and parent_id. The parent_id will be NULL for root elements. The SQL is kept simple (no autoinc, no FK, etc).
tags: AJAX, CTreeView

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

Created 3 years ago by codesutraTutorials11 comments – viewed 56,707 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.