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
6978a680
Commit
6978a680
authored
Aug 25, 2013
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix of form generator.
parent
89c61c9c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Generator.php
framework/yii/gii/generators/form/Generator.php
+1
-1
No files found.
framework/yii/gii/generators/form/Generator.php
View file @
6978a680
...
...
@@ -63,7 +63,7 @@ class Generator extends \yii\gii\Generator
array
(
'modelClass, viewName, scenarioName, viewPath'
,
'filter'
,
'filter'
=>
'trim'
),
array
(
'modelClass, viewName, viewPath'
,
'required'
),
array
(
'modelClass'
,
'match'
,
'pattern'
=>
'/^[\w\\\\]*$/'
,
'message'
=>
'Only word characters and backslashes are allowed.'
),
array
(
'modelClass'
,
'validateClass'
,
'
extends'
=>
Model
::
className
(
)),
array
(
'modelClass'
,
'validateClass'
,
'
params'
=>
array
(
'extends'
=>
Model
::
className
()
)),
array
(
'viewName'
,
'match'
,
'pattern'
=>
'/^\w+[\\-\\/\w]*$/'
,
'message'
=>
'Only word characters, dashes and slashes are allowed.'
),
array
(
'viewPath'
,
'match'
,
'pattern'
=>
'/^@?\w+[\\-\\/\w]*$/'
,
'message'
=>
'Only word characters, dashes, slashes and @ are allowed.'
),
array
(
'viewPath'
,
'validateViewPath'
),
...
...
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