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
d6944067
Commit
d6944067
authored
Aug 24, 2014
by
Nenad Zivkovic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes typos in start-databases.md
parent
f526cc7a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
start-databases.md
docs/guide/start-databases.md
+2
-2
No files found.
docs/guide/start-databases.md
View file @
d6944067
...
...
@@ -100,7 +100,7 @@ class Country extends ActiveRecord
The
`Country`
class extends from
[
[yii\db\ActiveRecord
]
]. You do not need to write any code inside of it! With just the above code,
Yii will guess the associated table name from the class name.
> In
of
: If no direct match can be made from the class name to the table name, you can
> In
fo
: If no direct match can be made from the class name to the table name, you can
override the
[
[yii\db\ActiveRecord::tableName()
]
] method to explicitly specify the associated table name.
Using the
`Country`
class, you can easily manipulate data in the
`country`
table, as shown in these snippets:
...
...
@@ -185,7 +185,7 @@ information to it.
Creating a View <a name="creating-view"></a>
---------------
Under the
`views`
directory, first create a sub-directory named
`country`
. This folder will used to hold all the
Under the
`views`
directory, first create a sub-directory named
`country`
. This folder will
be
used to hold all the
views rendered by the
`country`
controller. Within the
`views/country`
directory, create a file named
`index.php`
containing the following:
...
...
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