Most voted "codeigniter" questions
Codeigniter is a framework for developing PHP applications.
Learn more…1,026 questions
Sort by count of
-
0
votes2
answers26
viewsCheck that the column value is "Base"
I needed to check if in the table mytable, in the column mycolumn, the value is 'meuvalor'. My controller: public function GetValue() { $this->config->set_item('language',…
-
0
votes1
answer176
viewsLimit the number of rows in the second table?
Hello, good night! I have two tables (Process and Movements). I need to generate a report with the Process data, along with the most recent progress. The query I wrote is returning me all the…
-
0
votes0
answers238
viewsError connecting Codeigniter with Oracle
I am trying to connect the codeigniter with oracle and is giving this error: Fatal error: Call to undefined function oci_connect() in C:\Apache24\htdocs\system\database\drivers\oci8\oci8_driver.php…
-
0
votes2
answers296
viewsForm registration confirmation email with codeigniter
Eai personal. I have the following scenario... I wanted to send an email to the user of my site. For example: - Welcome to the Fulano company, wait for us to contact you soon. This is just an…
-
0
votes1
answer96
viewsPhpmailer - Annex has no extension
Good, when sending my attachment using Phpmailer, if I don’t add an extension after the variable, I can’t get the selected file extension: $mail->addAttachment($uploadfile) should send the file,…
-
0
votes1
answer79
viewscodeigniter development subfolder does not work
good morning. I am maintaining a PHP back-end that uses the codeigniter framework. To test the new codes, I created a subfolder in the system (testing) and copied the files from the main directory…
-
0
votes1
answer102
viewsPHP - Move Controller to Codeigniter view/ Active menu
I want to make an active menu shape stay colored, so I separated my template has: View: Menu_lateral.php - place where you have the side menu; Controller: General: Where would I tell which menu is…
-
0
votes1
answer144
viewsMultiple Applications with shared settings in Codeigniter
I have multiple applications in codeigniter where I configured based on that tutorial. Now my briefcase applications is like this: applications/gerencia/ applications/gerencia/config/…
-
0
votes1
answer19
viewsVariable with null value when calling model method
I’m working with codeigniter. By submitting a form I am sending the data to model through getters and setters. This is my input div class="col-md-6"> <div class="form-group"> <?php echo…
-
0
votes2
answers54
viewsOnly one line as true, MYSQL - Codeigniter
Hello! Since I have the following table: DROP TABLE IF EXISTS `tb_conta`; CREATE TABLE IF NOT EXISTS `tb_conta` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `nome` VARCHAR(255) NOT NULL, `tipo`…
-
0
votes1
answer64
viewsTrying to get Property of non-object error using codelgniter
I am trying to access in the view the value of a variable called $noticia that is in the controller, however appears the error Trying to get Property of non-object. Controller file: public function…
-
0
votes1
answer50
viewsMVC Codeigniter
I have a question regarding the passage of parameters between the MVC. I’m developing the e-mail confirmation on a project. After clicking the link to confirm sent by email, the system picks up GET,…
-
0
votes1
answer60
viewsBring multiple values from a Join in mysql
Guys, I have a question about a mysql query using the Codeigniter Framework. I have the following tables: Table Products |--------|-----------------| | id | nome_produto |…
-
0
votes1
answer32
viewsProblems to make a free query with codeigniter
I am here today to ask for the assistance of those who are more experienced in the matter than I am. I have a free query with codeigniter, that of the error in the execution, but when I run it in…
-
0
votes0
answers152
viewsLosing Session Codeigniter
Good afternoon guys, I started an internship and they gave me an Commerce to stir, it has Codeigniter (I had never touched)and a library called ion auth(for login) but when I login it sets the…
-
0
votes1
answer1384
viewsError The requested URL was not found on this server
Hello, currently I am beginner in codeiginiter and need to deliver a project CRUD in college, so far I made connection with the bank, listed everything. But when I click on add new error occurs, I…
codeigniterasked 6 years, 1 month ago Demetrius Reis 81 -
0
votes1
answer60
viewsHow to bring data from another table related to an id_user (JOIN??)
I have the following tables: Users And investments The investment table has the user id. I’m already able to register. How do I show the investments made by a user on the screen? I’m already able to…
-
0
votes1
answer91
viewsCodeigniter validation error
I am trying to correct validation problems of my code, at first I did the test only with the label "Name", where it is required and can not contain numbers or characters, but this registering ALL.…
-
0
votes1
answer132
viewsAccess Prohibited when copying and pasting new home.php
I have a project and it is all in English on the main page being "home.php", I can access it normally in place using "localhost/Colwithgit", however, I need to make a version of this page in…
-
0
votes1
answer64
viewsBrowse the PHP Array
I have the following call for a model` $dados = $this->atleta_model->get_atividade_semanal($__cod); However it is returning me an object that I cannot iterate, I need to go through it to put…
-
0
votes1
answer45
viewsJquery function does not access variables from the form
I need to calculate the value of a service of a petshop project, where it is necessary to inform the data: id_porte (small, medium, large), id_categoria_animal (dog, cat), and what the service…
-
0
votes0
answers98
viewsCodeigniter- Query in database always returning null
The getlocal function which is a query in the database is always returning null even after I do an Insert in the database denuncia_model.php file class denuncia_model extends CI_Model { function…
-
0
votes1
answer38
viewsTake user in query and add variable in email
I need to take the USER information from the Mysql table and send it along to the email. How do I add together the Query to take the user table information and create the variable $usuario to…
-
0
votes1
answer51
viewsCreate new tab when changing ID
Good afternoon, I’m generating a report on PDF and I need to generate a new page when changing user code Is generating so . At the moment it is only inserting the line of the items and ignoring the…
-
0
votes1
answer758
viewsForeach in an HTML table - PHP - CODEIGNITER
Hello, I’m doing the following: Model: public function getLocatarios() { $this->db ->select('*') ->from('tbl_locatario'); return $query = $this->db->get()->result(); } Already on…
-
0
votes1
answer234
viewsForeach with table
I am creating a website that aims to show the games that are happening in the world in real time. I’m trying to make a go for the rows of the tables to be created "alone" according to the amount of…
-
0
votes2
answers793
viewsAdd data to array() in PHP
I’m developing a PHP cart, however, when adding items to the array, I’m not getting it, I tried it as follows: if($this->session->userdata('cart')==true){…
-
0
votes1
answer29
viewsInsert records Cart codeigniter
I have the following PHP if($this->input->post('stock_unity_push')=='0'){ $stock_unity_push = 0; } else { $stock_unity_push = str_replace(".", "", str_replace("R$ ", "",…
codeigniterasked 5 years, 11 months ago Sr. André Baill 6,946 -
0
votes1
answer155
viewsHow to keep form data after submitting using Codelgniter
I am beginner with the use of Codelgniter Framework, I have a doubt how to keep the data of my forms after submitting the page, I am creating a form with many fields to be filled, if the user leaves…
-
0
votes1
answer64
viewsCodeigniter 3 My_model database
I’m developing an application where every customer will have their database. My scenario then will be: Client will log in and through his ID apply the bank configuration for this client. So in…
codeigniterasked 5 years, 11 months ago Thiago Moreira 61 -
0
votes3
answers933
viewsTreat error return in codeigniter
A call to the delete method returns me the following error. Error Number: ERROR: update or delete on table "matricula" violates Foreign key Constraint "matricula_matricula_cobranca_fk" on table…
-
0
votes2
answers105
viewsgetJSON with parsererror
I am trying to realize the deletion and an item for this controller send a code to view 0 or 1, but the JS function responsible for treating that return is always falling into the fail with the…
-
0
votes0
answers153
viewsCodeigniter 3: Batch update update_batch()
I need to batch update a table, I have an object called $data as the example below: Array ( [0] => stdClass Object ( [nota] => [frequencia] => [temaTcc] => [idNotaFreq] =>…
-
0
votes1
answer336
viewsDynamically change session expiration time - Code Igniter 3
Like me Seto a config.php file configuration item before he was loaded? I need to change the item $config['sess_expiration'], according to the user. I tried it this way: Php user. public function…
-
0
votes3
answers323
viewsGroup by age group
Good evening, I have to group and count how many employees I have with sex and age group. Follow the html code <div class="card" style="margin-top: 5%;"> <div class="card-header…
-
0
votes0
answers48
viewsError using Join and Count
Hello, the error now is that it is adding the Codsector. The values would be 6 and 3, but is coming 6 and 6. Follow photos and codes. SELECT *, COUNT(`funcionario`.`funcionario_CodSetor`) AS total…
-
0
votes0
answers81
viewsPage search result does not load results! I cannot find the error!
I type the name in the search field and click search the screen is cropped as in the image below. When I refresh the page the result appears and quickly disappears. I made a gif below showing the…
-
0
votes1
answer44
viewsProblem in Form with Ajax and Codeigniter
Good night, I am using Codeigniter 3.1.9 on my default server. I have a form that is below. In the case , I can’t let the State stay in a Select and the City update itself with ajax according to the…
-
0
votes1
answer56
viewsDate in Codeigniter Framework
I’m trying to create a Date field in codeligniter for the user to inform Data, I created a helper file with the date code (actually I used a code that was helpful to another question on this site),…
-
0
votes1
answer103
viewsEncoding problem in Codeigniter
I use Postgres as a database and my table is set as UTF8. ENCODING = 'SQL_ASCII' LC_COLLATE = 'en_US.UTF-8' LC_CTYPE = 'en_US.UTF-8' But when I make an appointment he returns to me like this. I’m…
-
0
votes2
answers163
viewsInclude files in the codeigniter view
Hello, I’m trying to call a js/css file that is inside application/views/app.js, but I’m trying to include it within a view that opposes in the same folder application/views/login.php but a 403…
-
0
votes1
answer332
viewsProblem accessing a controller in CODEIGNITER php
I have a View with a nav-link: href= echo base_url("application/controllers/Login_controller.php") By clicking I am redirected to the correct path.…
-
0
votes1
answer916
viewsAjax Request Issue - Maximum call stack size exceeded
Good afternoon, I have this simple code below using js but it returns me the error that is in the print below: I am using Codeigniter 3.0.10, Ajaxm jQuery 3.0.0 Minifed and Bootstrap 4 **Code:*…
-
0
votes1
answer99
viewsCodeigniter/PHP - Problem sending Model Data to View
Good night, I am using Codeigniter 3.1.10. I have a problem sending a specific data from the Model database to the Controller: var_dump($data) returns me only the array I passed that would be the…
-
0
votes1
answer42
viewsDeduct quantity within a PHP loop
I got the following Array(): Array ( [0] => stdClass Object ( [inventory_id] => 1 [product_id] => 1 [order_id] => 0 [product_quantity] => 15 <-------- [notify_quantity] => 1…
-
0
votes1
answer951
viewsHow does csrf-Protection work in Codeigniter?
Today while working on a codeigniter project, I came across the concept CSRF - Cross-site request forgery. This happened when I got error 403 - permission denided when making a GET request in AJAX…
-
0
votes1
answer30
viewsHow to make a database information array in codeigniter
For example, I am sending an id array [0] => 1, [1] => 3 and I want to show this in my html as a result. In the case that you search in the database with the first id save in the array and…
-
0
votes1
answer34
viewsError handling of special characters when sending to iso-88591 and utf-8 database
Good evening friends, I have a problem where I can’t send data correctly to the database, when this data goes with special characters, name like D'vila always give errors. Has anyone ever had this…
-
0
votes1
answer91
viewscodeigniter 3 only default url works
I have a program made in PHP with codeIgniter. In my controler I have two methods, put in the file Routes.php so $route['default_controller'] = 'carta';, calls the index() function. However…
-
0
votes2
answers54
viewsCodeigniter, update value with "CURRENT_TIMESTAMP"
Good, I want to update a table where in one of the variables I want to insert the value "CURRENT_TIMESTAMP". In a normal situation just send the value as a string and sql would interpret it and…