Wiki articles

Showing 181-200 of 826 items.

Move sources to src

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

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

12 0
5 followers
Viewed: 18 498 times
Version: 2.0
Category: How-tos

Change default date format in Oracle

Created 6 years ago by lenovo lenovo, updated 6 years ago by samdark samdark.

Default date format in Oracle is DD-MON-RR (25-JAN-18). With that output, we can't using date formatting.

0 0
2 followers
Viewed: 85 688 times
Version: 2.0
Category: How-tos
Tags: database
7 0
4 followers
Viewed: 428 989 times
Version: 2.0
Category: Tutorials

Simple Way to Upload and Save File

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

This tutorial need extension mdmsoft/yii2-upload-file. Follow the intruction to install. After installation done, create controller and action

0 0
4 followers
Viewed: 43 775 times
Version: 2.0
Category: Tutorials

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

Created 13 years ago by le_top le_top, updated 11 years ago by le_top 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: 47 199 times
Version: 1.1
Category: How-tos

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

Created 6 years ago by grigori grigori, updated 6 years ago by samdark 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.

6 0
4 followers
Viewed: 79 173 times
Version: 2.0
Category: How-tos
5 0
4 followers
Viewed: 71 250 times
Version: 2.0
Category: How-tos

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

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

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

1 0
5 followers
Viewed: 88 916 times
Version: 2.0
Category: Tips
4 0
3 followers
Viewed: 128 955 times
Version: 2.0
Category: Tutorials

Using events with CAction classes

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

As you know, events are used by:

9 0
9 followers
Viewed: 27 464 times
Version: 1.1
Category: Tips

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

Created 5 years ago by Gabriel A. López López 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: 111 505 times
Version: 2.0
Category: How-tos

Windows Web Development With AMPPS, NetBeans and XDebug

Created 14 years ago by morcen morcen, updated 14 years ago by morcen morcen.
  1. Operating system: Windows
4 0
6 followers
Viewed: 42 087 times
Version: 1.1
Category: Tutorials
4 0
8 followers
Viewed: 13 455 times
Version: Unknown (update)
Category: Tutorials
Tags: assets, heroku

TDD with PHPUnit_Story and Yii

Created 14 years ago by sidewinder sidewinder, updated 14 years ago by sidewinder 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: 27 724 times
Version: 1.1
Category: Tutorials

How to email error logs to developer on Yii2 apps

Created 5 years ago by Gabriel A. López López 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: 98 108 times
Version: 2.0
Category: How-tos
Tags: email, log

First Yii App: CTabView

Created 17 years ago by meanpenguin meanpenguin, updated 14 years ago by Yang He Yang He.

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

0 2
1 follower
Viewed: 32 277 times
Version: 1.1
Category: Tutorials
Tags:

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

Created 17 years ago by qiang qiang, updated 17 years ago by mishhh 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: 19 289 times
Version: 1.1
Category: Tutorials
Tags:

Advanced CTabView using CClipWidget

Created 17 years ago by krillzip krillzip, updated 14 years ago by Yang He 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: 22 512 times
Version: 1.1
Category: Tutorials
Tags:

Autocomplete in console command

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

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

3 0
4 followers
Viewed: 18 217 times
Version: 1.1
Category: Tutorials

checkBox in CGridview

Created 11 years ago by n-r n-r, updated 11 years ago by n-r 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: 33 747 times
Version: 1.1
Category: Others