Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
22357bef
Commit
22357bef
authored
Jun 02, 2013
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added "@runtime" and "@vendor" aliases.
parent
36bbfd54
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
5 deletions
+11
-5
ViewRenderer.php
extensions/smarty/yii/smarty/ViewRenderer.php
+2
-2
ViewRenderer.php
extensions/twig/yii/twig/ViewRenderer.php
+1
-1
Application.php
framework/yii/base/Application.php
+7
-1
FileCache.php
framework/yii/caching/FileCache.php
+1
-1
No files found.
extensions/smarty/yii/smarty/ViewRenderer.php
View file @
22357bef
...
@@ -26,12 +26,12 @@ class ViewRenderer extends BaseViewRenderer
...
@@ -26,12 +26,12 @@ class ViewRenderer extends BaseViewRenderer
/**
/**
* @var string the directory or path alias pointing to where Smarty cache will be stored.
* @var string the directory or path alias pointing to where Smarty cache will be stored.
*/
*/
public
$cachePath
=
'@
app/
runtime/Smarty/cache'
;
public
$cachePath
=
'@runtime/Smarty/cache'
;
/**
/**
* @var string the directory or path alias pointing to where Smarty compiled templates will be stored.
* @var string the directory or path alias pointing to where Smarty compiled templates will be stored.
*/
*/
public
$compilePath
=
'@
app/
runtime/Smarty/compile'
;
public
$compilePath
=
'@runtime/Smarty/compile'
;
/**
/**
* @var Smarty
* @var Smarty
...
...
extensions/twig/yii/twig/ViewRenderer.php
View file @
22357bef
...
@@ -25,7 +25,7 @@ class ViewRenderer extends BaseViewRenderer
...
@@ -25,7 +25,7 @@ class ViewRenderer extends BaseViewRenderer
/**
/**
* @var string the directory or path alias pointing to where Twig cache will be stored.
* @var string the directory or path alias pointing to where Twig cache will be stored.
*/
*/
public
$cachePath
=
'@
app/
runtime/Twig/cache'
;
public
$cachePath
=
'@runtime/Twig/cache'
;
/**
/**
* @var array Twig options
* @var array Twig options
...
...
framework/yii/base/Application.php
View file @
22357bef
...
@@ -102,11 +102,17 @@ class Application extends Module
...
@@ -102,11 +102,17 @@ class Application extends Module
Yii
::
setAlias
(
'@app'
,
$this
->
getBasePath
());
Yii
::
setAlias
(
'@app'
,
$this
->
getBasePath
());
unset
(
$config
[
'basePath'
]);
unset
(
$config
[
'basePath'
]);
if
(
isset
(
$config
[
'vendor'
]))
{
$this
->
setVendorPath
(
$config
[
'vendor'
]);
unset
(
$config
[
'vendorPath'
]);
}
Yii
::
setAlias
(
'@vendor'
,
$this
->
getVendorPath
());
if
(
isset
(
$config
[
'runtime'
]))
{
if
(
isset
(
$config
[
'runtime'
]))
{
$this
->
setRuntimePath
(
$config
[
'runtime'
]);
$this
->
setRuntimePath
(
$config
[
'runtime'
]);
unset
(
$config
[
'runtime'
]);
unset
(
$config
[
'runtime'
]);
}
}
Yii
::
setAlias
(
'@
app/
runtime'
,
$this
->
getRuntimePath
());
Yii
::
setAlias
(
'@runtime'
,
$this
->
getRuntimePath
());
if
(
isset
(
$config
[
'timeZone'
]))
{
if
(
isset
(
$config
[
'timeZone'
]))
{
$this
->
setTimeZone
(
$config
[
'timeZone'
]);
$this
->
setTimeZone
(
$config
[
'timeZone'
]);
...
...
framework/yii/caching/FileCache.php
View file @
22357bef
...
@@ -27,7 +27,7 @@ class FileCache extends Cache
...
@@ -27,7 +27,7 @@ class FileCache extends Cache
* @var string the directory to store cache files. You may use path alias here.
* @var string the directory to store cache files. You may use path alias here.
* If not set, it will use the "cache" subdirectory under the application runtime path.
* If not set, it will use the "cache" subdirectory under the application runtime path.
*/
*/
public
$cachePath
=
'@
app/
runtime/cache'
;
public
$cachePath
=
'@runtime/cache'
;
/**
/**
* @var string cache file suffix. Defaults to '.bin'.
* @var string cache file suffix. Defaults to '.bin'.
*/
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment