single page controller

Permalink
hi , i have a single page ( not in a package just a single page ).
i would like to give it a controller.

the single page is called backend.php and its located in singlepage/backend.php

mackend is located in conterollers/backend.php

how would i extend the controller?

my controller page looks like this:
<?php 
defined('C5_EXECUTE') or die("Access Denied.");
class BackendController extends Controller {
   public function view() {
      $this->set('test', 'works');
   }
}
?>

thanks for your help.

 
aryeh replied on at Permalink Best Answer Reply
i finally figured it out.

problem with this line. replaced with this.
defined('C5_EXECUTE') or die(_("Access Denied."));


i thought i'd post. maybe will help someone else one day.