Onbekend |
|
hey,
ik ben nog maar net begonnen in php met het werken van classes, maar als ik onderstaande code doe, krijg ik een gewone witte pagina .
wat is er fout??
<?php
define('GAME_IN', TRUE);
include('layout/text.php');
include('code/layout.php');
include('code/database.php');
include('code/mksession.php');
include('code/secure.php');
class zoek{
var $zoekveld=array('game', 'review', 'preview', 'nieuws', 'screenshots', 'release datum');
var $select;
var $i;
function zoek(){
$db = new database;
$layout = new layout;
$login = new login;
$secure = new secure;
$this->i='0';
$this->select = '<select value=\'wat\'>';
while($this->i<5){
$this->select.='<option>'.$this->zoekveld['$i'].'</option>';
$this->i++;
}
$this->select.='</select>';
$layout->openlayout('zoek');
$layout->replace('select', $this->select);
$sponsor = $layout->reText();
$layout->openlayout('main');
$layout->replace('content', $sponsor);
$layout->replace('login', $login->login_form(login_username));
$layout->replace('admin', $login->admin_panel(login_level));
$layout->clearEmpty();
echo $layout->reText();
}
}
?>
<?php include('layout/text.php'); include('code/layout.php'); include('code/database.php'); include('code/mksession.php'); include('code/secure.php'); class zoek{ var $zoekveld=array('game', 'review', 'preview', 'nieuws', 'screenshots', 'release datum'); var $select; var $i; function zoek(){ $db = new database; $layout = new layout; $login = new login; $secure = new secure; $this->i='0'; $this->select = '<select value=\'wat\'>'; while($this->i<5){ $this->select.='<option>'.$this->zoekveld['$i'].'</option>'; $this->i++; } $this->select.='</select>'; $layout->openlayout('zoek'); $layout->replace('select', $this->select); $sponsor = $layout->reText(); $layout->openlayout('main'); $layout->replace('content', $sponsor); $layout->replace('login', $login->login_form(login_username)); $layout->replace('admin', $login->admin_panel(login_level)); $layout->clearEmpty(); } } ?>
|