If you're using a lot of bower and npm assets with Yii 2.0 you might encounter long running composer update
tasks.
If you're using a lot of bower and npm assets with Yii 2.0 you might encounter long running composer update
tasks.
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.
Welcome, all of you !
Bootstrap tabs gets unselected/inactive when user navigates to other page and comes back. How to make bootstrap tabs remain active/selected after navigating to different web pages.
Following is the table structure
CREATE TABLE IF NOT EXISTS `tblgroups` (
`id` int(11) NOT NULL,
`groupname` varchar(150) NOT NULL,
`status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1=Acitve,2=Inactive',
`date` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
I have been working on a REST API using the excellent tools provided by Yii2. My problem was that I have to differentiate between empty values and null values. In other words, <elem></elem>
is different from null as it represents an empty string. Also, although some use <elem/>
to represent a null value it should still be interpreted as an empty string. In other cases, the absence of the eleme...
Here's a quick tip to dump the SQL for query.
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.
This tutorial shows you how to safely remove records between relationships.
This is wiki page is useful if you are trying to build a customized REST API in Yii2.0
This is a simple example in Yii2.0 to understand how you can write a custom component and use it inside your app.(basic template)
We all need SEO friendly URLs for our projects. its not always good to call route with params so we can generalise it for all models using a common function.
I have read http://www.yiiframework.com/wiki/24/creating-a-dependent-dropdown/ (Dependen Dropdown Yii1), but I can't implement it in Yii2 because Yii2 does not have built-in AJAX functionality hem.. I searched about it and came across this post
Step 1: Initialize the Bootstrap Tooltip & Popover plugins in your view layout file @web\views\layouts\main.php
. Add this to somewhere in the beginning head section (after you have loaded the Jquery using your AppAsset or something similar).
Assume we have many categories and many posts.
Upon creating my Yii2 Members System, I have ran into a few snags along the way that forced me to extend and bend Yii2 to my will.
With the adoption of PJax on Yii2 things have change quite a bit with GridView when it comes to work with them in AJAX mode. It will probably be confusing at the beginning, but then you will soon realize how powerful the new approach is.
There are some very advanced grids in the Yii2 community, specifically Kartik's amazing gridview extensions but they all designed for interactive screen use.
There are a few issues with the other solutions I originally used that I found from other wikis. I address the issues I had in this much simpler and shorter way. I am also going to explain what is going into way more detail than others to help people understand what's going on.
The official Yii project site now supports OpenSearch. This means you can customize your browser's search box to enable direct search of the content in yiiframework.com. For example, by entering a Yii class name in the browser's search box, the corresponding class API page will be shown in the browser.