Wiki articles in category How-tos

Showing 1-20 of 292 items.

An alternative way to ElasticSearch

Created 5 years ago by Necip, updated a year ago by Necip.

This article is for those who have dealt with the complexity of Elasticsearch or any other indexing machines and are looking for an easier way to index the existing database without additional effort.

1 0
2 followers
Viewed: 40 994 times
Version: all
Category: How-tos

How to have truly multilingual URLs

Created 8 years ago by oligalma, updated 2 years ago by oligalma.

We can easily have a multilingual site if we put a "lang" parameter that comes via GET. For example:

0 0
3 followers
Viewed: 16 825 times
Version: 1.1
Category: How-tos

How to write secure Yii1 applications

Created 12 years ago by François Gannaz, updated 2 years ago by François Gannaz.
  • Validate the user input (see below for details).
  • Protect (escape) your application output according to context (see below for a few output types, mostly HTML and SQL).
  • Test your application in debug mode.
    Set the constant YII_DEBUG to true (by default, it is defined in index.php) and put alongside error_reporting(E_ALL);. Then errors and warnings will stop the execution an...
80 0
114 followers
Viewed: 309 523 times
Version: 1.1
Category: How-tos

Using Apostle.io to send formatted, trackable emails from Yii applications

Created 10 years ago by MikeT, updated 4 years ago by Maurizio Domba Cerin.

Apostle provides a nifty facility for sending app-generated, transactional emails from your application including Wordpress-like mail formatting and full tracking (delivery, opening, clicking etc.) of all emails sent. No need to set up email facilities on your app server!

2 1
2 followers
Viewed: 13 030 times
Version: 1.1
Category: How-tos
Tags: email, mail

MailGun Api Wrapper to send emails

Created 9 years ago by VINAY Kr. SHARMA, updated 4 years ago by Maurizio Domba Cerin.

MailGun.php Class

1 0
2 followers
Viewed: 12 641 times
Version: 1.1
Category: How-tos
Tags: email, mailgun

How to create the custom Drop-down using CHtml::dropDownList

Created 9 years ago by Ankit Modi, updated 5 years ago by samdark.

Hi Friends, This tutorial may be help us create the custom drop-down menu using CHtml::dropDownList

0 0
3 followers
Viewed: 27 119 times
Version: 1.1
Category: How-tos

How to create a Widget - Recent Comments widget

Created 9 years ago by Nisanth thulasi, updated 5 years ago by samdark.

Here's a simple way to create a Recent comments showing widget to be used in your templates. The idea is just to highlighting your blog's new comments.

5 0
6 followers
Viewed: 43 335 times
Version: 1.1
Category: How-tos

Remove Byte Order Mark (BOM) from files recursively

Created 10 years ago by Kostas Apazidis (KonApaz), updated 5 years ago by samdark.

The problem was that all my web applications ran normally on localhost, but on server the Greek characters (or any other no-english characters) displayed with problems.

2 1
7 followers
Viewed: 33 158 times
Version: all
Category: How-tos

How to show Image view after upload and delete view image using eajaxupload extension

Created 9 years ago by Ankit Modi, updated 5 years ago by samdark.

Hi Friends, In this tutorial you can use the eajaxupload-extension ,

0 1
3 followers
Viewed: 60 387 times
Version: 1.1
Category: How-tos

Multiple files uploader with CMultiFileUpload

Created 10 years ago by Interboy, updated 5 years ago by samdark.

Today I will show you how to handle multiple file upload step by step.

5 0
8 followers
Viewed: 281 016 times
Version: 1.1
Category: How-tos

Displaying image in a CGridView column.

Created 11 years ago by sirin k, updated 6 years ago by Maurizio Domba Cerin.

This is a simple example of how we can display images in CGridviews.Imagine that you have an image field in your table ie either a location field or a blob type field used to store the images.

9 1
14 followers
Viewed: 74 579 times
Version: 1.1
Category: How-tos

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

Created 11 years ago by sirin k, updated 6 years ago by Maurizio Domba Cerin.

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.

8 2
11 followers
Viewed: 48 412 times
Version: 1.1
Category: How-tos
Tags: blob, image

i18n All-in-one format and timezone conversions for date, time, timestamp and datetime.

Created 10 years ago by Gerhard Liebenberg, updated 7 years ago by Gerhard Liebenberg.

Countries sometimes change their laws pertaining to time zones and daylight saving times. This means that GMT+2 can be a different local time this August compared to last August! It could even be a different date!

6 0
13 followers
Viewed: 32 762 times
Version: 1.1
Category: How-tos

Using loginRequiredAjaxResponse to solve ajax session timeout

Created 11 years ago by Rutger, updated 7 years ago by Rutger.

This solution requires Yii 1.1.9 or above

12 0
16 followers
Viewed: 36 599 times
Version: 1.1
Category: How-tos

How to "masquerade" a non-required form element as 'required' one (in the view only)

Created 11 years ago by Boaz, updated 7 years ago by mrun.

Consider the following use case:

5 1
6 followers
Viewed: 25 453 times
Version: 1.1
Category: How-tos

Interactive mode command-line command for Yii1

Created 7 years ago by Trejder, updated 7 years ago by Trejder.

For one of my projects I needed an interactive console command in Yii 1, i.e. the one that is gathering all information from user in an interactive mode (a serie of questions and answers displayed directly in the console), ignoring command-line arguments at all.

0 0
1 follower
Viewed: 18 970 times
Version: 1.1
Category: How-tos

How to customize your grid columns visible and order by user themselves

Created 7 years ago by Scott_Huang, updated 7 years ago by Scott_Huang.

The export to excel function will affected by the final resorted columns in case you use my export grid to excel extends hzlexportgrid too, Since that export extention just depends on the grid columns configs, and that columns been customized by user themselves just now.

0 0
1 follower
Viewed: 22 583 times
Version: 1.1
Category: How-tos

"safe" and "unsafe" Model validators (massive assignments)

Created 10 years ago by Kostas Apazidis (KonApaz), updated 7 years ago by brianvu.

Ok, it is a little bit difficult to full understanding the unsafe validator.

2 2
7 followers
Viewed: 36 174 times
Version: 1.1
Category: How-tos

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

Created 10 years ago by toph, updated 7 years ago by toph.

This is a shortcut for adding a text search for multiple values i.e.

0 0
5 followers
Viewed: 53 854 times
Version: 1.1
Category: How-tos

Popup AJAX DialogBox without any extension

Created 10 years ago by Kostas Apazidis (KonApaz), updated 7 years ago by Maurizio Domba Cerin.

In this wiki I explain how to show a default popup dialogbox (like Gii does) using an existing module.

5 1
6 followers
Viewed: 30 371 times
Version: 1.1
Category: How-tos