Showing 1-20 of 39 items.

RBAC Super Simple with Admin and User

Created 11 years ago by evercode evercode, updated 11 years ago by evercode evercode. 13 comments

One of the common requests I see in the forum is how to implement RBAC. While you can implement Yii 2's built-in RBAC, that might be too much for developers who are just starting with Yii 2 or have simpler needs. Sometimes you are looking for a fast solution and just want two flavors, user and admin. And even if you will eventually need more, you can use these methods as a starting point for devel...

9 1
15
Viewed: 111 283 times
Version: 2.0
Category: Tutorials

Starting with YII 1.1.x in Windows Environment (WAMP)

Created 12 years ago by Rajith R Rajith R, updated 12 years ago by Rajith R Rajith R. 0 comments

As we know YII is the Leading Framework of PHP. Lots of new developers are starting to use YII day by day. Most of the beginners are little bit confused with how to start with YII . I think this note will help them. Follow the simple steps To run a Yii-powered Web application, you need a Web server that supports PHP 5.1.0.

3 0
5
Viewed: 49 479 times
Version: 1.1
Category: Tutorials

Overcoming removal of client helpers (e.g. ajaxLink) and ClientScript in Yii 2.0

Created 12 years ago by Kartik V Kartik V, updated 12 years ago by Kartik V Kartik V. 2 comments

Alternatively, inline assets (JS/CSS) can be registered at runtime from within the View. For example you can clearly simulate the ajaxLink feature using a inline javascript. Its however recommended if you can merge where possible, client code (JS/CSS) into separate JS/CSS files and loaded through the AssetBundle. Note there is no more need of a CClientScript anymore:

1 2
41
Viewed: 49 112 times
Version: 2.0
Category: FAQs

What to do when composer fails to update your vendor packages?

Created 12 years ago by Kartik V Kartik V, updated 12 years ago by Kartik V Kartik V. 0 comments
  • Running a composer update does not fetch any new packages (even though the source is updated)
  • A specific vendor package never gets updated
  • Facing on and off problems when fetching packages while performing composer update.
  • You ran a composer update earlier, but it was partially done, before you lost network connectivity, and you cannot refresh packages anymore.
0 4
36
Viewed: 57 093 times
Version: 2.0
Category: Tutorials

YII SaaS Multi Tenant application with single database

Created 13 years ago by Rajith R Rajith R, updated 12 years ago by xJose xJose. 5 comments

Lots of people are asking how to solve it with YII,We think its difficult with YII. But its easy to solve . There is no database triggers needed . we can simply sove it by extending a class(say "RActiveRecord") from CActiveRecord .Then extend all our model classes from that class.

6 1
14
Viewed: 33 221 times
Version: 1.1
Category: Tutorials

Yiinitializr: The Library

Created 13 years ago by Antonio Ramirez Antonio Ramirez, updated 13 years ago by Antonio Ramirez Antonio Ramirez. 9 comments

Yiinitializr\Helpers\Initializer::create('./../', 'frontend', array(

// will override frontend configuration file
__DIR__ .'/../../common/config/main.php', // merged with
__DIR__ .'/../../common/config/env.php', // merged with
__DIR__ .'/../../common/config/local.php' // merged with

))->run(); `

Yiinitializr\Cli namespace

This namespace brings utilities to interact with...

14 0
23
Viewed: 30 116 times
Version: 1.1
Category: Others