2017 © Pedro Peláez
 

cakephp-plugin garak

Garak plugin for CakePHP3

image

gorogoroyasu/garak

Garak plugin for CakePHP3

  • Monday, January 23, 2017
  • by gorogoroyasu
  • Repository
  • 2 Watchers
  • 0 Stars
  • 1,458 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 8 Versions
  • 8 % Grown

The README.md

garak plugin for CakePHP3

Recentry, the amount of feature phones are decreasing, though they are still existing. Sometimes, we have to handle them, but there are some obstacles. First, we can't use cookie to keep session. Furthermore, the character code is not UTF-8 but SJIS., (*1)

This plugin will deal with the problems mentioned above., (*2)

Installation

You can install this plugin into your CakePHP application using composer., (*3)

The recommended way to install composer packages is:, (*4)

composer require gorogoroyasu/garak

usage

just add few lines in AppController and bootstrap.php., (*5)

// in bootstrap.php
Plugin::load('Garak', ['bootstrap' => true]);

// in AppController.php
public function initialize()
{
    parent::initialize();
    $this->loadComponent('Garak.Garak');
}

public function beforeRedirect(Event $event, $url, Response $response)
{
    $url = $this->Garak->generateRedirectUrl($url);
}

// The line below was the wrong statement. 
// public function redirect($url, $status = null, $exit = true)
// {
//     $url = $this->Garak->generateRedirectUrl($url);
//    parent::redirect($url, $status, $exit);
//}

recomendation

I recommend you to user Themed (http://book.cakephp.org/3.0/ja/views/themes.html) to switch the view. You can identify if the type of device by using isGarak method in Garak.Garak., (*6)

The Versions

23/01 2017

dev-scrutinizer-patch-1

dev-scrutinizer-patch-1

Garak plugin for CakePHP3

  Sources   Download

MIT

The Requires

 

The Development Requires

24/11 2016

dev-master

9999999-dev

Garak plugin for CakePHP3

  Sources   Download

MIT

The Requires

 

The Development Requires

24/11 2016

dev-smartphoneDetect

dev-smartphoneDetect

Garak plugin for CakePHP3

  Sources   Download

MIT

The Requires

 

The Development Requires

24/11 2016

0.1.4

0.1.4.0

Garak plugin for CakePHP3

  Sources   Download

MIT

The Requires

 

The Development Requires

03/10 2016

0.1.2

0.1.2.0

Garak plugin for CakePHP3

  Sources   Download

MIT

The Requires

 

The Development Requires

03/10 2016

0.1.1

0.1.1.0

Garak plugin for CakePHP3

  Sources   Download

MIT

The Requires

 

The Development Requires

03/10 2016

dev-editComposerJson

dev-editComposerJson

Garak plugin for CakePHP3

  Sources   Download

MIT

The Requires

 

The Development Requires

20/09 2016

0.1

0.1.0.0

Garak plugin for CakePHP

  Sources   Download

The Requires

 

The Development Requires