Wiki articles

Showing 1-20 of 155 items.

How to add Schema.org markup to Yii2 pages

Created 7 months ago by Gabriel A. López López, updated 7 months ago by 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.

2 0
1 follower
Viewed: 5 344 times
Version: 2.0
Category: How-tos

Yii v2 snippet guide III

Created 2 months ago by rackycz, updated 11 days ago by rackycz.

Articles are separated into more files as there is the max lenght for each file on wiki.

2 0
1 follower
Viewed: 5 883 times
Version: 2.0
Category: Tutorials

Analyse the server's USER-AGENT against browsecap file to determine it's capability.

Created 6 years ago by Deepak Pradhan, updated 6 years ago by Deepak Pradhan.

Does your application need to know user's details on browser details, os and device type? We can use PHP's misc. function to achieve that provided you have an update copy of browsercap.ini

0 0
0 follower
Viewed: 6 692 times
Version: 2.0
Category: Tips

How to email error logs to developer on Yii2 apps

Created 6 months ago by Gabriel A. López López.

Logging is a very important feature of the application. It let's you know what is happening in every moment. By default, Yii2 basic and advanced application have just a \yii\log\FileTarget target configured.

1 0
1 follower
Viewed: 7 081 times
Version: 2.0
Category: How-tos
Tags: email, log

How to add Open Graph and Twitter Card tags to Yii2 website.

Created 7 months ago by Gabriel A. López López.

OpenGraph and Twitter Cards are two metadata sets that allow to describe web pages and make it more understandable for Facebook and Twitter respectively.

2 0
1 follower
Viewed: 7 241 times
Version: 2.0
Category: How-tos

How to redirect all emails to one inbox on Yii2 applications

Created 6 months ago by 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.

5 0
2 followers
Viewed: 7 393 times
Version: 2.0
Category: How-tos

Api of Multiple File Uploading in Yii2

Created 6 months ago by fezzymalek, updated 6 months ago by fezzymalek.

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

1 0
2 followers
Viewed: 7 736 times
Version: 2.0
Category: Tutorials

Move sources to src

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

Yii 3 and many Yii 2 package sources are contained within src directory which is convenient since you have less directories to check.

10 0
5 followers
Viewed: 9 781 times
Version: 2.0
Category: How-tos

`forceCopy` per Asset Bundle

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

During development and depending on your setup you may need to use the options forceCopy or linkAssets of the asset manager to work around possible file-system and permission issues.

1 0
1 follower
Viewed: 9 792 times
Version: 2.0
Category: How-tos

Automatically get the SVN Revision Number of your Project

Created 7 years ago by jcagentzero, updated 6 years ago by jcagentzero.

When you are handling so many projects and those projects are saved in different repository locations, you may find it very difficult to keep track all the versions and revisions manually and it will be much harder if you are developing in multiple repository branches.

3 0
4 followers
Viewed: 9 900 times
Version: all
Category: Tutorials

embedded javascript block in your view with IDE checking or intellisense

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

this is my way for embed js code block in view file:

2 0
3 followers
Viewed: 10 055 times
Version: 2.0
Category: Tips
0 0
3 followers
Viewed: 10 260 times
Version: 2.0
Category: How-tos
Tags:

Use non Gmail/Gsuite on Gcloud projects

Created 3 years ago by Luis Armando, updated 2 years ago by Maurizio Domba Cerin.

Small companies and startups use cheap email services or even Cpanel's mail services which are less secure and compete directly with bigger email providers like Microsoft with Outlook and Google with Gmail. This creates a problem when you try to use their services to send/receive emails from this cheap services. <img width="750" src="https://static.techspot.com/fileshost/newspics3/2017/google-clo...

0 0
3 followers
Viewed: 10 380 times
Version: 2.0
Category: How-tos

MySQL migration environment

Created 5 years ago by Fabrizio Caldarelli, updated 5 years ago by Fabrizio Caldarelli.

It can happen that you work in development environment and you make changes to database tables structures, adding tables, or changing fields.

0 0
2 followers
Viewed: 10 477 times
Version: 2.0
Category: How-tos

Using PayPal IPN with Yii2

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

I'm using PayPal's script from

0 0
1 follower
Viewed: 10 513 times
Version: 2.0
Category: Tips

Using Nginx and Apache2 in separate distributed servers (ie, Amazon EC2 instances)

Created 7 years ago by Luis Lobo Borobia, updated 3 years ago by Luis Lobo Borobia.

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.

2 0
2 followers
Viewed: 10 530 times
Version: all
Category: Tips

A universal model attribute for its synthetic representation

Created 4 years ago by Alexandre Rodichevski, updated 4 years ago by Alexandre Rodichevski.

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.

0 0
3 followers
Viewed: 10 723 times
Version: 2.0
Category: Tips

A simple widget - jump2link

Created 5 years ago by Scott_Huang, updated 5 years ago by Scott_Huang.

namespace app\components;

0 0
1 follower
Viewed: 10 796 times
Version: 2.0
Category: Tutorials

MongoDB's RBAC support class extending BaseManager

Created 6 years ago by edoardo849, updated 6 years ago by 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: 10 828 times
Version: 2.0
Category: How-tos
Tags: mongodb, rbac, yii2
3 0
1 follower
Viewed: 11 162 times
Version: 2.0
Category: Tutorials