Wiki articles

Showing 101-120 of 166 items.

Key web server settings after installing a fresh Yii 2 basic or advanced app

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

So, you have installed a brand new Yii 2 app (basic) or (advanced). Here are a few tips for Apache web server users to get things running more secure and better with your yii2 app.

3 0
46 followers
Viewed: 33 806 times
Version: 2.0
Category: Tips

Profiling using XDebug

Created 12 years ago by le_top le_top, updated 10 years ago by le_top le_top.

A short explication on how to extract profile information for PHP on your server using XDebug and KCacheGrind or WinCacheGrind.

3 0
3 followers
Viewed: 25 425 times
Version: all
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: 48 055 times
Version: 2.0
Category: How-tos

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: 66 507 times
Version: all
Category: Tips

Running applications with Docker

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

When building PHP web applications you usually have to take care about defining and providing a consistent development and production environment for your team. This includes your application packages, PHP-extensions, database servers and often further components such as a mail server or workers.

4 0
8 followers
Viewed: 54 002 times
Version: 2.0
Category: Tutorials

How to Create and Use Validator Using Regular expressions

Created 3 years ago by aayushmhu aayushmhu.

There are Multiple Ways to Create a Validator But here we use Regular Expression or JavaScript Regular Expression or RegExp for Creation Validators. In this article, we will see the most Frequently Used Expression

4 0
1 follower
Viewed: 135 547 times
Version: 2.0
Category: How-tos

yii2-app-advanced on single domain (Apache, Nginx)

Created 10 years ago by MadAnd MadAnd, updated 4 years ago by QuPsi QuPsi.

If you develop rather complex applications with Yii2, you might already be familiar with yii2-app-advanced application template. Well, the template is awesome and provides high flexibility regarding code/configuration sharing among parts of an application.

4 0
14 followers
Viewed: 155 626 times
Version: 2.0
Category: How-tos

Single PHP entry point with Nginx

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

In this article I will show you how to slightly increase application security, by exploiting the fact that Yii implements the Front Controller Pattern.

4 0
3 followers
Viewed: 21 554 times
Version: all
Category: How-tos

Optimize Scenarios for yii2

Created 9 years ago by AndroideLP AndroideLP, updated 6 years ago by AndroideLP AndroideLP.

Working with scenarios, with models that can receive many modifications in their rules or structures as development evolves, can create disruptions in the rescue process.

4 0
2 followers
Viewed: 48 087 times
Version: 2.0
Category: Tutorials

MongoDb's embedded documents mapping for ActiveRecord in Yii2

Created 11 years ago by edoardo849 edoardo849, updated 11 years ago by CeBe CeBe.

suppose to have in Mongo a collection "user" like:

4 0
7 followers
Viewed: 31 809 times
Version: 2.0
Category: How-tos

Configuring different sessions for backend and frontend in Yii advanced app

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

Your need: You require that for shared machines, the user is authenticated again for a backend access again, if someone is logged in from frontend and vice versa.

4 0
46 followers
Viewed: 53 150 times
Version: 2.0
Category: How-tos

Relational data fields display and edit with the yii2-detail-view extension

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

If you have read this wiki you would be aware of the yii2-detail-view extension and how it offers you an easy way to EDIT and VIEW your model data, toggle these modes, and other features. You can [read the extension documentation](http://demos....

4 0
41 followers
Viewed: 67 582 times
Version: 2.0
Category: Tutorials

Building a REST API in Yii2.0

Created 11 years ago by sirin k sirin k, updated 8 years ago by Maurizio Domba Cerin Maurizio Domba Cerin.

This is wiki page is useful if you are trying to build a customized REST API in Yii2.0

4 0
16 followers
Viewed: 154 851 times
Version: 2.0
Category: Tutorials

Create Form With DynamicModel

Created 11 years ago by Misbahul D Munir Misbahul D Munir, updated 11 years ago by Misbahul D Munir Misbahul D Munir.

In yii2 we can create form without create FormModel. Here we go

4 0
8 followers
Viewed: 52 049 times
Version: 2.0
Category: Tips
Tags: form, model, yii2

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: 16 102 times
Version: 2.0
Category: How-tos
4 0
3 followers
Viewed: 112 320 times
Version: 2.0
Category: Tutorials

Using multiple models in an identity

Created 7 years ago by samdark samdark, updated a year ago by Néstor Acevedo Néstor Acevedo.

Let's assume we have two models: Customer and Supplier and we want both to log in. Yii is quite flexible when it comes to authentication and authorization so it's possible.

9 2
5 followers
Viewed: 41 012 times
Version: 2.0
Category: How-tos

Api of Multiple File Uploading in Yii2

Created 5 years ago by fezzymalek fezzymalek, updated 3 years ago by fezzymalek fezzymalek.

After getting lot's of error and don't know how to perform multiple images api in yii2 finally I get it today

5 0
4 followers
Viewed: 72 768 times
Version: 2.0
Category: Tutorials

Simple way to implement Dynamic Tabular Inputs

Created 10 years ago by ezekielnoob ezekielnoob, updated 7 years ago by samdark samdark.

grid

5 0
10 followers
Viewed: 88 560 times
Version: 2.0
Category: Tutorials

Simple revealing and hiding the password in the password field

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

There are numerous usability problems:

5 0
4 followers
Viewed: 33 198 times
Version: 2.0
Category: How-tos