Created
June 10, 2013 14:32
-
-
Save sugarHoge/5749149 to your computer and use it in GitHub Desktop.
eeeeeee
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once 'Zend/Db.php'; | |
//require_once 'debug.php'; | |
class IndexController extends Zend_Controller_Action | |
{ | |
public function init() | |
{ | |
$this->view->msg = ""; | |
} | |
public function indexAction() | |
{ | |
$this->view->msg = "Please sign in"; | |
} | |
public function signchkAction() | |
{ | |
$user = $this->getRequest()->getParam('user'); | |
$pass = $this->getRequest()->getParam('pass'); | |
// if ($pass==="0123a") { | |
if ($pass==="") { | |
$param=array("token"=>"aaa"); | |
$this->_forward("index", "main", "", $param); | |
} else { | |
$this->view->msg = "入力エラーです!"; | |
$this->render("index"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment