Most voted "codeigniter" questions
Codeigniter is a framework for developing PHP applications.
Learn more…1,026 questions
Sort by count of
-
0
votes1
answer461
viewsTo change a function parameter in the url with Codeigniter
I wonder if you have the possibility to change a parameter of the url with codeigniter. I have a function created called edit and in it I pass the id of the client to be edited, only that in place…
-
0
votes2
answers427
viewsCodeigniter 3 send file with extension PFX
I need to upload a file with the extension .pfx (digital certificate). I’m using the library Upload of CodeIgniter as follows: I’m putting the extension allowed_types but does not send. Returns: The…
-
0
votes1
answer855
viewsSearch field/data filter
Hello, I’m developing a field of data research. And this, is working very well so far; but I would like to add some query parameters to this field. As it is today (search possibilities): Data…
-
0
votes2
answers676
viewsRepeat data from a row in the modal table
I receive from the website contact form the data and list them on a system backend. Currently all of them are displayed online (nome, assunto, e-mail, telefone, id , ação[excluir]), I would like it…
-
0
votes1
answer40
viewsMongodb finds no record of some names
I’m pulling some data from Mongodb with Codeigniter and came across something strange... Some records are found and others are not. Debugging the code I saw that the problem was the name he is…
-
0
votes1
answer330
viewsError 1062 at some times in database system
I am facing the following error while running my app: Error Number: 1062 Duplicate entry '1484918130' for key 'PRIMARY' INSERT INTO sistema_session (id, ip_address, timestamp, data) VALUES…
-
0
votes1
answer1201
viewsInsert data into codeigniter database
Say guys all right, I’m having the following doubt: I need to view and save data in my database but as I will show below I am using Joins to display, for example the name of an author using his…
-
0
votes0
answers109
viewsCodeigniter by adding ". html" after controller name
I don’t know why when I try to perform an ajax call to the url "http://localhost/meusite/controller/method" I get a 404 error saying the following "The url…
php codeigniter htaccess php-5 codeigniter-2asked 7 years, 10 months ago Victor Hartur de Carvalho 182 -
0
votes1
answer185
viewsPositioning Codeigniter Chat Messages
Hello, I’m developing a messaging app (chat) and it’s almost finished and working. It turns out that the messages are all aligned from left to right, regardless of the message user. Example: User 1…
-
0
votes0
answers339
viewsAdminlte2 + Fullcalendar - problem when integrating both
Good afternoon, guys, okay? So I’m developing a small system with Codeigniter, and for that I’m using the template Adminlte, and now I’m creating the calendar+schedule part and for that I’m using…
-
0
votes0
answers318
viewsEncrypt Codeigniter database
good night. I took the boat riding here at the company I joined to continue a system for a company, in Codeigniter connected with a Sqlserver database. My knowledge of Sqlserver and servers is…
-
0
votes2
answers7202
viewsHow to create and access a global variable with PHP and codeigniter
Good morning guys, I’m having a doubt I’m using the following to generate success alerts or errors in my system. if ($this->model->inserir($data)) { $msg = "<div class='alert…
-
0
votes0
answers50
viewsUse a form with select to control views
Good afternoon guys, next couldn’t find a practical solution for what I’m trying to develop: Through the select above I intend to display data below such as charts, ie if the user chooses the item…
-
0
votes1
answer85
viewsPass value to 2 different paths
I would like to pass the variable var data = 'codreq=' + id; for two ways. Is that possible? If so, someone can teach me. I can only go this way: url: "<?=…
-
0
votes1
answer548
viewsDisplay a foreach item only once (if this item is within the if condition)
Hello! For a chat, I want to display the date of the message only once, this being the first message only. Example: ONTEM Mensagem 1 Mensagem 2 Mensagem 3 HOJE Mensagem 1 Mensagem 2 Mensagem 3…
-
0
votes1
answer94
viewsAngular Leaflet map error
I’m using Angular in a project with Codeigniter and I’m applying the Leaflet map. Creating the function, it generates the map, but informs error when obtaining the center property and does not load…
-
0
votes2
answers543
viewsPick up data using Join in two table 1 for many
good morning, I need to perform a select of two tables that are related 1 to many: Table 1: products Table 2: price group I need to get all prices from the price group table, which may have 1 or…
-
0
votes0
answers36
viewsChanging the names of XML nodes and subnodes coming from an array
I have an array, which I want to transform into an xml document, I already managed to create it but I can’t change the names of some nodes and subnodes, follows an example of an array to be…
-
0
votes0
answers56
viewsCodeigniter->Foundation->Dropdown Does not work
Good morning, I’m a beginner in programming web and I am facing some problems in a video lessons course (provided by the company, a little outdated) that I am doing. I’ve reached a point where I…
-
0
votes0
answers47
viewsSequences of actions in ajax
Good afternoon! I don’t know if the title of my question is correct any more if someone has a better please change. I have following problem, I have an emission ERP and NFE and Nfce is working…
-
0
votes0
answers857
viewsRecover Codeigniter database value - Mysql
In a user form, I upload information such as username, password and permissions. But now I’ve included it in the permissoes a field called grupo. And I included it in the usuarios this field, so…
-
0
votes0
answers109
viewsI cannot recover $_SESSION with ajax and codeigniter
I’m having trouble recovering a $_SESSION using php native Session with ajax in codeigniter, because when I try to verify the data informUndefined. follows the code, since thanks to all. controller…
-
0
votes2
answers236
viewsError in codeigniter querry Builder
I have a problem in the SQL of my query, follows: $sql = "SELECT cl.codigo, pa.codigo AS codigo_participante, pa.nome AS nome_participante, cl.usuario, cr.data AS data_geracao, cl.validade, cl.chave…
-
0
votes0
answers125
viewsRescue controller data in multiple views
I’m developing a website in Codeigniter in which all pages must have a footer dynamic with data coming from the bank. I charged the view footer (I created a controller footer) in the controller…
-
0
votes1
answer441
viewsProblem when trying to connect in SOAP Web Service
I’m trying to connect to a web service by PHP that for the documentation provided uses the SOAP protocol, but I can’t even connect through the URL provided. URL:…
-
0
votes1
answer93
viewsGet page information without being logged in to facebook, only by token
I’m creating a Facebook posting system and it’s all right, except for one thing. When I drop Facebook by the system I’m doing, some functions don’t work, no matter how much I pass the access token…
php codeigniter facebook facebook-graph-api facebook-sdkasked 7 years, 8 months ago Alisson Acioli 5,815 -
0
votes1
answer156
viewsCodeigniter update works but wrong list
I’m having a problem updating a bank record by codeigniter, I have two tables, one call: employee(where the employees of the company are stored and in which sector the employee works,this table has…
-
0
votes1
answer754
viewsSave Images from Codeigniter
Hello, I am wanting to save an image in the database. I am using the following: $config['upload_path'] = './assets/fotos/'; $config['allowed_types'] = '*'; $config['max_size'] = '512000';…
-
0
votes1
answer161
viewsI cannot run jar using exec command in php
when I try to run the system does not return anything, I do not know what may be wrong, I tried to run another jar and it worked, however the msm n receives no parameter. the search jar works on the…
-
0
votes1
answer56
viewsPlaying parameter in url
I have a Codeigniter Project that will be in two languages, however I need to allow this language change only in the project URL; That is, when accessing domain.com.br/pt it should keep as base url…
-
0
votes1
answer142
viewsDiscussion about software architecture
I am rewriting an application for better structuring of it and I have arisen some doubts. The application is a football betting management system and has a web app for management and a mobile app…
php mysql codeigniter apache-cordova software-architectureasked 7 years, 6 months ago Guilherme Ramalho 485 -
0
votes1
answer58
viewsSQL Clause with Codigniter
Good morning guys to need to do an update in the database but I’m not getting below the codes: I am using the codeigniter so this the following way: Controler: function editar($ocod) { /* Aqui vamos…
-
0
votes0
answers500
viewsJavascriptui + PHP + Mysql autocomplete
Good morning guys I’m implementing an autocomplete in a CRM but I’m with a problem gave a searched here and I did not find a solution, so below the description: I am wanting to make my system more…
-
0
votes2
answers68
viewsSearch id returned from json_encode() inside mysql
I have the following content in the field pro_are_id : ["11","3"] this content I made with json_encode(), would like to make a query to the database and know if there is this id specifically or not,…
-
0
votes1
answer120
viewsphp error at the time of hosting
I’m having a problem with hosting a college job, the problem is this one: In localhost this error does not appear. The error in line 98 of the theme/top code is this <?php…
-
0
votes0
answers45
viewsError loading Codeigniter Rest Server language
I am coding an API with Codeigniter and, as many have recommended, I am using the library Codeigniter Rest Server(Repository). I followed the tutorial recommended by the developer himself but I got…
-
0
votes1
answer378
viewsadding controller foreach field to view
Hello! I have the following function of the controller. public function lancamento_listar() { $lista = $this->lancamento->obter_dados(); $data = array(); $no = $_POST['start']; foreach ($lista…
-
0
votes3
answers871
viewsValidation of completed fields of a form
Today I have some cupboards in windows (modals) and some of these fields need to force the user to fill today I am doing as follows: Form: In case the user forgets to fill some field I use the…
-
0
votes1
answer395
viewsSave the information of a variable in Codeigniter to the database
I’m getting a lot of product information from the Cosmos API and storing it in variables, but how do I save the information from these variables in the database? VIEW $curl = curl_init($url);…
-
0
votes1
answer346
viewsDynamic Combobox Ajax Codegniter
Hello! I’ve already looked this question and won’t answer me. I have a select called Bank, as below and brings me the result OK: <select id="banco" class="banco form-control" name="sel_banco_id"…
-
0
votes2
answers677
viewsQuery sql codeigniter
I have a table with dates and I would like to create a query that returns records with dates prior to the current day but I could not assemble this query; follows below my code and BD image:…
-
0
votes1
answer299
viewsProblem with treeview menu
Good morning I’m making a menu and I need the functionality of a treeview, but even done as documentation when clicking on the menu the desired links are not displayed(dropdown): Code: <ul…
javascript codeigniter web-application bootstrap treeviewasked 7 years, 4 months ago Felipe Miranda De Lima 195 -
0
votes1
answer78
viewsTreat date correctly
I have an agenda where I am using the Fullcalendar library (javascript) and when I click on an event I want more information of this to be displayed so far everything right now I have a field form…
javascript html codeigniter datetime fullcalendarasked 7 years, 4 months ago Felipe Miranda De Lima 195 -
0
votes1
answer48
viewsUnserialize Codeigniter Data - Ajax?
Through the object obj_form, i display in the form the database data: //Objeto do formulário function obj_form() { $('[name="id"]').val(obj_permissao.id);…
-
0
votes1
answer1934
viewsAlways redirect to HTTPS with Codeigniter
I have an application with Codeigniter and always need to force the connection redirect to https. I did it this way: I changed inside config\config.php the line $config['enable_hooks'] for TRUE.…
-
0
votes2
answers84
viewsError saving Facebook profile image via PHP SDK
Good afternoon! I am using the Facebook SDK to login to my site, I can return the data, including the link of the profile photo, but I can’t save the image, the following error occurs: PHP Error was…
-
0
votes2
answers251
viewsUpload multiple images by saving only one file
My code is saving only an X image that I select in the input file, for example, if I select 3 or 10, only 1 image will be saved, I’ve tried everything and I can’t get it to save all the images in…
-
0
votes0
answers50
viewsProblems get_userid() - Codeigniter
I’m having a little trouble. If someone can help me, when I put my information and click 'Submit', gives the following error in my application: PHP Error was encountered Severity: Error Message:…
-
0
votes1
answer103
viewsHow to store the error that Ci_exception provides
Hello, I would like to capture PHP errors in codeigniter and store them in the database, or at least display them more smoothly to the user, in the error_php.php file all the details I need are…
-
0
votes1
answer101
viewsDo not connect on Panel (Codeigniter)
Good evening guys, I made a script for content management but when I put my data does not connect, just refreshes the page and stays in the same place, I put a command to error but not even that.…