X-Git-Url: http://git.maemo.org/git/?p=speedfreak;a=blobdiff_plain;f=Server%2Fapplication%2Fcontrollers%2Fwelcome.php;fp=Server%2Fapplication%2Fcontrollers%2Fwelcome.php;h=0000000000000000000000000000000000000000;hp=89419532c150f7181233ffd604b575e642526bbb;hb=51387e3b67a38cf385661d80ee3d679b85927c81;hpb=b6e210d698acb6872a1b1badccc2d83ad9b635c7 diff --git a/Server/application/controllers/welcome.php b/Server/application/controllers/welcome.php deleted file mode 100644 index 8941953..0000000 --- a/Server/application/controllers/welcome.php +++ /dev/null @@ -1,54 +0,0 @@ -template->content = new View('welcome_content'); - - // You can assign anything variable to a view by using standard OOP - // methods. In my welcome view, the $title variable will be assigned - // the value I give it here. - $this->template->title = 'Welcome to Kohana!'; - - // An array of links to display. Assiging variables to views is completely - // asyncronous. Variables can be set in any order, and can be any type - // of data, including objects. - $this->template->content->links = array - ( - 'Home Page' => 'http://kohanaphp.com/', - 'Documentation' => 'http://docs.kohanaphp.com/', - 'Forum' => 'http://forum.kohanaphp.com/', - 'License' => 'Kohana License.html', - 'Donate' => 'http://kohanaphp.com/donate', - ); - } - - public function __call($method, $arguments) - { - // Disable auto-rendering - $this->auto_render = FALSE; - - // By defining a __call method, all pages routed to this controller - // that result in 404 errors will be handled by this method, instead of - // being displayed as "Page Not Found" errors. - echo 'This text is generated by __call. If you expected the index page, you need to use: welcome/index/'.substr(Router::$current_uri, 8); - } - -} // End Welcome Controller \ No newline at end of file