Skip to content
This repository has been archived by the owner on Apr 8, 2020. It is now read-only.

Commit

Permalink
Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
AliasIO committed Apr 8, 2014
1 parent 2cdcf08 commit afc6386
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,6 @@ class Foo extends \Swiftlet\Abstracts\Model
<?php
namespace HelloWorld\Controllers;

use HelloWorld\Models\Example as ExampleModel;

class Foo extends \Swiftlet\Abstracts\Controller
{
protected $title = 'Foo';
Expand All @@ -161,7 +159,7 @@ class Foo extends \Swiftlet\Abstracts\Controller
{
// Get an instance of the Example class
// See vendor/HelloWorld/Models/Example.php
$example = new ExampleModel;
$example = $this->app->getModel('example');

$this->view->helloWorld = $example->getHelloWorld();
}
Expand All @@ -173,7 +171,7 @@ object such as a user.

```php
<?php
$user = new \HelloWorld\Models\User;
$user = $this->app->getModel('user');

$user->setEmail('[email protected]');

Expand Down Expand Up @@ -232,7 +230,7 @@ should go in a separate library class.

```php
<?php
$email = new \HelloWorld\Libraries\Email
$email = $this->app->getLibrary('email');

$email->send($to, $subject, $message);
```
Expand Down

0 comments on commit afc6386

Please sign in to comment.