Wiki articles tagged with "yii2"

Showing 21-40 of 85 items.

How To: Custom Client Validation On Checkbox Toggle and Optional Input Field

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

I just chased my tail around for a bit today. I got lost with setting the status of all inputs, and banging my head on why the "validate" function just wasn't working.

0 0
1 follower
Viewed: 27 839 times
Version: 2.0
Category: How-tos

Yii2 RESTful API with OAuth 2.0

Created 8 years ago by sirin k sirin k, updated 7 years ago by sirin k sirin k.

https://cdn.pbrd.co/images/GMN5ROs.jpg

3 0
3 followers
Viewed: 75 454 times
Version: 2.0
Category: Tutorials

Events registration examples

Created 6 years ago by minitia minitia, updated 6 years ago by minitia minitia.

Register an event handler at Object-Level

2 0
2 followers
Viewed: 65 986 times
Version: 2.0
Category: How-tos
Tags: events, yii2

How to add Schema.org markup to Yii2 pages

Created 5 years ago by Gabriel A. L贸pez L贸pez Gabriel A. L贸pez L贸pez, updated 5 years ago by Gabriel A. L贸pez L贸pez Gabriel A. L贸pez L贸pez.

https://schema.org is a markup system that allows to embed structured data on their web pages for use by search engines and other applications. Let's see how to add Schema.org to our pages on Yii2 based websites using JSON-LD.

3 0
3 followers
Viewed: 95 468 times
Version: 2.0
Category: How-tos

How to redirect all emails to one inbox on Yii2 applications

Created 5 years ago by Gabriel A. L贸pez L贸pez Gabriel A. L贸pez L贸pez.

\yii\mail\BaseMailer::useFileTransport is a great tool. If you activate it, all emails sent trough this mailer will be saved (by default) on @runtime/mail instead of being sent, allowing the devs to inspect thre result.

6 0
4 followers
Viewed: 129 632 times
Version: 2.0
Category: How-tos
5 0
4 followers
Viewed: 64 724 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

MongoDB's RBAC support class extending BaseManager

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

Here's a possible implementation for MongoDb of the RBAC standard. Create a class "MongoDbManager" in `common\components and modify your params.php` file like this:

0 0
4 followers
Viewed: 15 178 times
Version: 2.0
Category: How-tos
Tags: mongodb, rbac, yii2
0 0
5 followers
Viewed: 49 270 times
Version: 2.0
Category: How-tos

YII2 : simple language Switcher Widget

Created 10 years ago by phunsanit phunsanit, updated 10 years ago by phunsanit phunsanit.
  1. create file common\components\languageSwitcher.php
1 0
5 followers
Viewed: 33 708 times
Version: 2.0
Category: Tutorials

PHP built-in server integration

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

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)

1 0
3 followers
Viewed: 62 655 times
Version: 2.0
Category: How-tos
0 2
40 followers
Viewed: 24 365 times
Version: 2.0
Category: How-tos

Automatic Parameter Binding to POST vars in Yii2

Created 12 years ago by aarondfrancis aarondfrancis, updated 11 years ago by YiiJeka YiiJeka.

I wrote about this on my blog, but wanted to post it here too.

0 0
4 followers
Viewed: 28 166 times
Version: 2.0
Category: How-tos

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

Overcoming removal of client helpers (e.g. ajaxLink) and ClientScript in Yii 2.0

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

Alternatively, inline assets (JS/CSS) can be registered at runtime from within the View. For example you can clearly simulate the ajaxLink feature using a inline javascript. Its however recommended if you can merge where possible, client code (JS/CSS) into separate JS/CSS files and loaded through the AssetBundle. Note there is no more need of a CClientScript anymore:

1 2
41 followers
Viewed: 47 208 times
Version: 2.0
Category: FAQs

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 151 times
Version: 2.0
Category: How-tos

Editing, Deleting, and Viewing model data with the yii2-detail-view extension

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

The yii2-detail-view extension offers you an easy way to EDIT and VIEW your model data, toggle these modes, and adds other features. You can read the extension documentation and/or view a demo of this extension, to understand usage.

1 0
43 followers
Viewed: 88 729 times
Version: 2.0
Category: Tutorials

Yii2 and Pdf files with Mpdf

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

I am still new to composer and packagist, so I want to share how I am creating the pdf files because for me was not as simple as it should be.

3 0
8 followers
Viewed: 34 777 times
Version: 2.0
Category: How-tos

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

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