Skip to content

Commit c3e9536

Browse files
committed
readme update
1 parent 09e9cd0 commit c3e9536

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ Extending the Model class
8989
<?php
9090
// create a file to overwrite the database config
9191

92-
require __DIR__ . '/../vendor/arojunior/php-orm-pdo/core/model/Model.php';
9392
use SimpleORM\core\model\Model;
9493

9594
class AppModel extends Model
@@ -108,12 +107,12 @@ And then you can extend this class in your classes
108107

109108
```php
110109
<?php
111-
require __DIR__ . '/AppModel.php';
110+
use YourNamespace\AppModel;
112111

113112
class Example extends AppModel
114113
{
115114
public $table = 't_user';
116-
public $pk = 'user_id';
115+
public $pk = 'user_id';
117116

118117
public function getAll()
119118
{

0 commit comments

Comments
 (0)