Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

Commit d8c0f34

Browse files
committed
Use single quotes and project_dir parameter
1 parent 4d803fe commit d8c0f34

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/config/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ doctrine:
5050
charset: UTF8
5151
# if using pdo_sqlite as your database driver:
5252
# 1. add the path in parameters.yml
53-
# e.g. database_path: "%kernel.root_dir%/../var/data/data.sqlite"
53+
# e.g. database_path: "%kernel.project_dir%/var/data/data.sqlite"
5454
# 2. Uncomment database_path in parameters.yml.dist
5555
# 3. Uncomment next line:
5656
#path: '%database_path%'

app/config/parameters.yml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ parameters:
88
database_user: root
99
database_password: ~
1010
# You should uncomment this if you want to use pdo_sqlite
11-
#database_path: '%kernel.root_dir%/../var/data/data.sqlite'
11+
#database_path: '%kernel.project_dir%/var/data/data.sqlite'
1212

1313
mailer_transport: smtp
1414
mailer_host: 127.0.0.1

src/AppBundle/Controller/DefaultController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function indexAction(Request $request)
1515
{
1616
// replace this example code with whatever you need
1717
return $this->render('default/index.html.twig', [
18-
'base_dir' => realpath($this->getParameter('kernel.root_dir').'/..').DIRECTORY_SEPARATOR,
18+
'base_dir' => realpath($this->getParameter('kernel.project_dir')).DIRECTORY_SEPARATOR,
1919
]);
2020
}
2121
}

0 commit comments

Comments
 (0)