Wiki

Articles in category "tutorials", sorted by viewsX
Displaying 81-90 of 230 result(s).

To configure Yii path in Windows platform

Created 3 years ago by CodaTutorials2 comments – viewed 29,320 times – ( +3 / -6 ) – version 1.1
I can see many questions regarding configuring the path using Windows OS. I could hardly get the right information about it. The cook book has defined for Linux. So I would like to share my idea on it. To configure the Yii path using Windows OS,

Setting application parameters dynamically in the back-end

Created 2 years ago by PablovpTutorials6 comments – viewed 28,599 times – ( +11 / -1 ) – version 1.1
I was wondering how to set-up the application parameters in the back-end to use them all around the application without the need of using the database and I came up with this solution, I hope it helps somebody else.

A simple way to get Yii client-side form validation run when submitting by ajax

Created about a year ago by nlacTutorials5 comments – viewed 27,605 times – ( +5 / -2 ) – version 1.1
A time ago i've met the issue that Yii doesn't run any client-side form validation when submitting the form by CHtml::ajaxSubmitButton. The small javascript below helps to fix it.

Secure password hash storage and a Yii helper extension

Created 2 years ago by fsbTutorials5 comments – viewed 27,300 times – ( +15 ) – version 1.1
Obsolete

CSS Naming Conventions

Created 3 years ago by qiangTutorials4 comments – viewed 27,076 times – ( +35 ) – version 1.1
In this article, we introduce a set of CSS naming conventions that we have applied in several big projects and achieved success. The goal of these naming conventions is to eliminate the possibility of naming conflicts, facilitate debugging and maintenance, and to simplify the naming process.

Manage (Target) Language in Multilingual Applications + A Language Selector Widget (i18n)

Created 2 years ago by c@cbaTutorials10 comments – viewed 26,791 times – ( +15 ) – version 1.1
In case of a multilingual application, one might consider it a reasonable approach to store the preferred language of the user in a session variable, and after that, every time a page is requested, to check this session variable and render the page in the indicated language. This tutorial shows a Yii-way of doing this. We implement an event handler for the onBeginRequest event; as the name of the event suggests, this event handler will be called at the beginning of each request, so its a good place to check whether a language is provided (via post, session or cookie) and set the application language accordingly. We also implement a simple Language-Selector Widget, which can render the language options as ajax-links or as a drop-down list.

Create / Generate PDF files with TCPDF plugin (Example to generate Table with TCPDF plugin)

Created about a year ago by codesutraTutorials11 comments – viewed 26,281 times – ( +4 ) – version 1.1
Few days ago i was playing with TCPF plugin to create a PDF files. Since i have checked few available extension and also checked some forum threads but still i dont get my expected result for PDF file.

Drills : Search by a HAS_MANY relation

Created about a year ago by softarkTutorials12 comments – viewed 25,807 times – ( +29 ) – version 1.1
Sometimes we get lost trying to search by a HAS_MANY relation using CActiveRecord or CActiveDataProvider. This article is a series of drills that try to describe the practical techniques of searching by a HAS_MANY relation.

Eclipse PDT - code-hints, references and other goodies

Created 5 years ago by mindehTutorials2 comments – viewed 25,783 times – ( +14 ) – version 1.1
Since PHP is dynamically typed language, the way IDE may help you is limited.
tags: IDE

List with multiple checkbox

Created 4 years ago by matkazTutorials3 comments – viewed 24,797 times – ( +4 ) – 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