Wiki articles

Showing 141-160 of 165 items.

How to use BootstrapInterface

Created 11 years ago by Antonio Ramirez, updated 11 years ago by Antonio Ramirez.

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 y...

2 0
3 followers
Viewed: 21 072 times
Version: 2.0
Category: How-tos

Tunneling using SSH in a limited enviroment

Created 11 years ago by nineinchnick, updated 11 years ago by CeBe.

This tutorial describes how to connect to a remote service via tunnel when only most basic software is available on the remote server. It is not directly related to Yii. It could be hovewer useful for web developers working with shared hosting sites with limited access.

1 0
3 followers
Viewed: 21 008 times
Version: all
Category: Others

Single PHP entry point with Nginx

Created 10 years ago by MadAnd, updated 10 years ago by MadAnd.

In this article I will show you how to slightly increase application security, by exploiting the fact that Yii implements the Front Controller Pattern.

4 0
3 followers
Viewed: 19 773 times
Version: all
Category: How-tos

YII2 Pagination Options

Created 10 years ago by VivekYii, updated 10 years ago by VivekYii.

solution here If we are using default pagination option like

1 0
1 follower
Viewed: 19 512 times
Version: 2.0
Category: Tips

Auto-update denormalized attributes with MongoDb and Yii2

Created 11 years ago by edoardo849, updated 11 years ago by CeBe.

You have different collections in MongoDb with de-normalized attributes. As you may know, due to its not-join nature, MongoDb tends to encourage repetition of the same value in different collections (de-normalization). In this MongoDb is opposed to a more SQL-like approach where you usually reference only the ID of the value with a foreign key.

1 0
3 followers
Viewed: 19 428 times
Version: 2.0
Category: Tips

Load & Save With Relation

Created 10 years ago by moo.tensai, updated 10 years ago by moo.tensai.

Use this extension : yii2-relation-trait

1 0
2 followers
Viewed: 19 191 times
Version: 2.0
Category: Tips

Yii2cdn Component

Created 9 years ago by junaidatari, updated 9 years ago by junaidatari.

A Yii Framework 2 component for using assets in different environments (Local/CDNs)

0 0
2 followers
Viewed: 18 932 times
Version: 2.0
Category: How-tos
Tags: assets, CDN, yii2

Locking your Yii 2 project package versions with composer.lock

Created 11 years ago by Kartik V, updated 11 years ago by Kartik V.

Ok, you have installed a Yii 2 basic or advanced app for the first time and completed the post install steps. You have picked up a few extensions to install for the first time as well. You would already see a composer.lock file in your application root folder.

0 2
37 followers
Viewed: 18 298 times
Version: 2.0
Category: Tips

Use non Gmail/Gsuite on Gcloud projects

Created 7 years ago by Luis Armando, updated 6 years ago by Maurizio Domba Cerin.

Small companies and startups use cheap email services or even Cpanel's mail services which are less secure and compete directly with bigger email providers like Microsoft with Outlook and Google with Gmail. This creates a problem when you try to use their services to send/receive emails from this cheap services. <img width="750" src="https://static.techspot.com/fileshost/newspics3/2017/google-clo...

0 0
3 followers
Viewed: 18 080 times
Version: 2.0
Category: How-tos

Simple Google Maps object for use with ajax maps

Created 9 years ago by Chris Backhouse, updated 9 years ago by Chris Backhouse.

The Google mapping extension by Dos Amigos (link) is really great but there are difficulties with Google maps when you want to manipulate your map object with Ajax.

0 0
3 followers
Viewed: 17 811 times
Version: 2.0
Category: How-tos

Language Selector

Created 9 years ago by Programmer Thailand, updated 9 years ago by Programmer Thailand.

common\components\LanguageSelector.php

<?php
namespace common\components;

2 0
6 followers
Viewed: 17 793 times
Version: 2.0
Category: Tutorials

Customize your Growl/Alert msg easy and quickly

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

I leverage Kartik's notification widgets.

0 1
2 followers
Viewed: 17 299 times
Version: 2.0
Category: Tips

A universal model attribute for its synthetic representation

Created 8 years ago by Alexandre Rodichevski, updated 8 years ago by Alexandre Rodichevski.

It is convenient to use the same identification attribute, say info, in all of the active records of your application. It should be a virtual read-only attribute defined by a getter method, its label being the model name.

0 0
3 followers
Viewed: 16 131 times
Version: 2.0
Category: Tips

Move sources to src

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

Yii 3 and many Yii 2 package sources are contained within src directory which is convenient since you have less directories to check.

11 0
5 followers
Viewed: 15 911 times
Version: 2.0
Category: How-tos

Using Nginx and Apache2 in separate distributed servers (ie, Amazon EC2 instances)

Created 12 years ago by Luis Lobo Borobia, updated 8 years ago by Luis Lobo Borobia.

We are running one frontend running NGINX and several app servers running Apache2. There are several issues we have come across but right now I'll be documenting one of them. I'll be completing this article when I get more time.

2 0
2 followers
Viewed: 15 728 times
Version: all
Category: Tips

Integrating ZF2 into Yii - use case demonstrated

Created 12 years ago by Boaz, updated 11 years ago by Boaz.

I needed to use a class from ZF2 in my Yii project. I've read probably all there is about this subject and still I needed lots of trial & errors to get it working, probably due to my lack of experience working with namepsaces and ZF2 in general. Also, the resources on the web are all partial, at best. Most simply refer to ZF1 where things are technically different. When I got it all working I de...

4 0
6 followers
Viewed: 15 007 times
Version: 2.0
Category: How-tos

A simple widget - jump2link

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

namespace app\components;

0 0
1 follower
Viewed: 14 336 times
Version: 2.0
Category: Tutorials

Automatically get the SVN Revision Number of your Project

Created 11 years ago by jcagentzero, updated 11 years ago by jcagentzero.

When you are handling so many projects and those projects are saved in different repository locations, you may find it very difficult to keep track all the versions and revisions manually and it will be much harder if you are developing in multiple repository branches.

3 0
4 followers
Viewed: 14 332 times
Version: all
Category: Tutorials

MongoDB's RBAC support class extending BaseManager

Created 10 years ago by edoardo849, updated 10 years ago by edoardo849.

Here's a possible implementation for MongoDb of the RBAC standard. Create a class "MongoDbManager" in `common\components and modify your params.php` file like this:

0 0
4 followers
Viewed: 14 328 times
Version: 2.0
Category: How-tos
Tags: mongodb, rbac, yii2

embedded javascript block in your view with IDE checking or intellisense

Created 10 years ago by yiqing95, updated 10 years ago by yiqing95.

this is my way for embed js code block in view file:

2 0
3 followers
Viewed: 14 294 times
Version: 2.0
Category: Tips