Questions tagged as 'codeigniter'

1
answer

How to use the csrf class in codeigniter with onchange event?

I have the following situation: Form <?php $atributos = array('id'=>'cadloja','class'=>'form-inline','role'=>'form','data-toggle'=>'validator'); echo form_open('',$atributos); ?> <select class="form-contro...
asked by 06.10.2017 / 21:00
0
answers

CodeIgniter 1.7 Error upload remote server

protected function _upload_file($id, $userfile, $folder, $thumb = TRUE) { if(empty($_FILES[$userfile]['name']) == TRUE) { return FALSE; } //altera nome do arquivo enviado $_FILES[$userfile]['name'] = md5(uniqid()) . "...
asked by 06.10.2017 / 14:36
2
answers

Error Undefined property: Products :: $ db no Codegniter

I'mfollowingthetutorialofavideotocreateacrudinCodegnaiter,I'musingthePostgreSQLandXamppdatabaseMODEL:if(!defined('BASEPATH'))exit('Nodirectscriptaccessallowed');classProdutos_modelextendsCI_Model{//Listatodososprodutosdatabelaprodutospublicfun...
asked by 10.09.2017 / 14:07
1
answer

I do not connect to the Panel (Codeigniter)

Good evening, I made a script for content management but when I put my data does not connect, just refresh the page and stay in the same place, put a command to give error but not even that. application \ views \ admin \ login.php: <?php...
asked by 17.08.2017 / 02:12
0
answers

Procedure does not execute in codeigniter

function renovarEmprestimos($matricula, $livro){ $this->db = $this->load->database('biblioteca', TRUE); $query = $this->db->query("EXEC J_renovarlivroweb '$matricula', '$livro', '1' "); //$this->db->last_query(); return $quer...
asked by 16.08.2017 / 19:06
2
answers

Error saving image to Facebook profile via PHP SDK

Good afternoon! I'm using the Facebook SDK to login to my site, I can return the data, including the profile photo link, but I can not save the image, the following error occurs: A PHP Error was encountered Severity: Warning Message:...
asked by 26.07.2017 / 21:19
1
answer

Unserialize Codeigniter - Ajax data?

Through the obj_form object, I display the database data in the form: //Objeto do formulário function obj_form() { $('[name="id"]').val(obj_permissao.id); $('[name="txt_nome"]').val(obj_permissao.nome); $('[name="txt_descricao...
asked by 20.07.2017 / 21:24
0
answers

Problems get_userid () - Codeigniter

I'm going through a little problem. If someone can help me, when I put my information and click on 'Submit', it gives the following error in my application:    A PHP Error was encountered       Severity: Error       Message: Call to undefin...
asked by 29.07.2017 / 02:58
1
answer

How to store the error that CI_Exception provides

Hello, I would like to capture the PHP errors in codeigniter and store in the database, or at least display a smoother way to the user, in the file error_php.php are displayed all the details I need, up to the line of the code where the error but...
asked by 31.07.2017 / 23:58
1
answer

Problem with treeview menu

Good morning I'm making a menu and I need the functionality of a treeview, but even done according to documentation when clicking the menu the desired links are not displayed (dropdown): Code: <ul class="sidebar-menu"> <li...
asked by 30.06.2017 / 12:45