Skip to content

Commit

Permalink
Merge pull request #5 from NaoyaMiyagawa/ver2
Browse files Browse the repository at this point in the history
modify readme
  • Loading branch information
tutida authored Aug 4, 2020
2 parents f84c69c + 3f5299e commit eb056ea
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
# Pack plugin is for CakePHP3

You can easy to pass CakePHP3 variables to JS in View.
You can easy to pass CakePHP4 variables to JS in View.

## Requirements ##

* PHP >=5.4
* CakePHP >= ~3.2
* PHP >= 7.0
* CakePHP >= 4.0

## Installation

In bootstrap.php.
In Application.php

```php
<?php
Plugin::load('Pack');
$this->addPlugin('Pack');
```

In controller.
Expand All @@ -31,7 +31,7 @@ In controller.
}
```

In layout ctp or template ctp.
In layout php or template php.

```php
<?= $this->Pack->render();?>
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "tutida/pack",
"description": "CakePHP3 variables in JS",
"description": "CakePHP4 variables in JS",
"type": "cakephp-plugin",
"require": {
"php": ">=5.4.16",
"cakephp/cakephp": "~3.0"
"php": ">=7.0.0",
"cakephp/cakephp": "~4.0"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit eb056ea

Please sign in to comment.