Wiki

Articles in category "how-tos", sorted by viewsX
Displaying 91-100 of 354 result(s).

URL management for Websites with secure and nonsecure pages

Created 4 years ago by qiangHow-tos12 comments – viewed 35,283 times – ( +29 ) – version 1.1
In this article, I will describe how to manage URLs for a Website that has both secure and nonsecure content.
tags: URL

Single table inheritance

Created 5 years ago by samdarkHow-tos8 comments – viewed 35,235 times – ( +41 ) – version 1.1
Relational databases do not support inheritance so if we need to represent it, we have to somehow store meta info while keeping performance by minimizing JOINs. One way to solve this problem is using single table inheritance. All fields for the whole class tree are stored in a single table. Class name is stored in the type field of the same table.

How to create a criteria condition for a multiple value text search i.e a "LIKE IN"

Created 3 years ago by tophHow-tos2 comments – viewed 34,269 times – ( +1 / -1 ) – version 1.1
This is a shortcut for adding a text search for multiple values i.e.

Simple authorization system

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

Run Yiic directly from your app without a shell

Created 5 years ago by jacmoeHow-tos6 comments – viewed 33,932 times – ( +18 ) – version 1.1
Sometimes it would be nice if we could run yiic from an action, for example a migrate database button in our admin panel. Or because you are on a host which doesn't have shell access. Or maybe you are not allowed run popen or exec.

How to generate Yii-like Documentation

Created 5 years ago by AsgarothHow-tos9 comments – viewed 33,193 times – ( +46 ) – 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

Storing your images in your table's blob field and displaying that stored images.

Created 4 years ago by sirin kHow-tos7 comments – viewed 32,773 times – ( +9 / -1 ) – version 1.1
He im giving you a very simple example ie how you can store an image to your blob field in a table.Hope you already familiar with the normal image upload.
tags: blob, image

Using the jqueryslidemenu plugin with CMenu

Created 6 years ago by Antonio RamirezHow-tos0 comments – viewed 32,645 times – ( +18 / -1 ) – version 1.1
Yii makes it really easy for all to use their already made objects that automate everything we do. It provides also great power of flexibility and styling but hey, we programmers tend to complicate our lives and push a little more the power of our tools.

Displaying uploaded file from DB for update with FileInput widget

Created 2 years ago by Kartik VHow-tos3 comments – viewed 32,620 times – ( +39 / -5 ) – version 2.0
This is for folks who are using \kartik\widgets\FileInput to upload files from your client. How do you display an image for update after you have uploaded it to the server using the widget?

custom sql query results to CDetailView

Created 3 years ago by Kostas Apazidis (KonApaz)How-tos8 comments – viewed 32,149 times – ( +3 ) – version 1.1
This is a bried guide about displaying of custom sql query results.