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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
6af78e46
Commit
6af78e46
authored
Aug 25, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4808 from nenad-zivkovic/master
fixes typos in start-databases.md
parents
e2ca42e7
d6944067
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 @
6af78e46
...
...
@@ -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