function __construct() { parent::__construct(); // If you are going to admin fields you gotta // pass the test! role_or_die('streams', 'admin_fields'); $this->load->config('streams/streams'); $this->lang->load('streams/pyrostreams'); $this->load->helper('streams/streams'); streams_constants(); admin_resources(); $this->data->types = $this->type->types; }
function __construct() { parent::__construct(); // If you are going to admin fields you gotta // pass the test! role_or_die('streams', 'admin_fields'); $this->load->config('streams/streams'); $this->lang->load('streams/pyrostreams'); $this->load->helper('streams/streams'); streams_constants(); admin_resources(); $this->data->types = $this->type->types; // Gather stream data. // Each one of our functions requires we are within a stream. $this->data->stream_id = $this->uri->segment(5); if (!($this->data->stream = $this->streams_m->get_stream($this->data->stream_id))) { show_error(lang('streams.invalid_stream_id')); } }