Wiki articles

Showing 101-120 of 165 items.

How to organize Design "things" in Yii 2 (themes and layout)

Created 7 years ago by s.oli s.oli, updated 7 years ago by samdark samdark.

Sometimes the App needs a nicer look & feel, so its necessary to organize the assets for this and Yii can help a lot to make it easy. In this article I provide tips for handling multiple "Designs". I use these three features:

1 0
2 followers
Viewed: 31 717 times
Version: 2.0
Category: Tips

Update and Delete buttons on Breadcrumb

Created 7 years ago by Daniel Daniel.

The definition of breadcrumbs according to its documentation is as follow: Breadcrumbs displays a list of links indicating the position of the current page in the whole site hierarchy.

1 0
1 follower
Viewed: 55 425 times
Version: 2.0
Category: Tips

Integrating ZF2 into Yii - use case demonstrated

Created 12 years ago by Boaz Boaz, updated 11 years ago by Boaz 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 609 times
Version: 2.0
Category: How-tos

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

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

This is as an extension of this wiki by Kartik V which shows to make different enableAutoLogin cookies for frontend and backend.

3 0
7 followers
Viewed: 47 142 times
Version: 2.0
Category: How-tos

Debuging variables in Yii2

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

This tutorial is explained following "basic" application structure.

4 1
8 followers
Viewed: 45 942 times
Version: 2.0
Category: Tips

Use kartik Growl with Yii2 flash messages

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

This is to show you how to use Yii2 flash messages with Kartik Growl (bootstrap notify wrapper).

8 0
11 followers
Viewed: 51 361 times
Version: 2.0
Category: How-tos

Remove Byte Order Mark (BOM) from files recursively

Created 12 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz), updated 6 years ago by samdark samdark.

The problem was that all my web applications ran normally on localhost, but on server the Greek characters (or any other no-english characters) displayed with problems.

2 1
7 followers
Viewed: 36 159 times
Version: all
Category: How-tos

Yii2: How to create/develop a new extension using Composer locally without version control or Git

Created 9 years ago by Wade Shuler Wade Shuler, updated 6 years ago by jwerner jwerner.

Using a version control system, like Git, is nice. However, when building an extension from scratch and loading it via Composer, it adds a lot of pain in the butt steps. You have to commit your changes, update composer to pull them over, then notice there is an error, fix, commit, update. repeat.. I don't want all my baby steps under Git. Sure, I could edit my commit history, but c'mon. Just let m...

7 0
6 followers
Viewed: 40 078 times
Version: 2.0
Category: How-tos
10 0
15 followers
Viewed: 46 725 times
Version: all
Category: Others

How to make UrlManager createAbsoluteUrl work with sub-domains

Created 8 years ago by Wade Shuler Wade Shuler, updated 7 years ago by CeBe CeBe.

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.

1 0
3 followers
Viewed: 41 349 times
Version: 2.0
Category: How-tos

How to send emails using SMTP

Created 11 years ago by robregonm robregonm, updated 6 years ago by Wade Shuler Wade Shuler.
6 0
11 followers
Viewed: 143 662 times
Version: 2.0
Category: How-tos

Yii2 default values for Index data Provider

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

Guys,

2 0
5 followers
Viewed: 33 243 times
Version: 2.0
Category: Tips

FORM with GET method causes repeated stacking of URL Parameters

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

// In Yii 1.x $form = $this->beginWidget('CActiveForm', [

'id' => 'order-search-form',
'method' => 'get',

]); echo $form->textInput($searchModel, 'id'); echo CHtml::submitButton('Find', ['class' => 'btn btn-primary']); $this->endWidget(); `

7 2
41 followers
Viewed: 65 215 times
Version: all
Category: Tips

Displaying uploaded file from DB for update with FileInput widget

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

This is for folks who are using \kartik\widgets\FileInput to upload files from your client. How do you display an image for update after you have uploaded it to the server using the widget?

2 3
43 followers
Viewed: 65 326 times
Version: 2.0
Category: How-tos

When to use Active Record

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

When to use Active Record is a common question among developers, Yii and overall.

13 0
4 followers
Viewed: 54 875 times
Version: all
Category: FAQs

How to use imagine ( crop, thumb, effects for images ) on Yii2

Created 11 years ago by Anas AbuDayah Anas AbuDayah, updated 9 years ago by Cozumel Cozumel.

Imagine adds most common image functions and also acts as a wrapper to Imagine image manipulation library.

5 0
14 followers
Viewed: 102 875 times
Version: 2.0
Category: Tutorials

Use minified version of JqueryAsset, BootstrapAsset (and all default assets)

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

By default, Yii 2.0 chooses to use the non-minified version of Jquery and Bootstrap files (CSS and JS). However, there's a simple way to indicate Yii to use the minified version.

9 0
6 followers
Viewed: 37 170 times
Version: 2.0
Category: How-tos

How to add a DropDown Language Picker (i18n) to the Menu

Created a year ago by JQL JQL, updated a year ago by JQL JQL.

Yii comes with internationalisation (i18n) "out of the box". There are instructions in the manual as to how to configure Yii to use i18n, but little information all in one place on how to fully integrate it into the bootstrap menu. This document attempts to remedy that.

1 0
1 follower
Viewed: 91 682 times
Version: 2.0
Category: How-tos

How to install Yii 2 advanced on a shared hosting environment

Created 10 years ago by oligalma oligalma, updated 6 years ago by oligalma oligalma.

I've read many comments that it's not possible to install Yii 2 advanced on a shared hosting environment, as it has two webroots. This is partially true.

3 0
2 followers
Viewed: 37 825 times
Version: 2.0
Category: How-tos

How to make bootstrap tabs remain active/selected after navigating to different web pages.

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

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.

1 0
3 followers
Viewed: 23 115 times
Version: 2.0
Category: Tutorials