Wiki articles

Showing 1-20 of 822 items.

How to email error logs to developer on Yii2 apps

Created 3 years 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.

2 0
4 followers
Viewed: 60 287 times
Version: 2.0
Category: How-tos
Tags: email, log

How to redirect all emails to one inbox on Yii2 applications

Created 3 years 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.

6 0
4 followers
Viewed: 102 433 times
Version: 2.0
Category: How-tos

Aadhar Number Validator

Created a year ago by shiv.

In India have Aadhar number an we may need to valid it a input. So I created a validator for yii2

1 1
1 follower
Viewed: 66 268 times
Version: 2.0
Category: Tips
Tags: validator

Convert JSON data to html table for display on page

Created a year ago by shiv.

I have a calls which help me display json directly in html table.

0 0
1 follower
Viewed: 67 965 times
Version: all
Category: Tips
Tags: html, JSON

GridView show sum of columns in footer.

Created a year ago by shiv.

GridView show sum of columns in footer `PHP use yii\grid\DataColumn;

1 0
1 follower
Viewed: 67 696 times
Version: 2.0
Category: Tips

How to Create and Use Validator Using Regular expressions

Created a year ago by 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: 73 280 times
Version: 2.0
Category: How-tos

Update and Delete buttons on Breadcrumb

Created 5 years ago by 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.

0 0
1 follower
Viewed: 53 667 times
Version: 2.0
Category: Tips

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

Created 3 years 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
3 followers
Viewed: 58 580 times
Version: 2.0
Category: How-tos

Q: My yiic tool cannot run model and crud commands. Why?

Created 15 years ago by qiang, updated 15 years ago by mishhh.

Some PHP installations may use a different php.ini file for CLI PHP (command line PHP parser). As a result, when running the model or crud command in yiic shell, you may encounter errors like "YiiBase::include(PDO.php): failed to open stream..." or "...could not find driver", even though the requirement checker confirms you have PDO and the corresponding database driver.

0 0
1 follower
Viewed: 14 933 times
Version: 1.1
Category: Tutorials
Tags:

Integrating with other frameworks

Created 14 years ago by KJedi, updated 14 years ago by KJedi.

When you need to integrate with other frameworks (e.g. Zend Framework), you have to follow these steps:

4 1
7 followers
Viewed: 27 750 times
Version: 1.1
Category: Tutorials
Tags:

How to make customizable Db Table prefixes using ActiveRecord

Created 14 years ago by killermonk, updated 14 years ago by killermonk.

Yii's ActiveRecord classes are powerful, but they fall short when you want to have a configurable table prefix for your application.

0 0
1 follower
Viewed: 23 889 times
Version: 1.1
Category: Tutorials
Tags:

XSS safe model content

Created 14 years ago by phiras, updated 14 years ago by phiras.

In this post I am going to describe a solution to make your yii-based web application safe from illegal content injections.

4 0
1 follower
Viewed: 12 790 times
Version: 1.1
Category: Tutorials
Tags:

Simplified meta tags

Created 14 years ago by Y!!, updated 13 years ago by Y!!.

If we want to set meta tags on a per page (controller-action) basis, we may use the clientScript application component.

13 0
17 followers
Viewed: 55 657 times
Version: 1.1
Category: Tutorials
Tags:

Using CJuiDialog to display flash Messages in Dialogues

Created 13 years ago by thyseus, updated 13 years ago by thyseus.

In order to nicely display flash Messages, create view like this called views/site/dialog.php :

10 0
9 followers
Viewed: 28 726 times
Version: 1.1
Category: Tutorials
Tags:

List with multiple checkbox

Created 13 years ago by matkaz, updated 13 years ago by matkaz.

It is a common case coders often come accross. For example the purpose of these checkbox is to mark records to be deleted

4 0
8 followers
Viewed: 40 609 times
Version: 1.1
Category: Tutorials
Tags:

How to add an analogue clock widget on your skeleton application

Created 13 years ago by mocapapa, updated 13 years ago by mocapapa.


Followings are the simple steps to put an analogue clock widget on your skeleton application that is just generated by yiic.

1 0
1 follower
Viewed: 11 670 times
Version: 1.1
Category: Tutorials
Tags:

i18n for your model in just 1 line

Created 14 years ago by mintao, updated 13 years ago by Orteko.

A simple trick to get the localized version of a model field is to add this little method to your models.

12 0
9 followers
Viewed: 19 270 times
Version: 1.1
Category: Tutorials
Tags: i18n

Installing and configuring the Yii User Management Module under a fresh skeleton application generated by yiic

Created 14 years ago by thyseus, updated 13 years ago by Orteko.

p.s. latest version of this tutorial is always available unter the docs/ folder of the User Management Module.

12 2
15 followers
Viewed: 95 104 times
Version: 1.1
Category: Tutorials

SQL Logging and Profiling in FireBug (Yii 1.1)

Created 14 years ago by mindplay, updated 13 years ago by qiang.

During development, it's often very handy to have SQL logging and profiling.

6 0
6 followers
Viewed: 36 621 times
Version: 1.1
Category: Tutorials
Tags: Logging

Integrating FirePHP

Created 13 years ago by ricardograna, updated 13 years ago by ricardograna.
  • Install Firebug plugin for Firefox from here.
7 0
6 followers
Viewed: 17 977 times
Version: 1.1
Category: Tutorials
Tags: