Wiki

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

Yii2: How to create/develop a new extension using Composer locally without version control or Git

Created 9 months ago by Wade ShulerHow-tos0 comments – viewed 8,064 times – ( +3 / -1 ) – version 2.0
Using a version control system, like Git, is nice. However, when building an extension from scratch and loading it via Composer, it adds a lot of pain in the butt steps. You have to commit your changes, update composer to pull them over, then notice there is an error, fix, commit, update. repeat.. I don't want all my baby steps under Git. Sure, I could edit my commit history, but c'mon. Just let me code! I will put it under version control once I get a baseline created. This guide will show you how to setup your composer.json to load a local directory (everything inside, live). You make a change, save the file, refresh the page, boom.

Adding Bash Command Completion for Yii Commands

Created 4 years ago by Dustin OpreaHow-tos0 comments – viewed 9,625 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 4 years ago by maigretHow-tos0 comments – viewed 7,785 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,316 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 51,014 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 12,323 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 4,758 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 8,109 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 8,433 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 44,410 times – ( +3 / -1 ) – version 1.1
My goal here is to Open bootstrap modal and load ANY content using ajax response.