This is a simple example that will give you a base for designing a database driven menu system that will use CMenu to be rendered.
This is a simple example that will give you a base for designing a database driven menu system that will use CMenu to be rendered.
Hi Friends, Hi Friends, Some common question is difficult to how to create the layout on yii and how to work
I leverage Kartik's notification widgets.
Yii's ActiveRecord classes are powerful, but they fall short when you want to have a configurable table prefix for your application.
Search Models are a very elegant and powerful way to build an Active Data Provider. If you use them a lot, you'll quickly need to use scenarios, which will lead you to a very DRY Controller code.
The giix code generator has out of the box i18n support for model names and attribute labels (besides other cool features > check it out!) .
But I want to factor in not only the plural form, but also the grammatical cases (especially the accusative) while translating 'Manage Objects', 'Create Object', 'Edit Object' etc.
Use this extension : yii2-relation-trait
I was playing around with another PHP framework which I didn't really liked anyway but it had simple and nice integration for PHP built in web server so I decided to write one for Yii (since this is my primary PHP framework)
The most difficult thing in a big project, is to manage conflicts with files modified by others users. Git can do this work for us.
As for complexity SQL query we have two solutions as below, I will discuss #2 in this article.
The purpose of this post is to let anyone quickly find how to accomplish a configuration task, and list here all the posibilities of the config.php file and also link to pages that explain how is each thing implemented.
Lately, i needed to deal with the following scenario: read from two databases (db1,db2), and write to a third database (db3).
pagoda box is very useful tool for a programmer to test their php app online so its very useful one. For deploying code pagodabox use git command
It can happen that you work in development environment and you make changes to database tables structures, adding tables, or changing fields.
namespace app\components;
A simple trick to get the localized version of a model field is to add this little method to your models.
It's well known that there are Lazy Loading approach and Eager Loading approach in the relational query. But it's very important to know how the Eager Loading approach works in Yii 2. It has changed drastically from that of Yii 1.1, and there are common misunderstandings about it in the community.
$this->render('index', array(
'dataProvider' => $dataProvider,
));
`
In this wiki I will show you how to extends an extension and/or how can two or more extensions work together.