src/TextContent/BlogController.php 1 location
|
@@ 33-42 (lines=10) @@
|
30 |
|
* |
31 |
|
* @return void |
32 |
|
*/ |
33 |
|
public function initialize(){ |
34 |
|
if(!is_object($this->di)) |
35 |
|
throw new \Anax\Exception\InternalServerErrorException('"$this->di" is not valid!'); |
36 |
|
|
37 |
|
$this->content = new \Chp\TextContent\Content(); |
38 |
|
$this->content->setDI($this->di); |
39 |
|
|
40 |
|
$this->postsPerPage = CHP_TC_POSTSPERPAGE; |
41 |
|
$this->urlPrefix = CHP_TC_URLPREFIX; |
42 |
|
} |
43 |
|
|
44 |
|
/** |
45 |
|
* Index action - uses tagAction whitout tag |
src/TextContent/PageController.php 1 location
|
@@ 32-40 (lines=9) @@
|
29 |
|
* |
30 |
|
* @return void |
31 |
|
*/ |
32 |
|
public function initialize(){ |
33 |
|
if(!is_object($this->di)) |
34 |
|
throw new \Anax\Exception\InternalServerErrorException('"$this->di" is not valid!'); |
35 |
|
|
36 |
|
$this->content = new \Chp\TextContent\Content(); |
37 |
|
$this->content->setDI($this->di); |
38 |
|
|
39 |
|
$this->urlPrefix = CHP_TC_URLPREFIX; |
40 |
|
} |
41 |
|
|
42 |
|
/** |
43 |
|
* Index content - Redirect to startpage |