All pastes #950765 Raw Edit

Unnamed

public php v1 · immutable
·published 2008-03-20 20:36 UTC
rendered paste body
<?php 	class Stereo3d extends Model {    function Stereo3d()    {        parent::Model();        $this->load->database();    }        function get_shouts()    {    	//$this->load->database();    	$result = $this->db->get('shouts');    	$data['shouts'] = $result->result();    	return $this->load->view('shouts.viz.php',$data,TRUE);    }        function write_shouts($name,$message,$email,$ip,$date)    {    	$wdata = array(    		'name' => $name,    		'message' => $message,    		'email' => $email,    		'ip' => $ip,    		'date' => $date	    			    );    	$this->db->insert("shouts", $wdata);    	    }    }?>