Most voted "codeigniter" questions
Codeigniter is a framework for developing PHP applications.
Learn more…1,026 questions
Sort by count of
-
1
votes2
answers217
viewsWhy does ajax post request for the controller not work?
I am using codeigniter, I needed to execute a function(parm1) of the model in the view, so as recommended I made a request for the controller, in the controller I read the model and call the…
codeigniterasked 5 years, 8 months ago Pedro Correia 131 -
1
votes1
answer133
viewsCategory and subcategory in PHP listing
I have the following function: public function listar($tipo=null){ $this->db->select('p1.*, p2.titulo as subcategoria, p2.id as id2'); $this->db->join("produto_categoria as p2",…
-
1
votes1
answer92
viewsGroup SQL PHP data with sum of records
I have the following appointment: $this->db->select('tbl_supplier.supplier_name, tbl_order_details.*'); $this->db->join("tbl_supplier",…
-
1
votes1
answer720
viewsProblem with Session on Codeigniter after putting website into new hosting
I have the following problem: when trying to accomplish the logon in some browsers or even on mobile phone (it does not occur at all, my friend for example can log in normally), the session simply…
-
1
votes1
answer49
viewsHow to Iterate Checkbox and Foreach in PHP and JS
I have a foreach that shows the data received from the database, I want to display the data only if the checkbox is checked, but the field display works only in the first iteration of Foreach,…
-
1
votes1
answer381
viewsFailed to load helper "Unable to load the requested file: helpers/login_helper.php"
Good morning guys, I can’t load my helper with Codeigniter, I have no idea what happens: my autoload.php is like this: $autoload['helper'] = array('url', 'login'); and my helper is like this:…
-
1
votes0
answers229
viewsError while uploading codeigniter files
I’m having a problem that I can’t resolve regarding uploading files in php with codeigniter upload but get back the message that I have not selected any file for upload. View: <form…
-
1
votes1
answer15
viewsCodeigniter - REST_SERVER and Datatables (plugin)
I’m having a problem using the library REST_SERVER and the plugin datatables. The controller is ok, the problem is in Ajax authentication, because if I use the first request Ajax, as below, I can…
-
1
votes1
answer38
viewsUpload rules in CI do not overwrite
I’m making a form that has 2 types of uploads: one for image and one for file. It turns out that the extensions of both are different, but when setting the file upload rules the same does not…
-
1
votes0
answers66
viewsLeft John of Phpactiverecord using Codeigniter does not work
I’m using Phpactiverecord’s left Join to get data from companies and users, but it’s not working. I use the users and Companies tables as relationship table proposals. I want to get the user data in…
-
1
votes1
answer98
viewsSearch results in Mysql database with Codeigniter
I need to find a result in the database, and show it on the cart screen. I am using codeigniter, already created the model and controller and I am calling in the view, but the result does not come.…
-
1
votes2
answers115
viewsCheck available vacancies - Codeigniter
Hello, I have two tables : benefits_reserve (id_benefits_reserve, data_reserve, associado_reserve); calendar (id_benefits_calendar, start, color); I’m using fullcalendar, my problem is being in…
-
1
votes1
answer124
viewsChange Dropdown name to list item names
Good morning Guys! All beauty? I’m having a huge doubt in dropdown. I wanted to understand how to leave the name of mine dropdown with the list elements name when selected and when the page is…
php javascript jquery codeigniter bootstrap-4asked 5 years, 3 months ago Diêgo Correia de Andrade 390 -
1
votes0
answers124
viewsHelp me assemble an array as a result of a foreach with php
I created a list of students who have their birthday this month, follow the coding: In the coding below the code is searching directly from the database of the student table the students of all the…
-
1
votes0
answers56
viewsError 404 when creating Routes in Codeigniter
well, I can’t create a route for a particular controller and there is always a 404 error when loading the page. In case I set this controller to default_controller the page is displayed normally.…
-
1
votes1
answer83
viewsHelps in date formatting from the database
I am finishing a data filtering system coming from the Database, using BETWEEN, my difficulty is in formatting the field 'date' to timestamp to do the filtering, follow my code: $where = "date…
-
1
votes1
answer63
viewsShow specific dates that are in the Database in Bootstrap datapicker
I need the datapicker to load specific dates dynamically, which are saved in the database, I was able to get it to load manually, but there are several dates and may vary as the user saves in the…
-
1
votes1
answer33
viewsCreate dynamic Divs (Codeigniter)
I need to create multiple Ivs inside a foreach in my view, so far so view: <?php echo form_open('admin/marcacao/registraMarcacoes'); ?> <div class="area-imagem"> <img src="<?=…
-
1
votes1
answer217
viewsfullcalendar error that does not appear calendar when executing code
hello! I created full Calendar with Jscript, but when I am running the code, it appears an error that says full Callendar is not Function. as you can see in the code below var events = []; var…
-
1
votes1
answer27
viewshow to save image name to DB using Codeigniter 4
The only question here is to save the name I catch with var $newname. I can get the name already modified and even print on the screen, but when I step on set() to save in DB nothing happens. The…
-
1
votes2
answers147
viewsquery in PHP is empty but in SQL Server it works
Good afternoon, I have a procedure to run on sql server, if I run directly on SQL it runs normally, returning me the expected line as in the image below: but when I run codeIgniter 3 (php) it…
-
0
votes2
answers1098
viewsHow to create dependency validation between fields in Codeigniter?
In Codeigniter there is the possibility to create rules (Rules) validation for each form field, but what I need is a validation between two fields. I explain: The form has a field called url which…
-
0
votes2
answers2126
viewsError making Ajax request
When I try to make a requisition ajax using the command $.post jQuery appears an error in Chrome Network someone knows what might be this error Code: I’m using the codeigniter framework…
-
0
votes2
answers1675
viewsPHP framework with greater similarity to Codeigniter?
Which of these frameworks below have greater similarity to Codeigniter, so I can have the smallest learning curve? Laravel Cakephp Zend
-
0
votes2
answers587
viewsModel Codeigniter Access Error
I already checked and all my calls are correct. The code ran on Windows and transferred it to Ubuntu. After the transfer gives this error: An Error Was Encountered Unable to locate the model you…
codeigniterasked 10 years, 9 months ago Away 357 -
0
votes1
answer135
viewsEdit similar fields in codeigniter
Imagine the following situation: Registered in a database several phones of a single establishment (local_1, +55 xx xxxx-xxxX; local_1, +55 xx xxxx-xxxY; ...); The problem: Allow the user to edit…
-
0
votes1
answer480
viewsDo not enter equal data in the database
I’m taking data from an XML, converting to array and entering into the database. But I need only results that do not yet exist. It follows below my code, I have tried several other ways, none with a…
-
0
votes2
answers186
viewsWeb service, play dice in empty field bd error
My 3° foreach is creating 2 arrays with null values, I wanted to understand why, so I am not able to enter in the database giving a var_dump($product) it shows me the right results, the 3 products I…
-
0
votes1
answer611
viewsConnect external php script to mysql from a codeigniter server?
I have a XAMPP server on an iMac OSX with a portal developed in codeigniter and would like to integrate into the mysql database an external script that is currently running via terminal and is not…
-
0
votes1
answer677
viewsError with controller in codeigniter named system.php
I’m working on a project that’s in Codeigniter. There is a controller called system.php that is to access the admin, only when I try to access it that way localhost/meusite/system/método, it gives…
-
0
votes1
answer932
viewsSum or subtract a field’s value in a database with Codeigniter
I am using Codeigniter in my application, what I need to do is the following I have in my database a field with name stock, this field is whole value, I need to do the following when I perform a…
codeigniterasked 10 years, 2 months ago Clayton Eduardo Mergulhão 373 -
0
votes2
answers185
viewsLoad codeigniter settings into external file
Does anyone know how I load all the codeigniter settings into any external file, giving a require? For example: A . css file that takes information from the database! Someone knows how to include,…
-
0
votes1
answer1815
viewsInnerjoin no Codeigniter
I’m working on a code and I need to make an association, where I have to count the amount of voting in a video. The problem is that there are 2 tables a videos and voting . In videos is the…
-
0
votes1
answer439
viewsUndefined variable in Codeigniter
I am learning Codeigniter and trying to pass an array to the View through my controller and when I call this array in the view is presented to me as undefined. This is my controller: <?php if ( !…
-
0
votes1
answer565
viewsHow to make a sliced layout using the codeigniter framework?
I’m trying to create a system CRUD using the basic codeigniter, where the page header and footer remain fixed and the content dynamic, but I have no idea how to do that. Someone can help me?…
-
0
votes0
answers335
viewsCodeigniter + JS Temporary Table
I have the screen cad_novo_produto.php where it contains a table and when you click new it will open a popup called cad_componentes_produto where information will be entered and will return to the…
-
0
votes1
answer764
viewsHow to translate codeigniter error messages?
Guys, how do I translate the error messages that codeigniter displays? Where can I download the files and how to set up? Already I am grateful! vlw.
-
0
votes0
answers115
viewsCall error in Bootstrap js file
When I access the browser console it generates the following error: Bootstrap functions like the tooltip work normally even with such error, I am calling jQuery before Bootstrap as in the image: Can…
-
0
votes1
answer73
viewsCodeigniter not registered
I’m trying to enter some data in the database but I can’t. Some problem in the array that Codeigniter returns. Follow the Controller that the form calls: function cadastrar() {…
-
0
votes1
answer1185
viewsInserting data into the BD with codeigniter in different tables in the same controller
I have two tables in the database, a form with Tabela1 fields and table2! the insertion of the Table 1 fields is occurring normally, however, the insertion of the table2 is not taking place! Simply…
-
0
votes1
answer529
viewsHow to save data passed by parameter to the url in a Session?
It is as follows, I was asked to do this: Make the user can pass the parameter in the image url and the desired color (to change the image and color according to the client), at the time you receive…
-
0
votes1
answer64
viewsDifficulty with two Uri segments
They are trying to create the url, where the first segment is the user and the second is his file, e.g.: http://www.exemplo.com/joao/bola Controller public function user() { $user_url =…
-
0
votes0
answers52
viewsServer does not read png files in folder with codeigniter
The server does not read/display PNG files but it normally shows JPG files. Example: host.net/new/Assets/img/file.png (appears in browser) host.net/new/admin/Assets/img/file.png (NOT shown in…
codeigniterasked 9 years, 6 months ago Michel Souza 25 -
0
votes0
answers297
viewsSending of bulk emails
I need to send bulk emails with PHP, as I can do this without having to wait for PHP to finish sending the emails and then reload the page? For example, I have to send 100 emails, but I want to…
-
0
votes1
answer177
viewsData array for controller
good night My controller(1) receives the data via input post from the fields of a form and throws them into an array. Later the data is sent to a view (email template) which will not be rendered. My…
codeigniterasked 9 years, 6 months ago Eduardo Paludo 41 -
0
votes1
answer901
viewsSetting controller paths in Codeigniter directories
I have many controllers in my project, with this I divide the controllers into folders, website in the site folder, admin in the admin folder (within controllers). But I can’t access the controllers…
-
0
votes1
answer252
viewsCodeigniter 2 Paging Error
I made a system in IC 2.0 and detected an error in the pagination. The configuration script is as follows: $this->load->library('pagination'); $query =…
-
0
votes0
answers361
viewsHow to rename multiple input file files?
How to change the name of the files going to a particular directory ? This is my code; $upload_files = $_FILES['files']; // Inicia o array dos dados que serão inseridos $conf2 = array(); // Varre o…
-
0
votes0
answers87
viewsAdapt a php plugin with Codeigniter
How to adapt the plugin Croppic for cutting images? I have two files that I turned into Ibraries, but I can’t pass the parameters to that library. The plugin is this:…
-
0
votes1
answer1242
viewsCodeigniter - Postgresql database query (multi database)
Well, I am developing an application that makes a listing. The listing is produced by consulting a database. The x-list is generated only by the query in the x-bank, the y-list, generated only by…