Most voted "codeigniter" questions
Codeigniter is a framework for developing PHP applications.
Learn more…1,026 questions
Sort by count of
-
1
votes1
answer132
viewsError in a Codeigniter library
I have the library next in codeigniter: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Breadcrumb { private $breadcrumbs = array(); private $separator = ' >…
-
1
votes1
answer286
viewsconditional search in PHP using codeigniter
I have this table in my database I need to select all products belonging to a brand, but if the product code is the same you should not repeat the product, you should use the same product. Example,…
-
1
votes0
answers95
viewsInstallation of Composer Package
I can’t install a package from commiserate on my windows computer that I needed because a Codeigniter documentation library depends on that package to run. I am using Windows 7 with Gitbash and…
-
1
votes1
answer151
viewserror while trying to download file in codeigniter 3
i made a function to upload files and this works properly, now in my view I added a link to download the file. link in view: <td><?php echo…
-
1
votes2
answers76
viewsProblems with download in Codeigniter 3
In the view I created this link: <td> <?php echo anchor("./anexos/cartao-confirmacao.pdf", "<i class='glyphicon glyphicon-arrow-down'></i>", ['class' => 'btn btn-primary…
-
1
votes2
answers658
viewsCheck return ajax, works only the first time
Good morning friends, I have this code: $(document).ready(function(){ $('button').on('click',function(e){ e.preventDefault(); var codigo = $(this).attr('id'); $.ajax({ type: 'post', url: '<?=…
-
1
votes1
answer346
viewsCreate a preview of an XML file with Codeigniter
I am creating a stock input/output system using an XML file For this, I need to create a preview of the XML content that the user is uploading (as a table, just for the person to know if it is that…
-
1
votes1
answer557
viewsEdit status of multiple records with checkbox marked?
I need to send an array with the id of the records that have the checkbox checked, to edit the status field at once. Note1: All records will undergo the same change listed in a select. Note 2: I can…
-
1
votes1
answer179
viewsGet data as Array and not as object - Codeigniter
Hello! I intend to get the table data tbl_devedor_parcela, using the field negociacao_id, thus, I need to recover data from table tbl_devedor_parcela as array de objetos. The first table ID…
-
1
votes1
answer196
viewsReturn result_array codeigniter
Having the following table: tbl_event `id` INT(11) NOT NULL AUTO_INCREMENT, `descricao` VARCHAR(255) NULL DEFAULT NULL, `evento_id` INT(11) NOT NULL, `devedor_id` INT(11) NOT NULL, `negociacao_id`…
-
1
votes1
answer98
viewsGet INT as INT and not as string - Codeigniter - Ajax
I have the following tabela, controller and model, I want to get what it is int as int, and not string. Note that when the item is recovered, the field int is in quotes. How do I recover the data…
-
1
votes0
answers240
viewsMysql Codeigniter Parcel System
I need a system that registers multiple installments of title in my Mysql BD I have this code below that registers and repeats the Insert according to installments Qtde informed, but it happens that…
-
1
votes1
answer64
viewsSystem error after it went up to server
The system was developed in php using the codeigniter 3 framework. Works great on localhost. I went up to the server and started giving problems. I checked php installed and is in version 5.6…
-
1
votes1
answer33
viewsUpload error - Codeigniter
I am uploading a csv file, but it returns the invalid extension error even though the extension is released. I went to look for the cause of the error and found that it is because of a line that is…
-
1
votes1
answer88
viewsPlaying Controller Info for View CI3
I’m working with Codeigniter3 in the MVC model and I’ve been having problems for a long time, I’m slowly solving some problems here and there and I’m almost getting to the point. I’m making a query…
-
1
votes1
answer554
viewsDisplay ajax data, returned by controller in view
Hello, I’m having trouble displaying the data returned by the controller via ajax call my js is this: var requestList = $.ajax({ type:'GET', data:null, url:"index.php/Pages/loadComentarios" });…
-
1
votes1
answer417
viewsEncryption library - Codeigniter
I have a problem, I’m running an ID through GET and I need to encrypt it. So, I decided to use the codeigniter: Encryption native library, but when the message is encrypted, it generates many…
-
1
votes1
answer166
viewsUrl Amicable Codeigniter
In the Codeigniter there is a configuration file called php router. where we set up the friendly urls. At the url of the site I’m doing I need to leave 2 dynamic parameters like this:…
-
1
votes1
answer142
viewsHow to list data from one table, even the other (INNER JOIN) being empty?
On my page index, own a input search for the user to search the data in the database, this input calls this method in the Controller: public function pesquisar() {…
codeigniterasked 6 years, 6 months ago Ramiro 99 -
1
votes2
answers326
viewsError when trying to connect to SQL Server with Codeigniter and PHP 7
Good afternoon, I started having problems with my CI when updating my development environment (windows + xammp) and production (Ubuntu + apache) to the latest version of PHP 7.1.10. When trying to…
-
1
votes1
answer280
viewsForeach inside foreach is doubling PHP values?
I’m having a problem looping, I am working with 3 tables of the Bank, would be table Anuncio, Opcoes_Anuncio(interconnected) and Opcoes, I’m trying to bring the option data along with the selected…
-
1
votes1
answer150
viewsHow to view data from three tables in a view?
I have three tables: Process, Progress and Costs: how do I display the data of the three in a View, and the tables Tempo and Custas have as a foreign key, the primary Process key? I made a foreach…
-
1
votes1
answer86
viewsCodeignite - Why doesn’t my route work?
I have the following route in Routes.php: $route['xxxxx/(:any)'] = 'Order/index/$1'; And the following index in the Order controller: public function index(){ switch( $this->uri->segment(2)){…
-
1
votes0
answers37
viewsBank query problem with Codeigniter
I have a table in the bank (use_shopBlock), which locks a button in the view, but when I give a <?php var_dump($shopBlock);?> the result is NULL. My view: <?php $shopBlock =…
-
1
votes0
answers31
viewsGenerate a Generic String with two table data - Codeigniter PHP
I’m in a little trouble. I am developing a system for learning, but one of the requirements that I "invented" myself is to generate a base string. I will try to detail. Tenho a tabela **term** com…
-
1
votes1
answer69
viewsDeleting a Specific Image from a File
I am currently working on a new project, using Codeigniter, it is my first experience and I do not find great help, I want the user to be able to delete a photo chosen by him from his folder, The…
-
1
votes0
answers57
viewsPhp Codeigniter - Algorithm for generating string base from database data
Good night guys, how are things? Let’s get to my problem. I have the data saved this way in the database: Basically a project has TERMS related to it. Terms in turn may have synonyms. I want my…
-
1
votes1
answer274
viewsCodeigniter routes
Galley the default route of the site is "http://localhost/" or "http://localhost/index.php" when I go to the login page for example, "http://localhost/login" and not…
-
1
votes1
answer147
viewsDATATABLE CODEIGNITER - INNER JOIN QUERY
Hello! I’m using dataTable in codeigniter and performing a query through the field search Seeing the query below, it works well when it comes to query within the same table tb_pagamento. Now I want…
-
1
votes1
answer46
viewsFor every time I make a page in Codeigniter I need to put the links of JS, UI, VALIDITY?
I could use the help of the experts there. Every time some codeigniter application I need to put the links, that usually get in the head or footer inside the page I created? Example: I create a User…
-
1
votes1
answer226
viewsHow to use the between command in codeigniter to generate report
I need to generate the following report: The user selects the time interval (start date and end date) and the revenue report is generated by displaying the value of the added recipes. Follow the…
-
1
votes1
answer297
viewsCodeigniter 3.1.9 - Database connection
I am developing a web application using version 3.1.9 of Codeigniter, but I’m having difficulties connecting to the database. Follows configuration: $active_group = 'default'; $query_builder = TRUE;…
-
1
votes1
answer145
viewsError in Count()
I need to put a website on the air (I didn’t make the site), and I need to adjust some things on it. I am facing a problem in a dynamic menu: when I am on the home page it gets ok, but if I browse…
-
1
votes1
answer197
viewsEdit Image Upload with Ajax and Codeigniter
I’m having a difficulty that is the following , I have a CRUD that the upload works right , when editing this CRUD I can edit all the data including the image upload all without problem , however if…
-
1
votes0
answers27
viewserror in Session Codeigniter
I have a dynamic menu that does a search in the bank and fills this menu, when I’m at home it works normally but when I change the page the value returns null and generates error in count(), I…
-
1
votes2
answers70
viewsHelp with an associative table of friends
I have a table of friends, which has the following composition: id_friends (id of the relation) id_usuario_de (id of the user who sent the friend request) id_usuario_para (id of the user who…
-
1
votes1
answer523
viewsImport CSV file to Mysql
I have a database with these two tables: TABELA CONTRATO id contrato pessoa_id TABELA TITULO id titulo valor vencimento contrato_id I need to import the column contrato, retrieve the ID of the…
-
1
votes1
answer369
viewsObject not found when clicking on hyperlink
Hello, I am learning IC and I came across the following problem. By clicking a link in a home test, I would like to be transferred to another page and use another controller, but by clicking, I get…
-
1
votes1
answer39
viewsPosition elements on the screen
How to position elements without breaking I have a screen with some inputs, am using bootstrap and defining the sizes of the fields, but still they are broken as in the image below. I need them to…
-
1
votes1
answer287
viewsSelective foreach two tables
Please help me, I’m a beginner. Well, I’m with a website with codeigniter, it’s showing my recipes perfectly on: <?php foreach ($receitas as $receita) :?> Now I want to create a loop that only…
-
1
votes2
answers111
viewsConverting JSON to HTML via AJAX into Codeigniter
How do I use the JSON return in HTML? Follow the codes. Ajax function: $(document).ready(function(){ $.ajax({ url:"<?=base_url('pedido/listar');?>", dataType: "html", success: function(data) {…
-
1
votes0
answers116
viewsChange website language with Codeigniter
I have a site in Portuguese and French, created two folders within application, being like this. application/language/portuguese-brazilian application/language/french Within it I placed the files in…
-
1
votes1
answer91
viewsPHP iframe opening more than one session for the same browser
I am working on an Adsense system, and on the same page has several iframes called, the problem is that I need to limit the amount for each page Only because the access is very fast he creates a…
-
1
votes1
answer320
viewsCodeigniter and MYSQL - Query using CASE WHEN returning different result
I’m using the Code Igniter 3 and I’m doing a database query with the following code in the file Model: $this->db->select("*"); $this->db->where("CASE WHEN code = '001' THEN '1' WHEN code…
-
1
votes0
answers989
viewsConvert PHP to PDF
I need to convert HTML generated PHP boletos to PDF. codeigniter-bolete I tried to use the Dompdf library, as well as FPDF and finally MPDF (the latter, from what I read on some forums, would be…
-
1
votes2
answers197
viewsHow to receive an array of results in a variable
Good morning, I’m trying to carry out a very simple project using the Codeigniter framework, but I always had this question before even implementing a framework, I always beat myself up to receive…
-
1
votes2
answers181
viewsHow to assign to a variable the results of an array
I am receiving several times in a function, when calling the function in the Controller use the foreach and wanted these results(times) to be printed on the screen for the user to see, but using the…
-
1
votes0
answers26
viewsProblem using Hooks to control page authorization
I’m trying to use the Hooks of Codeigniter to prevent access to certain pages without being logged in. For this I enabled the Hooks and created in the archive application config Hooks.php the…
-
1
votes0
answers51
viewsEdit using foreach (Edited)
Good evening. I have a form where I want to edit some information from a certain sector. Since the select Eps are a foreach of the bank, but I want the ones I want to edit to be selected, however,…
-
1
votes1
answer56
viewsDatabase error that appears when updating the page - SQL server
I have a system made in CODEIGNITER where several users access simultaneously, and lately I’m receiving complaints that on several pages of the portal, appears the following error: "Unable to…