Wiki

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

How-To: Create Token Authenticated Web Services

Created 3 years ago by hemcHow-tos1 comment – viewed 25,527 times – ( +8 / -1 ) – version 1.1
This article is about implementing authentication to Yii based web services.

Upload files in Yii2 with MongoDb and GridFs

Created 3 years ago by edoardo849How-tos3 comments – viewed 19,295 times – ( +8 / -1 ) – version 2.0
Uploading files in a webapp can be extremely tricky and sometimes the quickest way to do it is to store the file directly in the webserver or into a DNS (like Amazon S3) and then to save the link and the metadata inside a table in the DB. The thing is that you'll have to deal with file permissions, server storage, file management and so on (which is perfectly fine, by the way).

Integrating Wordpress and Yii,Working Out The Details.

Created 5 years ago by drumaddictHow-tos4 comments – viewed 24,462 times – ( +8 / -1 ) – version 1.1
This article is based on fr0d0z's article Integrating Wordpress and Yii: still another approach, using Yii as the router/controller and provides more details on how to set up this integration.To be more specific,the idea is not to use any main.php layout in Yii's controllers.This gives the advantage that we do not need to modify any Yii code when we switch a theme in WordPress admin panel,provided we have done a very basic setup which I explain below.
tags: wordpress

More security in your applications with Yii and PHPIDS

Created 6 years ago by Rafael GarciaHow-tos1 comment – viewed 14,544 times – ( +8 / -1 ) – version 1.1
PHPIDS is a well known project that can be found in php-ids.org.
tags: phpids, security

How to send emails using SMTP

Created 3 years ago by robregonmHow-tos2 comments – viewed 60,856 times – ( +8 / -1 ) – version 2.0
Follow @robregonm
tags: yii2, email, mail, mailer, smtp

Update CGridview row separately using ajax request

Created 3 years ago by Kostas Apazidis (KonApaz)How-tos10 comments – viewed 16,524 times – ( +8 / -1 ) – version 1.1
There are cases you want to update a record on CGridview directly

Turn Web HTML Into Newsletter

Created 4 years ago by yasenHow-tos1 comment – viewed 11,747 times – ( +8 / -1 ) – version 1.1
These newsletters have always been hard to create as regular web HTML is not properly read by web email interfaces and email clients. I thought that the simplest solution would be to use a web page that would serve as a web version of the newsletter and turn it somehow into newsletter HTML.

Creating a Dependent Dropdown From Scratch in Yii2

Created 3 years ago by ThePr0f3550rHow-tos4 comments – viewed 73,262 times – ( +8 / -1 ) – version 2.0
I have read http://www.yiiframework.com/wiki/24/creating-a-dependent-dropdown/ (Dependen Dropdown Yii1), but I cant implementation in Yii2 because Yii2 not built-in AJAX functionality hem.. I am search about it and get this statement

CGridView. Add custom class to table rows preserving original „odd“ and „even“

Created 4 years ago by Maug LeeHow-tos2 comments – viewed 39,817 times – ( +8 / -1 ) – version 1.1
Lets say we have such a CGridView widget showing a list of users for administrator. Users have status „active“ or „disabled“. Grid widget puts class „odd“ or „even“ to rows and we want to preserve this. So we want to add a class „disabled“ to rows with disabled users.

How to write a simple application component

Created 6 years ago by zaccariaHow-tos5 comments – viewed 58,169 times – ( +20 / -8 ) – version 1.1
An application component is a confortable way for share information among all component of the application