Skip to content

Commit

Permalink
add cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
aviggngyv committed Jun 30, 2017
1 parent 8021c2c commit 28832fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"zendframework/zend-diactoros": "^1.3",
"symfony/yaml": "~2.7",
"symfony/console": "^3.1",
"opis/session": "^3.1",
"opis/session": "^3.1",,
"dmitrymomot/cookie-helper": "^1.0",
"fzaninotto/faker": "^1.6",
"creitive/breadcrumbs": "^3.1",
"monolog/monolog": "^1.22"
Expand Down
4 changes: 2 additions & 2 deletions module/test/src/Controller/TestController.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ class TestController {
* homepage.
*/
public function index(ServerRequest $request, TestPlugin $test) {
session()->set("user", "Drupal Hunter");
return view('/hunter/index.html', array('title' => $test->bar->sayhello(), 'session_value' => session()->get("user")));
session()->set("test", "Welcome to use the best PHP framework : HunterPHP!");
return view('/hunter/index.html', array('title' => $test->bar->sayhello(), 'session_value' => session()->get("test")));
}

/**
Expand Down

0 comments on commit 28832fd

Please sign in to comment.