witam,
to moj kontroller index:
<?php
class App_Controller_Guest_Index extends Lib_Template_Page {
function __construct(){
$_SESSION['state']="";
$this->owner= Lib_State_Owner::getOwner($_GET['value'],$_SESSION['state']);
if (empty($_GET['controller'])){ $_GET['controller'] = 'index';} else { $_GET['controller'];}; if (empty($_GET['action'])){ $_GET['action'] = 'index';}
}
public function indexAction(){
$content = Lib_Factory_Controller::getController($_GET['controller'],$_GET['action']);
//$action = Lib_Factory_Final::finalUrl($_GET['controller'],$_GET['action'],$this->langueState);
$this->content = $content->run($_GET['action']);
include_once('app/view/layout.phtml');
}
}
?>
to klasa która wywołuje linkiem np.index.php?controller=login&subpage=login:
<?php
class App_Controller_Guest_Login extends Lib_Template_Subpage{
public function indexAction(){
$model= new App_Model_Guest_Login();
if($_GET['subpage'] == 'login'){
$login = $model->login($_POST['login'].$_POST['pass']);
}elseif ($_GET['move']=='logout'){
$logout = $model->logout();
}
}
}
?>
Jaki może być powód tego ,że po wywołąniu kontrolera "login" wartość $_GET['subpage'] jest pusta.W klasie kontorolera "index" nie ma problemu?
pozdrawiam