File: //home/awaldron/public_html/archive/ras/application/controllers/stonegate.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Stonegate extends CI_Controller {
public function index()
{
$data = array();
$data['page_title'] = "The Village at Stonegate";
$data['tab_on'] = 'devs';
$data['split'] = false;
$data['slider'] = false;
$gal_ids = array(10,11,14);
$this->db->select();
$this->db->from("ras_gallery as A, ras_gallery_phogal as B, ras_gallery_photo as C");
$this->db->where_in("A.gal_id", $gal_ids);
$this->db->where("B.gal_id = A.gal_id");
$this->db->where("B.order = 1");
$this->db->where("B.photo_id = C.photo_id");
$this->db->order_by("A.gal_id", "ASC");
$q = $this->db->get();
$data['gdata'] = rset($q);
$this->load->view('v_page_head',$data);
$this->load->view('vStonegate');
$this->load->view('v_page_foot');
}
}
/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */