Most voted "codeigniter" questions
Codeigniter is a framework for developing PHP applications.
Learn more…1,026 questions
Sort by count of
-
0
votes5
answers195
viewsSending view string to controller via Ajax. Codeigniter, javascript and php
I’m trying to send information that is in the javascript code block to my controller, but I’m not sure how to capture the information in my controller. Follow view Javascript code: <script…
-
0
votes1
answer61
viewsEncoding error in SQL Server Docker
My mistake is this: Type: Error Message: Undefined class constant 'SQLSRV_ENCODING_UTF8' Filename: /var/www/html/api.dev/public/system/database/drivers/pdo/subdrivers/pdo_sqlsrv_driver.php My PHP…
-
0
votes0
answers53
viewsJSON returning two different PHP errors
I’m using PHP with Codeigniter, and is giving this error in an ajax I’m using, I can’t figure out what it is, I get these two messages: syntaxerror: Unexpected token < in JSON at position 1, And…
-
0
votes1
answer188
viewsNew route does not work codeigniter
Hello, I created a controller that calls a function with a variable in the index, Mechi in the route works perfectly, only now I created another function within this same controller and it does not…
-
0
votes2
answers330
viewsjavascript response does not appear on the page, only on the console
Good night, I’m using codeigniter, I’m implementing the pagseguro api, and I’m using a javascript to set the session id and call the payment methods, so far it’s all working, only in one function…
-
0
votes1
answer29
viewsLink to modal window crashes when browsing paging in a Codeigniter application
I have an application developed in Codeigniter with Bootstrap, with all navigation structure using the Routes and pagination. When I remove the pagination, the delete modal window opens correctly…
-
0
votes1
answer130
viewsHow to bring an array via ajax and place results in a select
Hello, I am trying to bring an array via ajax and play the result in a select, I can make a query via ajax where each client I select in a select it makes the query via ajax and returns the services…
-
0
votes1
answer55
viewsHow to update a helper function with ajax
Hello, I need help that gave a knot in the head, I am working with codeigniter, I have created three functions in my helper consulting the database, and I display a result in Divs with the amounts…
-
0
votes1
answer25
viewsHow to remove duplicate elements in a multidimensional matrix
Could someone please help me, as I do to remove the elements of the duplicated array taken into account the key "Name", however returning from the duplicated Names which has the longest date <?…
-
0
votes1
answer58
viewsError:You must use the "set" method to update an entry
Hello, all right ? I’m having trouble sending data to my database. I’m trying to enter data into the BD but, error occurs on this line : $categoriaModel->set('nomecatego',…
-
0
votes1
answer628
viewsLog out after 5 minutes of inactivity
Hello, I am lost in this logic, I am using codeigniter, and I am trying to expire the session after 5 minutes of inactive (in case the user does not access the page for up to 5 minutes), I tidied up…
-
0
votes1
answer27
viewsButton does not submit to the form within a modal
Good evening, I have a problem submitting a form, I am using codeIgniter 3 and I have the following screen: <!-- modal --> <div class="modal fade" id="modalArea" tabindex="-1"…
-
0
votes0
answers14
viewsCodeigniter controller does not show dropdown
I’m having a little problem with the dropdown menu and my codeigniter controller. I have in my controller the variables for the dropdown content, but it’s not working. They’re just not working…
-
0
votes0
answers19
viewsFind existing days between two predefined dates
I am implementing a system of calendars used for marking warnings in PHP with Codeigniter. I would like to know how I can pick up every existing day between two predefined dates, for example: //…
-
0
votes1
answer39
viewsError importing multiple XML files - Codeigniter PHP
I’m trying to import files xml into the database. In this example, I would have 2 arches xml to import. Note: XML is a road transport CTS. I tried to do it this way: $i = 1; $TotalArquivos =…
-
0
votes0
answers20
viewsHow to configure the session and user_id as soon as the method is called? (Codeigniter)
I have these two methods responsible for adding users from another system to that system. private function api_login ($ email, $ password) { $Curl = curl_init(); curl_setopt_array($Curl, […
-
0
votes1
answer22
viewsSqlbuilder + Codeigniter v.4.1.1
I have a model called Usuariomodel that only works the find and findAll option, but in my test step a Where so the method does not connect at the base: below follows the function call and the…
-
0
votes0
answers11
viewsView database column - Parser Codeigniter 4
Good afternoon! I’m needing to display a database column, through the parser within a IF, how can I do this? I am passing an array and rendering with the parser, code below: $dados = […
-
-1
votes1
answer360
viewsIs it true that the Codeigniter will end?
I saw a piece of information saying that Codeigniter will end. So I came here for more accurate information. That’s true?
codeigniterasked 11 years ago user1618 17 -
-1
votes1
answer1823
viewsBinding Tables with Code Igniter
I have the following problem, I have a table of customers that stores personal data, login, password among others, and another table of invoices, which has all invoices of all customers, but I need…
-
-1
votes1
answer93
viewsHow to customize the Doctrine library to work with the Timestamp type
I’m using Composer with Doctrine in my application, and it’s getting wonderful. But I need to customize some Doctrine features, changing the classes Doctrine\DBAL\Platforms\AbstractPlatform and…
-
-1
votes1
answer88
viewsError downloading a site made in Codeigniter to my localhost machine
I downloaded a website already made with the codeigniter framework on my machine, I put it on the localhost but it shows the error " "I think I need to define the database, if that’s it, how do I do…
-
-1
votes1
answer74
viewsKnow if value from an input is a link from XX site. PHP - Codeigniter
Hello, I am developing a site that would have the facebook profile on it, but we are afraid that some smart guy put any link there, someone would have a tip or a way to do to check if the link is…
-
-1
votes1
answer84
viewsDomain Multiplus with Codeigniter
I have a hosting with two domains, domain 1.com.br and domain 2.com.br. How Codeigniter is at the root of hosting, how do I, when i access the domain 1.com.br it take the content of the folder site1…
-
-1
votes1
answer180
viewsGrocery CRUD Callback
I need to set a message to the user, after validating a callback function, however, I do not enter anything related. It has a generic message that serves for the whole form, I want to by fields. I…
-
-1
votes1
answer73
viewsFunction codeigniter with sql
I have a function called tires on the codeigniter model And in the same model I have another function I need to call the function Cod tires Can someone tell me how I do it here an example of what I…
-
-1
votes1
answer110
viewsUpdate/Sync Project in Codeigniter
I am developing a web system in codeigniter and will have a link to update the project version when you have an update. That is, the client will access the system, a message will appear warning that…
-
-1
votes2
answers516
viewsAuthentication using Codeigniter
I’m starting to use codeigniter, and I have a question. In the view, I have 2 presses, one for login and one for registration: <form id="login" method="post">…
-
-1
votes1
answer126
viewsFlash Data Post
Good afternoon, you guys. I’m not getting a flash date through Post. When I upload my view I place a bank info on flash date: $this->session->set_flashdata('ticket_id',$dados[0]->caseId); I…
-
-1
votes1
answer51
viewsIs it possible to turn an application built with PHP into PWA?
I have an application built with Code Igniter and I want to turn it into a Progressive Web App, which files should I cache? What would be the best strategy?
-
-1
votes1
answer166
viewsChange layout color
I wanted to create a function to change the colors of the layout of the site that they are developing, this site is made in Codeigniter, CSS3 and a bit of pure Javascript, I did a search on the…
-
-1
votes1
answer112
viewsCodeigniter error
Well, at the company’s developing INTRANET, I did a memo piece and simple Osti, but both are not working. They’re almost the same, follow code: CANVAS // Tela de envio de OSTI case 'enviar_osti':…
-
-1
votes1
answer34
viewsActivate controller when refreshing page
Good, I am building a Dashboard where I want ,while refreshing my page, it triggers the 'Notification' controller that will return me values from a database. My question is, how can I trigger the…
-
-1
votes1
answer244
viewsHow to compress upload video using PHP in the backend?
I have an application where it is possible to upload videos, and when uploading the video in the application, I need to compress it, before it is saved in the database. I need to compress videos…
-
-1
votes1
answer543
viewsUnsupported operand types
foreach ( $this->_defaultModel->getFields() as $field ) $this->data['rowNew'][$field] = null; /*echo("defaultModel"); debug($this->_defaultModel); */ $this->data+=…
-
-1
votes1
answer51
viewsForm attached to Codeigniter
Good afternoon. I had to implement a section for sending resumes through the site, but the attachment is not working, even the script can read $_FILES even having in the form the attribute *…
-
-1
votes1
answer37
viewsSQL, search only one element per category
I am trying to make an SQL query that selects only one element per cat_id, from the genus of a cycle For where it checks if there is already a cat_id=1 and if you already have it goes forward until…
-
-1
votes1
answer22
viewsHow to iterate an array a certain number of times in PHP in Codeigniter?
I have 2 arrays, a blank( let’s call tenStatesArray) that I want to contain 10 values and another containing 26 values( let’s call statesArray). How to pass the first 10 elements of this array…
-
-1
votes1
answer219
viewsIntermittent Session Error in Codeigniter
I have a problem in the projects I develop that intermittently generates a Session error, but the error is only when the project is hosted on the web server (I use Cpanel from a Hostgator resale).…
-
-1
votes1
answer50
viewsI made a capture of fields of the comic and gives this error
After I put this code below .... $capturaValorTotal = $_POST['valor']; $capturaValorPagar = $_POST['valor-pagar']; $valorDevido = $capturaValorTotal - $capturaValorPagar; $inserindoBanco = "INSERT…
-
-1
votes1
answer519
viewsHow to count the number of records (Rows) in an SQL statement?
I am in this SQL, recovering the records (number of vendors per city) of a table and I would like to count how many records have in each city. I want to put something like Tal City (9). I will put a…
-
-1
votes2
answers474
viewsTake the path before saving CI image
I am using the following method to save an image, is working properly: function do_upload() { $config['upload_path'] = './uploads/'; $config['allowed_types'] = 'gif|jpg|png'; $config['max_size'] =…
-
-1
votes2
answers337
viewsHow to treat error when deleting a BD record, which has a foreign key, PHP
Good morning guys, someone would tell me the best way to treat the following mistake: The following error occurs when, for example, I have a client in a BD table and in another table I have a budget…
-
-1
votes1
answer42
viewsHook for Queries Log and Redirect Instruction
I’m using hook to log queries. However when I use redirect instead of load->view, the array db->queries is empty. I need to continue using the redirect statement. Can anyone help me? I’m using…
-
-1
votes1
answer343
viewsHow to perform an auto-update on a local web system?
Talk, you guys, blz? I have developed a web system (in Codeigniter) for a customer and the same runs on a local machine inside your office. Whenever I need to update the system, I perform the…
-
-1
votes1
answer834
viewsHow do I get the right CSS in DOMPDF?
Good morning Guys, all right? I have 3 files: certificate.png | style.css | Certificate.html I have a method that binds them and PDF the certificate, when printing on the screen with var_dump comes…
-
-1
votes1
answer49
viewsMaximum occurrences of an item
I need to go through the data and find out the maximum number of occurrences of an item. I have the following structure array(5) { [0]=> object(stdClass)#26 (6) { ["num_dia"] => string(1) "5"…
-
-1
votes2
answers236
viewsHandle data received by AJAX
Good afternoon, I am sending a value via AJAX/Jquery that triggers me the controller notifications index function. When I receive a certain value, I want the function to direct me to another page.…
-
-1
votes1
answer212
viewsGroup values from a multidimensional array with the same value and display in a table
Good morning, I have a multidimensional array, shown below: array(3) { [0]=> array(1) { [0]=> object(stdClass)#35 (3) { ["id"]=> string(2) "73" ["valor"]=> string(6) "200.00"…
-
-1
votes1
answer159
viewsSending Ajax Information to Controller
Good morning guys, all beauty? I am making an application where my select will operate what will appear on my page. I am using Codeigniter, so the choice of select goes to a controller. I need my…