Enviado em 26/05/2017 - 15:40h
Bom pessoal, eu estava construindo uma visualização simples pra um projeto que tenho, mas me deparei com esse problema ao executar uma listagem de apenas um elemento do banco de dados em uma tabela HTML:A PHP Error was encountered
Severity: Notice
Message: Undefined property: stdClass::$tipo
Filename: open/visualizar.php
Line Number: 16
function visualizar() {
if(!$this->uri->segment(3) || !is_numeric($this->uri->segment(3))){
$this->session->set_flashdata('error','Item não pode ser encontrado, parâmetro não foi passado corretamente.');
redirect('project');
}
if(!$this->permission->checkPermission($this->session->userdata('permissao'),'vOpen')){
$this->session->set_flashdata('error','Você não tem permissão para visualizar.');
redirect(base_url());
}
$this->data['result'] = $this->open_model->getById($this->uri->segment(3));
$this->data['view'] = 'open/visualizar';
$this->load->view('tema/topo', $this->data);
}
function get($table,$fields,$where='',$perpage=0,$start=0,$one=false,$array='array'){
$this->db->select($fields);
$this->db->from($table);
$this->db->order_by('data_vencimento', 'asc');
$this->db->limit($perpage,$start);
if($where){
$this->db->where($where);
}
$query = $this->db->get();
$result = !$one ? $query->result() : $query->row();
return $result;
}
function getById($id){
$this->db->where('idClientes',$id);
$this->db->limit(1);
return $this->db->get('clientes')->row();
}
Resolver problemas de Internet
Como compartilhar a tela do Ubuntu com uma Smart TV (LG, Samsung, etc.)
Descritores de Arquivos e Swappiness
Solução rápida para o problema do Network Manager conectar mas não navegar
Como instalar no Linux Jogos da Steam só para Windows
Instalando o Team Viewer no Debian Trixie - problema no Policykit