finish author system
This commit is contained in:
parent
db8669d30d
commit
fe6e01acdf
38 changed files with 614 additions and 73 deletions
8
site/models/author.php
Normal file
8
site/models/author.php
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<?php
|
||||
class AuthorPage extends Page {
|
||||
public function getTexts() {
|
||||
return page('textes')->index()->filter(function($text) {
|
||||
return $text->author()->toPage() === $this;
|
||||
});
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue