Most voted "codeigniter" questions
Codeigniter is a framework for developing PHP applications.
Learn more…1,026 questions
Sort by count of
-
4
votes1
answer1174
viewsProblem with codeigniter (mysqli) BD connection
Guys, I made a registration form for newsletter. And when loading the database on autoload['libraries'], presents an error Call to Undefined Function mysqli_init() in…
-
4
votes2
answers420
viewsStore New Value by Updating Old Value
Can someone help me with a PHP and MYSQL function? Today I have a view for Expense and Revenue Launch. I also have a box, which, when I launch an Revenue,the value is added to the box and when I set…
-
4
votes1
answer44
viewsWhere’s the mistake I can’t see?
What happens in the jeans_status and jeans_opcao it works a beauty more in the first if It doesn’t work, it goes into the if without checking whether the imagem_status == 1 and the imagem_opcao ==…
-
4
votes1
answer116
viewsHow to pass an array in a WHERE condition
$this->db->set('al_reg', $matricula); $this->db->set('dataagendamento', $dataagendamento); $this->db->where('cod_lab', $laboratorio); $this->db->where('cod_horario',…
-
4
votes2
answers452
viewsHow to send database data to view using ajax with codeigniter 3
Hello! I’m having a question. I’m developing a system for a furniture store. I want to get the owner to edit the furniture he registered in the system. I can recover the data, but I cannot place it…
-
4
votes1
answer436
viewsDestroy(Logout) Session_id Codeigniter
Through the code below I recover all users logged in to the system and display them in a table. <?php $dados = array( 'session_id', 'ip_address', 'last_activity', 'user_data' );…
-
4
votes1
answer2162
viewsSelect(combobox) Dynamic
I need to use one select dynamic on my page, in which when selecting the state(UF), it shows me in the next select only the cities of this UF. Likewise the neighborhoods. All this information is…
-
4
votes4
answers1350
viewsCheck if id_user is logged in (Session - codeigniter)
I am building a login system and in it I am making some validations. Everything functional, except, the verification if user is already logged in. I’m using the method below, but it’s not 100%…
-
4
votes1
answer792
viewsDelete php session when closing browser
I’m using Codeigniter to develop a project that involves a restricted area. I am using session to store user data that is logged in. I need this information to be deleted when closing the browser,…
-
4
votes1
answer170
viewsHow to save all data inserted into a form-control in Mysql
Guys, how can I make a script to save all data right after its insertion. In case the view would be this. After typing and typing enter the data would already be saved in the comic. What’s the best…
-
4
votes1
answer42
viewsTable does not add last request
Good morning guys, I’ll get straight to the point... I have this Success from my json where validating the following function: for(i=0; data.length>i ;i++) { let cliente = data[i].item; let…
-
3
votes1
answer992
viewsRefresh page in time interval
I need to set the goal: meta http-equiv="refresh" content="30" However I am using Codeigniter and I can’t do it. I tried: $this->output->set_header('refresh:30;url=minhapagina.php'); Any…
-
3
votes1
answer236
viewsEnter dates in the database?
How do I insert maximum days of a month via Insert into codeigniter? Ex: data | campo2 camp3 01/01/2014 | 02/01/2014 | 03/01/2014 | . | . | . | 31/01/2014 |…
-
3
votes1
answer1244
viewsCodeigniter opens many connections to the database
I have an application on the client and they are complaining that it is opening many connections with the database, dropping the server. I searched the Internet and couldn’t find anything related. I…
-
3
votes1
answer1381
viewsDoes anyone know how to connect the oracle to codeigniter?
I’m not getting the connection codeigniter in the oracle. Displays this error: A PHP Error was encountered Severity: Notice Message: Use of undefined constant OCI_COMMIT_ON_SUCCESS - assumed…
-
3
votes2
answers526
viewsRecover string in database in a dynamic form_dropdown
I am trying to retrieve from the database a string in a field dropdown of a form on a page of update, my view goes below. $option = array(NULL => 'Selecione uma categoria'); foreach…
-
3
votes1
answer72
viewsUpload does not work online, it appears on the screen part of the code of the Upload class
I created a project in PHP using the Codeigniter that uploads an image to the server. Locally it works perfectly, but online, hosted on a Locaweb server (Windows platform) shows an error, when I…
-
3
votes2
answers3089
viewsHow to filter results and reload the/view page in Codeigniter?
I have a code in Codeigniter that takes a value of a select dropbox in a view and leads to a second view showing the results in a table. In this second view, I kept the dropbox and the button of…
-
3
votes1
answer250
viewsError while uploading videos to Codeigniter
I am unable to upload videos in Codeigniter, the function works with pdf, but not with other extensions. The return I have is file type not allowed. Controller: public function add(){…
-
3
votes1
answer257
viewsAffiliate script with team help (Problem with recursion)
I am writing a code in Codeigniter, for the dissemination of a free and non-profit Storage cloud software. However, to work, we will have an affiliate system, which assigns a certain amount of…
-
3
votes3
answers6202
viewsPass View Variable to Controller
I’m doing a forum with PHP and Codeigniter, and each category must display its respective sub-categories, however, all categories, show all sub-categories, how can I make each sub-category appear…
-
3
votes1
answer121
viewsPrivate functions via ajax - Code Igniter
I am using Code Igniter to create a web system and so that the user does not update the losing page that is already open I use all calls via ajax within "modules". The problem is that if I put a…
-
3
votes1
answer367
viewsCodeigniter:function Anchor
I’m starting with Codeigniter, I use version 2.2 and I’m having problems using the function anchor. The following error occurs: Fatal error: Call to Undefined Function Anchor() I don’t know if the…
-
3
votes1
answer1261
viewsHow to recover Codeigniter session data directly from database?
I am trying to recover data from my table ci_sessions of CodeIgniter that are saved in a serialized way. $data = $this->db->get_where('ci_sessions', array('id' => $id))->row('data');…
-
3
votes1
answer490
viewsView routes in Codeigniter
I downloaded a real estate script that was made with the Codeigniter, the problem is I’m trying to see where the controllers and views of it, because I went in the folder application/controllers and…
-
3
votes0
answers98
viewsCodeigniter 2.2 and Doctrine 2
I have installed CI2, Doctrine 2 and HMVC. I followed the steps of this website except for Smarty that I didn’t find necessary. My folders are organized as follows: ->application ->cache…
-
3
votes1
answer226
viewsExtend new CI class
I have the following code: class MY_Controller extends CI_Controller { function __construct() { parent::__construct(); } } I need to build a class where I do the Ci_controller extension, so I don’t…
-
3
votes2
answers28732
viewsPersonalize an Alert
I have a code that by clicking the button it opens a new tab. Depending on the condition of the report it shows a Alert that by clicking on OK it closes the tab that was opened. Is there any way I…
-
3
votes4
answers2235
viewsCodeigniter and . htaccess in subfolder on server
My goal is to make an application written in Codeigniter run on the server in a subfolder and not in the main domain, example: www.dominio.com.br/foo. The error is about redirecting, every request…
-
3
votes0
answers20
viewsCodeigniter - Centos 6 - PHP - <?= and <??
I have installed in my Windows 7 the xampp to develop a system in Codeigniter. Beauty, no problems.... I use the tags <?= $variavel; ?>, to print something in the view ... it works that is a…
-
3
votes2
answers916
viewsSum of table fields with PHP and Codeigniter
I need to add some fields from a table. I have the transaction id and need to add all fields amount with id 224, all with 222.…
-
3
votes1
answer73
viewsFatal error: Call to a Member Function ola() on a non-object
I need to use libraries in Codeigniter version 2.1.4 and I have problems using these libraries myself. After loading the library (with $this->load->library('Nomedabiblioteca'); in my…
-
3
votes1
answer31
viewsError running Field Checklist
I have the following code: $funcionario_materiais = array(); foreach($_POST AS $key=>$val){ $tmp = explode("_",$key); if($tmp[0]=="materiais"){ $funcionario_materiais[$tmp[1]]=$val;…
-
3
votes2
answers1084
viewsUpload Multiple Codeigniter
I have a form for multiple image uploads using codeigniter: <input type="file" name="files[]" id="filer_input2" multiple> And PHP: #configuracoes base $config['upload_path'] = $diretorio;…
-
3
votes1
answer536
viewsPass a query array to all Codeigniter pages
Has a view that repeats itself in all others through a $this->load->view('menu'); would have a way to load the dynamic menu query in all other views with the line above? If I do this on all…
-
3
votes2
answers1108
viewsValidating an input type field against a select
I am working with Codeigniter/Bootstrap and need to validate one field of my form according to another. I have a select field called Contract, with two possible options (Yes or No) and another input…
-
3
votes1
answer164
viewsHow to update the database to several codeigniter-related tables
I’m trying to do an update with codeigniter on two related tables, but I’m not getting it. I’m using the following code. $this->db->set('p.page', $dados['page']);…
codeigniterasked 9 years, 4 months ago Ricardo Ferreira 31 -
3
votes1
answer109
viewsHow to put a string at the end of all Urls via PHP (Codeigniter)
I’m using the Codeigniter framework to develop a system. But in the company where they are using, the pages are not updating right, it is as if the cache is full page and only when I give an F5 it…
-
3
votes1
answer1727
viewsSession Codeigniter
I have this normal Septssion: foreach ($nofeatured_prods as $k) { $_SESSION['itens'][$k->id] = $k; } How do I assign equally, however, in codeigniter?
-
3
votes1
answer598
viewsPrint 2 records per page with Mpdf
My problem is this: I need to print duplicates. I am using it to generate the Mpdf. When I need to emit only one blz, it works perfectly, but when I need to print more, it cuts, there is a part on…
-
3
votes2
answers1982
viewsHow do I find out the current version of codeigniter?
How can I to find out the current version of Codeigniter via code? Is there any constant or function that does this?
codeigniterasked 7 years, 10 months ago Wallace Maxters 102,340 -
3
votes2
answers906
viewsWhat’s the best way to call files?
Well, I use codeigniter (but not specifically in it, anyone who is MVC). I wanted to know the best way to call my files, css, js, fonts, etc. I think the best way is to call in the controller…
-
3
votes2
answers933
viewscodeigniter error 3: Undefined variable: alert
I’m making a recording in the bank received from a form, it’s recording, only I want a message to appear after the recording, which was successfully received. But it’s giving the error below. I’ve…
-
3
votes2
answers5168
viewsUpdate with Codeigniter
I am trying to update my database using codeigniter, however the update is not running. HTML: <?php echo form_open('Texto/alterarTexto', 'class="form-horizontal"'); ?> <fieldset>…
-
3
votes2
answers350
viewsPHP + Codeigniter - Persist query parameter in pagination
Dear friends I resort to help in PHP+Codeigniter. I am new to Codeigniter and I have the following question. I would like to Persist the Pagination Search parameter that I’m not getting. After…
-
3
votes1
answer238
viewsDifference between base_url(); and base_url('Assets/example');? >
What would be the difference between them ? Because in my project I used both and could not identify the difference.
-
3
votes1
answer31
viewsUnablex to load your default controller. Please make sure the controller specified in your Routes.php file is Valid. Codeigniter
This error appears when Load in the Initial method: Unablex to load your default controller. Please make sure the controller specified in your Routes.php file is Valid. And I’m running the project…
codeigniterasked 8 years, 12 months ago Sr. André Baill 6,946 -
3
votes2
answers374
viewsSelect and view data with Ajax
I got the following ajax: var id = $('#idCliente').val(); $.ajax( { url:"/Administrar/chamadas/ajax/endereco/" + id, dataType : 'json', success:function(result) {…
-
3
votes2
answers583
viewsHow to load external CSS via Codeigniter?
I need to call this sheet external style, but it does not load at all, I saw a similar question here, but I did not notice a conclusive answer, since I am using Codeigniter 3 below. The error that…
codeigniterasked 8 years, 9 months ago Aminadabe Silva 415 -
3
votes2
answers3510
viewssend email to codigneter using SMTP GMAIL LOCALHOST
I cannot send email, from the error message below. I am using xampp, via localhost. ello: The following SMTP error was encountered: Unable to send email using PHP SMTP. Your server might not be…
codeigniterasked 8 years, 7 months ago Flavio Burjato 31