Wiki articles

Showing 181-200 of 822 items.

Checking for "expired" sessions/logins on the client side

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

Getting "Expired token" errors ? Here is a solution to avoid invalid CSRF on POST or ajax requests, or user identity changes.

4 0
12 followers
Viewed: 35 285 times
Version: 1.1
Category: How-tos

UUID instead of an auto-increment integer for ID with Active Record

Created 4 years ago by grigori, updated 3 years ago by samdark.

I have an API. It's built with a RESTful extension over Active Record, and some endpoints provide PUT methods to upload files. By a REST design we create an entity with POST /video first, and then upload a video file with PUT /video/{id}/data.

5 0
4 followers
Viewed: 55 613 times
Version: 2.0
Category: How-tos

Start using Yii2 in Raspberry Pi3 (RPI3) via Pantahub

Created 3 years ago by sirin k, updated 3 years ago by sirin k.

4 0
4 followers
Viewed: 35 715 times
Version: 2.0
Category: How-tos

Easy way to redirect http:\\localhost\yii2-basic to http:\\localhost\yii2-basic\web\index.php

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

First of all, install yii2 basic template according below link:

1 0
5 followers
Viewed: 70 226 times
Version: 2.0
Category: Tips
4 0
3 followers
Viewed: 68 112 times
Version: 2.0
Category: Tutorials

Using events with CAction classes

Created 12 years ago by Antonio Ramirez, updated 12 years ago by 张 迪.

As you know, events are used by:

9 0
9 followers
Viewed: 23 366 times
Version: 1.1
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 573 times
Version: 2.0
Category: How-tos

Windows Web Development With AMPPS, NetBeans and XDebug

Created 12 years ago by morcen, updated 12 years ago by morcen.
  1. Operating system: Windows
4 0
6 followers
Viewed: 38 425 times
Version: 1.1
Category: Tutorials

Mantis Manager: An Asset Manager that minifies, combines, and publishes

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

Hello everybody.

4 0
8 followers
Viewed: 10 874 times
Version: Unknown (update)
Category: Tutorials
Tags: assets, heroku

TDD with PHPUnit_Story and Yii

Created 12 years ago by sidewinder, updated 12 years ago by sidewinder.

Having said all of that, I want to add that the purpose of this article is not to convince anyone to write tests or design following TDD patterns. I'm not going to change the world to what I think is good. It's just about showing how to use some tools together with Yii Framework.

7 0
9 followers
Viewed: 23 937 times
Version: 1.1
Category: Tutorials

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 281 times
Version: 2.0
Category: How-tos
Tags: email, log

First Yii App: CTabView

Created 15 years ago by meanpenguin, updated 11 years ago by Yang He.

Once you are completed with the "Creating First Yii Application", the following can be done.

0 2
1 follower
Viewed: 27 498 times
Version: 1.1
Category: Tutorials
Tags:

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 932 times
Version: 1.1
Category: Tutorials
Tags:

Advanced CTabView using CClipWidget

Created 15 years ago by krillzip, updated 11 years ago by Yang He.

Here is a way to dynamically extend tabs based on clips.
Probably even more complex things could be done.

2 0
2 followers
Viewed: 18 181 times
Version: 1.1
Category: Tutorials
Tags:

Autocomplete in console command

Created 12 years ago by Stamm, updated 12 years ago by Stamm.

Missed of autocomplete in bash console commands yii make me sad.

3 0
4 followers
Viewed: 15 358 times
Version: 1.1
Category: Tutorials

checkBox in CGridview

Created 9 years ago by n-r, updated 9 years ago by n-r.

some when you need to add checkbox in cgridview and change state of selected rows by additianal parameters. in view :

2 0
3 followers
Viewed: 29 377 times
Version: 1.1
Category: Others

AutoTimestampBehavior

Created 15 years ago by jonah, updated 11 years ago by Yang He.

This behavior will automatically set timestamp fields to the row creation and modification times.

2 2
3 followers
Viewed: 22 524 times
Version: 1.1
Category: Tutorials
Tags:

Building Page Specific Menus using CMenu

Created 10 years ago by mistryb, updated 9 years ago by mistryb.

The Yii Framework provides a sweet functionality that allows you to easily create page specific menus. What does this mean? This allows you to create one layout or CSS styling for your menu, and when each page is loaded, a new set of menu items is loaded in. This is useful for context specific sidebars within your application.

0 0
3 followers
Viewed: 17 090 times
Version: 1.1
Category: How-tos
Tags: CMenu

How to validate the uniqueness of multiple columns

Created 9 years ago by oligalma, updated 8 years ago by oligalma.

I am going to show you an effective way to validate the uniqueness of multiple columns.

2 0
2 followers
Viewed: 18 295 times
Version: 1.1
Category: How-tos

Running applications with Docker

Created 9 years ago by schmunk, updated 9 years ago by 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: 50 229 times
Version: 2.0
Category: Tutorials