Skip to content

Commit

Permalink
Merge pull request roots#1910 from darrenjacoby/add-controller
Browse files Browse the repository at this point in the history
Controller examples
  • Loading branch information
retlehs authored Jun 23, 2017
2 parents 43cbd1e + ca808db commit aced09f
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
10 changes: 10 additions & 0 deletions resources/controllers/About.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

namespace App;

use Sober\Controller\Controller;

class About extends Controller
{

}
13 changes: 13 additions & 0 deletions resources/controllers/App.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

namespace App;

use Sober\Controller\Controller;

class App extends Controller
{
public function siteName()
{
return get_bloginfo('name');
}
}
10 changes: 10 additions & 0 deletions resources/controllers/Home.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

namespace App;

use Sober\Controller\Controller;

class Home extends Controller
{

}

0 comments on commit aced09f

Please sign in to comment.