Wiki

Sorted by ratingX
Displaying 431-440 of 784 result(s).

YII2: Create console commands inside a module or extension

Created about a year ago by MetaCrawlerTutorials5 comments – viewed 20,628 times – ( +4 / -1 ) – version 2.0
Here is a small guide how to get console commands running inside modules & extensions. For this guide I used a fresh yii2 basic application template.
tags: yii2, tutorial, config

Deploy yii on pagoda box

Created 5 years ago by francis jaTutorials0 comments – viewed 8,361 times – ( +4 / -1 ) – version 1.1
pagoda box is very useful tool for a programmer to test their php app online so its very useful one. For deploying code pagodabox use git command
tags: pagodabox, pagoda

Create a custom menu using CMenu data-items (flat or tree structure)

Created 3 years ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 17,683 times – ( +4 / -1 ) – version 1.1
There are cases that you want more control to your menu Suppose you want a specific menu with complex css, layout, images. also you want to add extra content,html,css,javascript etc it run time foreach submenu item by conditions.

How to catch and log MySQL deadlock errors

Created 5 years ago by sebTips1 comment – viewed 12,722 times – ( +4 / -1 ) – version 1.1
This method allows to log InnoDB monitor output when deadlock error occured. This way we will have much more useful data to find and fix deadlock.
tags: database

XSS safe model content

Created 7 years ago by phirasTutorials2 comments – viewed 9,692 times – ( +4 / -1 ) – version 1.1
In this post I am going to describe a solution to make your yii-based web application safe from illegal content injections.

How to create/update a model with its related items using Listbox or CheckboxList

Created about a year ago by softarkTutorials1 comment – viewed 12,337 times – ( +4 / -1 ) – version 2.0
Assume we have many categories and many posts.

A Single Page with a List and a Detail

Created 11 months ago by softarkHow-tos1 comment – viewed 7,353 times – ( +4 / -1 ) – version 2.0
The CRUD generator of Gii has done a wonderful job for you, and you already have a list of items in the "index" page and a detailed view of a specified item in the "view" page.
tags: gridview, detail, ajax

List with multiple checkbox

Created 6 years ago by matkazTutorials3 comments – viewed 32,257 times – ( +4 / -1 ) – version 1.1
It is a common case coders often come accross. For example the purpose of these checkbox is to mark records to be deleted

CSV Export

Created 5 years ago by JohnPollardHow-tos5 comments – viewed 17,619 times – ( +4 / -1 ) – version 1.1
I needed a csv export function for my cgridview and I wanted to export the entire result set of the sorted and filtered cgridview the user was viewing via ajax.
tags: csv, export

Yii2 GridView Sorting and Searching with a Junction Table Column(Many to Many Relationship)

Created 7 months ago by Amjad KhanTutorials2 comments – viewed 11,198 times – ( +4 / -1 ) – version 2.0
Following is the table structure