Skip to content

Instantly share code, notes, and snippets.

@sugarHoge
Created June 10, 2013 14:32
Show Gist options
  • Save sugarHoge/5749149 to your computer and use it in GitHub Desktop.
Save sugarHoge/5749149 to your computer and use it in GitHub Desktop.
eeeeeee
<?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