Wiki

Articles tagged with "yii2", sorted by date (updated)X
Displaying 31-40 of 78 result(s).

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

Updated 3 years ago by yiimHow-tos15 comments – viewed 88,910 times – ( +19 / -1 ) – 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 2 list of path aliases available with default basic and advanced app.

Updated 3 years ago by Kartik VTips3 comments – viewed 106,811 times – ( +53 / -6 ) – version 2.0
If you are coming over from Yii 1.x to Yii 2, and already read this guide, you may note that namespaces are very important in Yii 2 to identify classes. But do you know the list of seeded path aliases that come shipped with a basic or advanced app? Here is my attempt to list them.

Tutorial about How to Integrate Yii2 with fantastic theme AdminLTE

Updated 3 years ago by YiiJekaHow-tos9 comments – viewed 94,936 times – ( +16 / -2 ) – version 2.0
Yii2 comes with a charming twitter bootstrap version 3. But if it is less, then you can integrate with web templates that you like. One example is wonderfull template "adminLTE"
tags: yii2, theme, adminLTE

Moving the vendor directory for multiple projects

Updated 3 years ago by mariosimaremareHow-tos2 comments – viewed 15,227 times – ( +5 / -2 ) – version 2.0
This How-To is useful if you are planning to move the Yii vendor directory outside the default location.

Pjax on ActiveForm and GridView - Yii2

Updated 3 years ago by SreenadhHow-tos6 comments – viewed 96,071 times – ( +13 / -1 ) – version 2.0
Here is a example on how to use Pjax with GridView (yii\grid\GridView) and ActiveForm (yii\widgets\ActiveForm) widgets in Yii2.

Yii2: Configuring different sessions for backend and frontend in Yii Advanced Application Template

Updated 3 years ago by hrnairHow-tos2 comments – viewed 27,029 times – ( +7 / -1 ) – version 2.0
This is as an extension of this wiki by Kartik V which shows to make different enableAutoLogin cookies for frontend and backend.

Easy way to redirect http:\\localhost\yii2-basic to http:\\localhost\yii2-basic\web\index.php

Updated 3 years ago by Scott_HuangTips0 comments – viewed 18,819 times – ( +3 / -4 ) – version 2.0
First of all, install yii2 basic template according below link:

Upload files in Yii2 with MongoDb and GridFs

Updated 3 years ago by skwordenHow-tos3 comments – viewed 20,101 times – ( +8 / -1 ) – version 2.0
Uploading files in a webapp can be extremely tricky and sometimes the quickest way to do it is to store the file directly in the webserver or into a DNS (like Amazon S3) and then to save the link and the metadata inside a table in the DB. The thing is that you'll have to deal with file permissions, server storage, file management and so on (which is perfectly fine, by the way).

Simple Way to Upload and Save File

Updated 3 years ago by Misbahul D MunirTutorials0 comments – viewed 22,191 times – ( -3 ) – version 2.0
This tutorial need extension mdmsoft/yii2-upload-file. Follow the intruction to install. After installation done, create controller and action

Yii 2.0: Write & use a custom Component in Yii2.0 (Advanced Template)

Updated 3 years ago by Deepak PradhanHow-tos1 comment – viewed 28,752 times – ( -1 ) – version 2.0
This is an extension to Yii 2.0: Write & use a custom Component in Yii2.0 for Advanced Template