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
af778d1a
Commit
af778d1a
authored
Nov 27, 2013
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed actions() docs where alias was used to refer to class
parent
408eee75
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
controller.md
docs/guide/controller.md
+1
-1
Controller.php
framework/yii/base/Controller.php
+2
-2
No files found.
docs/guide/controller.md
View file @
af778d1a
...
@@ -167,7 +167,7 @@ public SiteController extends \yii\web\Controller
...
@@ -167,7 +167,7 @@ public SiteController extends \yii\web\Controller
{
{
return
[
return
[
'about'
=>
[
'about'
=>
[
'class'
=>
'
@app/actions/
Page'
,
'class'
=>
'
app\actions\
Page'
,
'view'
=>
'about'
,
'view'
=>
'about'
,
],
],
];
];
...
...
framework/yii/base/Controller.php
View file @
af778d1a
...
@@ -87,9 +87,9 @@ class Controller extends Component implements ViewContextInterface
...
@@ -87,9 +87,9 @@ class Controller extends Component implements ViewContextInterface
*
*
* ~~~
* ~~~
* return [
* return [
* 'action1' => '
@app/components/
Action1',
* 'action1' => '
app\components\
Action1',
* 'action2' => [
* 'action2' => [
* 'class' => '
@app/components/
Action2',
* 'class' => '
app\components\
Action2',
* 'property1' => 'value1',
* 'property1' => 'value1',
* 'property2' => 'value2',
* 'property2' => 'value2',
* ],
* ],
...
...
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