Archived
1
0
Fork 0

Cleaning up the start and about page

This commit is contained in:
Fredric N 2011-02-26 14:12:16 +01:00
parent d09fb0e5f4
commit 07140381fe
4 changed files with 19 additions and 91 deletions

View file

@ -4,35 +4,16 @@ class IndexController extends Fiktiv_Controller_Action
{
public function indexAction()
{
// Here be dragons
//$m = new MyModel();
//echo $m->name;
// Quick access
$me = $this->dataService->User->findRandom();
echo $me;
$r = Fiktiv_Performance::benchmark(array('IndexController','test'));
echo '<pre>';
print_r($r);
echo '</pre>';
Zend_Debug::dump(Zend_Auth::getInstance()->getIdentity(), 'User');
}
public function aboutAction()
{
$lang = Zend_Registry::get('Zend_Translate')->getLocale();
$this->view->content = $this->dataService->About->getContent($lang);
}
public function test()
{
$r = rand(100,999);
for ($i=0;$i<$r;$i++) {
$s = $i+$i;
}
$abouts = new ModelAbout();
$this->view->content = $abouts->fetchAll($abouts->quoteInto('Locale = ?',$lang));
}
}