Wiki

Articles in category "how-tos", sorted by ratingX
Displaying 221-230 of 355 result(s).

How to install Yii 2 advanced on a shared hosting environment

Created 2 years ago by oligalmaHow-tos1 comment – viewed 16,281 times – ( +3 / -1 ) – version 2.0
I've read many comments that it's not possible to install Yii 2 advanced on a shared hosting environment, as it has two webroots. This is partially true.

Adding Bash Command Completion for Yii Commands

Created 5 years ago by Dustin OpreaHow-tos0 comments – viewed 10,097 times – ( +3 / -1 ) – version 1.1
This article discusses the installation/configuration of the YiiBash project (https://github.com/dsoprea/YiiBash).

Alternative wildcard characters CDbCriteria

Created 5 years ago by maigretHow-tos0 comments – viewed 8,151 times – ( +3 / -1 ) – version 1.1
In SQL, wildcard characters can be used in "LIKE" expressions; the percent sign (%) matches zero or more characters, and underscore (_) a single character. Sometimes users are not familiar with these or they are using different ones like (*) and (+) similar to regular expressions. My colleages do so and then i decided to add this feature by extending CbCriteria. Especially adding a new parameter $wildcard_chars to the method addSearchCondition to replace them if needed with standard SQL characters:

How to create Module based Login

Created 3 years ago by Ibrar TuriHow-tos1 comment – viewed 13,965 times – ( +3 / -1 ) – version 1.1
Lets say we have 3 modules (customer, user, admin) in an application and we need, separate logins for each module.

Upload image and content using AJAX and Store it in different table

Created 3 years ago by Selvakumar KaliyappanHow-tos1 comment – viewed 53,381 times – ( +3 / -1 ) – version 1.1
We all know how to upload the content and images at the same time with refreshing the page. And uploading the images using Ajax we have faced some issues, here i have fixed the issues and both content and photos are uploaded using Ajax. And both content and images are stored in the different tables

How to customize error handling in console-mode applications

Created 6 years ago by Steve FriedlHow-tos1 comment – viewed 13,213 times – ( +3 / -1 ) – version 1.1
One can control the detail of a web application in the webroot/index.php file by manipulating the values of YII_DEBUG and YII_TRACE_LEVEL, but these don't appear to be used by console applications. This is because although the base CApplication class defines a displayError() method that does consider these variable, CConsoleApplication overrides it with a function that doesn't honor them.

How to limit number of guest page views

Created 3 years ago by PeRoChAkHow-tos1 comment – viewed 5,118 times – ( +3 / -1 ) – version 1.1
In some cases, we have to limit the number of page views for the guests users. Yii provide an efficient method to get this.

How to use BootstrapInterface

Created 3 years ago by Antonio RamirezHow-tos0 comments – viewed 9,227 times – ( +3 / -1 ) – version 2.0
Yii2 introduces the BootstrapInterface to ease our application initialization tasks, whether they are composer based or Application bootstrap (do not mistaken with Bootstrap CSS Framework) based tasks. On this article, I am going to explain how to use it on your Application bootstrap process.

Cómo enviar emails usando SMTP

Created 3 years ago by robregonmHow-tos0 comments – viewed 9,849 times – ( +3 / -1 ) – version 2.0
Seguir a @robregonm

Open bootstrap modal and load content via Ajax

Created 3 years ago by JbalTeroHow-tos1 comment – viewed 46,853 times – ( +3 / -1 ) – version 1.1
My goal here is to Open bootstrap modal and load ANY content using ajax response.