Wiki

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

Escape from Default's Yii2 Delete Confirm Box

Created 3 years ago by Antonio RamirezHow-tos9 comments – viewed 26,907 times – ( +9 / -2 ) – version 2.0
If you started playing with Yii2's new GridView, you will soon realize that some things have improved quite a lot, but I am sure its going to be a bit confusing at first glance when you try to modify certain javascript behaviors like for example, its delete confirmation dialog box.

A simple action for CJuiAutoComplete

Created 6 years ago by tydeas_drTips9 comments – viewed 40,072 times – ( +17 / -2 ) – version 1.1
More or less I use auto-complete field for a form. CJuiAutoComplete is a yii widget for this purposes. The common use case is to make an ajax request and retrieve a list from the database. So in this case you have to write a controller action to return you a json encoded list. What if I had a generic action to do this work for me?

Relations: BELONGS_TO versus HAS_ONE

Created 6 years ago by Steve FriedlFAQs9 comments – viewed 130,277 times – ( +69 / -1 ) – version 1.1
It's very common to see new Yii users confusing the relations HAS_ONE and BELONGS_TO, and getting it wrong means you won't get proper values back. And though we'll talk about HAS_MANY as well, we're specifically omitting the MANY_MANY relation because it's a whole different animal.

How to generate Yii-like Documentation

Created 6 years ago by AsgarothHow-tos9 comments – viewed 34,828 times – ( +46 / -1 ) – version 1.1
Something a good application cant miss is documentation, and what would be better than some nice formatted HTML documentation that can be auto-generated from your code, we know several tools that already do this like phpDocumentor, but today we are introducing Yii Docs Generator which is a modification of the code that Yii itself uses to generate its documentation, thank phpnode for this wonderful work.
tags: doc

Local time zones and locales

Created 6 years ago by Russell EnglandHow-tos9 comments – viewed 73,479 times – ( +14 / -3 ) – version 1.1
Following on from international dates, I also wanted times in the local timezone and format. This was a little more tricky but I think I've got a solution. This is only really appropriate if you have an international app.

How to use the official Yii installer for Composer (**DEPRECATED**)

Created 4 years ago by br0skHow-tos9 comments – viewed 41,803 times – ( +3 / -1 ) – version 1.1
This wiki shall be considered deprecated since the Yii installer for composer has been discontinued.

Tutorial about How to Integrate Yii2 with fantastic theme AdminLTE

Created 3 years ago by ThePr0f3550rHow-tos9 comments – viewed 92,686 times – ( +16 / -2 ) – version 2.0
Yii2 comes with a charming twitter bootstrap version 3. But if it is less, then you can integrate with web templates that you like. One example is wonderfull template "adminLTE"
tags: yii2, theme, adminLTE

How to use single form to collect data for two or more models (CActiveForm and Ajax Validation edition)

Created 6 years ago by RusAlexHow-tos9 comments – viewed 57,614 times – ( +22 / -1 ) – version 1.1
With Yii you can use one CActiveForm for collecting data for two or more models with ajax validation and client validation.

Yiinitializr: The Library

Created 4 years ago by Antonio RamirezOthers9 comments – viewed 19,827 times – ( +15 / -1 ) – version 1.1
Introduction

Filter / Search with CListView

Created 6 years ago by JohnPollardHow-tos9 comments – viewed 44,404 times – ( +30 / -1 ) – version 1.1
This is what I did. Its the EASIEST solution that I know of. I just reused the advanced search done in CGridView.