qoob = \qoob::open(); } function blah() { echo "
blah test method.
"; } function dating($args) { echo 'date test method.
'.print_r($args, true).""; } function modelTest(){ $this->qoob->benchmark->mark('modelLoadStart'); $this->qoob->load('model\codeModel'); $this->qoob->benchmark->mark('modelLoadEnd'); $result = $this->qoob->codeModel->listCode(); echo "
".print_r($result, true).""; } function templateTest() { $url = \library::get('QOOB.domain').'/'; $this->qoob->load('qoob\core\view\stache'); //roman numeral year $N = date('Y'); $c='IVXLCDM'; for($a=5,$b=$s='';$N;$b++,$a^=7) for($o=$N%$a,$N=$N/$a^0;$o--;$s=$c[$o>2?$b+$N-($N&=-2)+$o=1:$b].$s); $this->qoob->stache->render( 'templateTest', array( 'author' => \library::get('CONFIG.GENERAL.author'), 'copyright' => \library::get('CONFIG.GENERAL.copyright'), 'keywords' => \library::get('CONFIG.GENERAL.keywords'), 'description' => \library::get('CONFIG.GENERAL.description'), '#domain' => $url, 'year'=> $s, 'title'=> 'open qoob', 'bodyCopy'=>'a semi-RESTful php api framework designed to simplify and expedite the process of creating dynamic web applications.' ) ); } } ?>