Location: PHPKode > projects > Banshee PHP Framework > controllers/demos/poll.php
<?php
	class demos_poll_controller extends controller {
		public function execute() {
			$this->output->title = "Poll demo";

			$poll = new poll($this->db, $this->settings, $this->output);

			if ($_SERVER["REQUEST_METHOD"] == "POST") {
				$poll->vote($_POST["vote"]);
			}

			$poll->to_output();
		}
	}
?>
Return current item: Banshee PHP Framework