Skip to content

Commit

Permalink
Fix some typos in the models docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
jlambe committed Mar 12, 2014
1 parent 839de95 commit 17f73bf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions models.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ class Books_Model extends BaseModel{
Then we can retrieve all the books for our view like so:

```php

Route::is('home', function(){

return View::make('pages.home', array(
Expand All @@ -62,7 +61,6 @@ Route::is('home', function(){
));

});

```

All your `models` classes should be stored in the `app/models` directory and use the `.model.php` file extension.
Expand All @@ -87,7 +85,7 @@ You can call the model by using its name: `News::someMethod()`

### Resolve name conflicts

If there is a name conflict at run-time, you can define a class property `alias` to change the class alias name.
If there is a name conflict at run-time, you can define a class property `$alias` to change the class alias name.

Here is an example using the previous `news.model.php` class.

Expand Down

0 comments on commit 17f73bf

Please sign in to comment.