Wiki

Articles in category "how-tos", sorted by commentsX
Displaying 21-30 of 350 result(s).

AngularJS Frontend:Connecting it with a Yii Backend REST API.Gallery Manager Demo Application.

Created 3 years ago by drumaddictHow-tos15 comments – viewed 73,866 times – ( +21 ) – version 1.1
AngularJS Frontend:Connecting it with a Yii Backend REST API.Gallery Manager Demo Application.

How to use PHPExcel external library with Yii

Created 5 years ago by Antonio RamirezHow-tos14 comments – viewed 87,740 times – ( +30 / -1 ) – version 1.1
Trying to learn and help some other programmers to find their solutions on the Yii Forum (I think is a superb way to learn the framework), I was facing one challenge with an external library that a fellow programmer wanted to use -quite good indeed: PHPExcel. And what is PHPExcel?

How to use a Widget as an Action Provider

Created 5 years ago by Antonio RamirezHow-tos14 comments – viewed 39,476 times – ( +27 ) – version 1.1
As written on the API docs: An Action Provider Widget is a widget that has declared several actions by using its 'public static function actions()'. After, a Controller can easily import all its declared actions on its 'public function actions()'.
tags: Widgets, CAction

Searching and Sorting by Count of Related Items in CGridView

Created 4 years ago by softarkHow-tos13 comments – viewed 40,733 times – ( +31 ) – version 1.1
Let's say we have two models and relation between them:

Increasing AR performance in connections with Oracle

Created 5 years ago by TrejderHow-tos13 comments – viewed 22,404 times – ( +2 ) – version 1.1
Please, note. This article is entirely based on a work done by me colleague developer, who hasn't got account on this webpage and also hasn't got time for writing this article. I'm writing it for him. I will try to forward him any comments that may appear, but can't assure if/when he'll be able to answer. I'm far, far less experienced in Oracle therefore I won't probably be able to help myself.

Create your own Validation Rule

Created 5 years ago by nickcvHow-tos13 comments – viewed 175,550 times – ( +76 / -3 ) – version 1.1
Some times the core validation rules provided by Yii won't satisfy all your needs, so you'll need to create your very own validation rule.

Actions code reuse with CAction

Created 5 years ago by Antonio RamirezHow-tos13 comments – viewed 38,683 times – ( +36 ) – version 1.1
We all know how good 'gii' automates the code for us and we normally tend to be happy with what that tool offers at the beginning of our Yii learning curve. But as soon as you start working in larger and larger projects, you realize that its code is too repetitive to maintain and having a small pitfall in general actions means to go over and over through them to fix the issues.
tags: CAction, Tutorial

How to hide /frontend/web in url addresses on apache

Created about a year ago by raminiousHow-tos13 comments – viewed 61,013 times – ( +15 ) – version 2.0
There is an issue on Yii2 to redirecting / urls to /frontend/web. In other words we need a way to hidden /frontend/web from addresses. We will do this without changing Apache configuration and creating virtual host or setting document root (It's good for share hostings that we have not access to apache.conf)

Yii User and Rights Implementation

Created 2 years ago by Rajith RHow-tos12 comments – viewed 25,028 times – ( +7 / -7 ) – version 1.1
implementing some features of yii user and rights.

URL management for Websites with secure and nonsecure pages

Created 3 years ago by qiangHow-tos12 comments – viewed 30,818 times – ( +29 ) – version 1.1
In this article, I will describe how to manage URLs for a Website that has both secure and nonsecure content.
tags: URL