Articles in category "how-tos", sorted by ratingX
Displaying 51-60 of 348 result(s).

Url: hide index.php

Created 4 years ago by HermansHow-tos16 comments – viewed 140,693 times – ( +27 / -1 ) – version 1.1
Maybe it looks simple, but some time ago I need some time to find a solution of this case. I finally got it, and I want to share that I also experienced such cases. So that it can make reference.

Accessing data in a join table with the related models

Created 3 years ago by fsbHow-tos8 comments – viewed 89,371 times – ( +26 / -1 ) – version 1.1
Sometimes the right place to store application data is in a join table. For example, movie viewers either like or don’t like the movies they watched.

Using standard filters in CGridView custom fields

Created 4 years ago by GOshaHow-tos4 comments – viewed 57,357 times – ( +17 ) – version 1.1
In this article I'll try to explain how to use standard quick search fields in CGridView with customized columns.For example: We have a record in a database with field switch having 0 or 1 values. After that we want a user to see on or off instead 1 or 0. So we do the usual thing:

Simple authorization system

Created 4 years ago by GustavoHow-tos1 comment – viewed 27,380 times – ( +16 ) – version 1.1
How to create a simple (non-RBAC) authorization system

Render Form in popup via AJAX (Create and Update) with ajax validation & Also load any page via ajax Yii 2.0 (2.3)

Created 7 months ago by skwordenHow-tos6 comments – viewed 29,650 times – ( +16 ) – version 2.0
There are a few issues with the other solutions I originally used that I found from other wikis. I address the issues I had in this much simpler and shorter way. I am also going to explain what is going into way more detail than others to help people understand what's going on.

Getting the Most out of APC for Yii

Created 3 years ago by Da:SourcererHow-tos10 comments – viewed 32,948 times – ( +16 ) – version 1.1
The Advanced PHP Cache is a PHP extension which primarily serves as an opcode cache for PHP. The basic idea is to save PHP from re-evaluating the PHP code to intermediate bytecode on each request. Installing and enabling APC already yields a significant performance benefit. However, APC is not a black box that will magically change all for the better. More over it is important to understand that APC needs memory to operate.
tags: caching, apc

Implementing cron jobs with Yii

Created 5 years ago by samdarkHow-tos6 comments – viewed 66,620 times – ( +31 / -2 ) – version 1.1
There are two ways to run a cron job:
tags: cron, cli

Write & use a custom Component in Yii2.0

Created about a year ago by sirin kHow-tos4 comments – viewed 25,743 times – ( +15 ) – version 2.0
This is a simple example in Yii2.0 to understand how you can write a custom component and use it inside your app.(basic template)

Moving project code outside of webroot (plus multiple project support)

Created 4 years ago by Steve FriedlHow-tos8 comments – viewed 45,237 times – ( +22 / -1 ) – version 1.1
Yii's by-default directory organization works well enough, but there are several steps one can take that improve the security and serviceability of the system, especially in the context of multiple Yii projects on the same machine (including multiple versions of the same project).
tags: config, security

Creating a CSS Driven Drop Down Menu using CMenu

Created 4 years ago by blindMoeHow-tos10 comments – viewed 77,803 times – ( +22 / -1 ) – version 1.1
CMenu offers great functionality and the ability to customize just about every aspect of the output. There are many times when I need to create a drop down menu or simply modify the look to make the designers happy. Because this seems to be a common task for me, I figured I would share my code to create a very simple drop down menu that other people could use.