Wiki

Sorted by viewsX
Displaying 381-390 of 786 result(s).

How to hide index.php on Microsoft Windows Server with IIS7

Created 5 years ago by GiulianoHow-tos2 comments – viewed 22,356 times – ( +10 / -1 ) – version 1.1
I've seen lot of people struggling in finding a way to hide the script name when installing their Yii Application. In an Apache environment everything is well documented in this wiki article, but for those who are running their app on a Windows Server machine there are no hints.

CGridView and AjaxForm Connect

Created 6 years ago by PinkBrainPlanHow-tos2 comments – viewed 22,054 times – ( +1 / -1 ) – version 1.1
As I'm new to the framework (2 weeks) - I tried to build a functionallity I already use a lot in my old framework (PRADO). This means combining a GridView with a form. And this in one page, what allows you to select a record from the grid and view the values in the same page without jumping to a new page.
tags: Ajax, Form, CGridView

Using cache in CActiveDataProvider

Created 6 years ago by StammTips7 comments – viewed 22,028 times – ( +21 / -1 ) – version 1.1
First param in CActiveDataProvider could be a string with model name or instance of class. So, you may use CActiveRecord::cache() for cache, but you need set third param to 2, because you should cache 2 queries: counting and get data.

Rendering Views and Updating them with Ajax

Created 4 years ago by Manish GuptaTips4 comments – viewed 21,677 times – ( +2 / -1 )
I wanted to implement a widget that could refresh itself through Ajax without refreshing the whole page. CGridView and CListView are excellent examples of such widgets.

Popup AJAX DialogBox without any extension

Created 4 years ago by Kostas Apazidis (KonApaz)How-tos4 comments – viewed 21,561 times – ( +8 / -2 ) – version 1.1
In this wiki I explain how to show a default popup dialogbox (like Gii does) using an existing module.

Yii Security-extended guide

Created 6 years ago by bingjie2680Tips11 comments – viewed 21,407 times – ( +6 / -7 ) – version 1.1
This article is called extended guide is because there is already a security guide in the Yii tutorial security section. but that guide is not complete in the sense that it does not rise the developers' attention to some other commonly happening attacks: SQL injection and magic URL, which can be major vulnerabilities in your application without much caring.

Update a part of content using AJAX when select a GridView row

Created 4 years ago by Kostas Apazidis (KonApaz)How-tos2 comments – viewed 21,321 times – ( +4 / -1 ) – version 1.1
Suppose you want to refresh a form or any content when a single row of CGridView is selected

Simple Way to Upload and Save File

Created 3 years ago by Misbahul D MunirTutorials0 comments – viewed 21,214 times – ( -3 ) – version 2.0
This tutorial need extension mdmsoft/yii2-upload-file. Follow the intruction to install. After installation done, create controller and action

Load the Yii-Bootstrap Extension on Specific Actions

Created 5 years ago by chuntleyHow-tos5 comments – viewed 21,200 times – ( +10 / -1 ) – version 1.1
A big problem I've hit with the Yii-Bootstrap extension is that all AJAX requests are initializing Bootstrap because of preload. This is a huge waste of resources, especially when using AJAX-based file uploaders that split the file into chunks. Large file uploads using that method could be initializing bootstrap hundreds of times.
tags: bootstrap, filter

What to do when composer fails to update your vendor packages?

Created 3 years ago by Kartik VTutorials0 comments – viewed 21,132 times – ( +39 / -6 ) – version 2.0
Have you faced some of these problems when using composer with your Yii 2 installation?