Most voted "codeigniter" questions
Codeigniter is a framework for developing PHP applications.
Learn more…1,026 questions
Sort by count of
-
2
votes1
answer1103
viewsCodeigniter - Dynamic form
all right? Well.. I’m a beginner in the world of Web Programming and I’m trying to develop a codeigniter system. Can you help me? I’m trying to make a dynamic form in which I have a select that has…
-
2
votes1
answer2048
viewsLoad form_dropdown into codeigniter
In the controller have this method: <?php class Projetos extends CI_Controller { public function index() { $data['dados_clientes'] = $this->clientes_model->get_clientes();…
-
2
votes1
answer728
viewsMysql and PHP Dynamic Form - Codeinigter
I need to create a form to create evaluations, with a number of variable questions. For this I created a form that adds questions, as requested; The problem is saving banco de dados this variety of…
-
2
votes1
answer312
viewsDoubt when returning string json to Fullcalendar event
I have a question. I’m using Fullcalendar on a project. I can display the data registered in the database normally. My problem is in the eventClick: did so: var date = new Date(); var d =…
-
2
votes1
answer408
viewsRun Xdebug in netbeans to debug Codeigniter
I’m trying to debug an app in codeigniter via Xdebug in Netbeans. However, when running my app in debug mode, I can’t reach my controllers or any breakpoints after the first line of codeigniter…
-
2
votes1
answer256
viewsAdd value to database
I use Codeigniter, and the situation is as follows: The product has a current stock, and I want to input more items from this stock... how do we add the existing with the new entries? Follows code:…
-
2
votes2
answers1766
viewsShow result of a query in html - PHP+Codeigniter.
Hello, I’m trying to make an example in codeIgniter where I want to show database data in html Formularios. This is my query: $id_entidade = $this->session->userdata('id_entidade'); $query =…
-
2
votes3
answers107
viewsvalidation of superglobal
I am developing a class to assist multiple upload using the codeigniter and I decided to analyze my code using some online tools. One of them was the code Climate; I noticed that when checking…
-
2
votes1
answer976
viewsAJAX request for PHP (Codeigniter) does not return values
I’m working on a situation I haven’t been able to resolve in over two days straight. I have an AJAX that is requesting values for a controller to popular a select with cities. The request seems to…
-
2
votes1
answer1705
viewsCalling a function in Views in codeigniter
I have that function in the models: function sumContasReceber() { $this->db->select('lancamentos.*'); $this->db->from('lancamentos'); $somaCR = "SELECT SUM(valor) as SOMACR FROM…
-
2
votes4
answers889
viewsCharacter limit
I need to limit characters in a text, and should keep (...). The title is sticking out of the layout. if($related){ echo ' <div class="row"> <div class="medium-12 columns"> <div…
-
2
votes1
answer468
viewsCLASS="active" according to a selected tab
Hello! I intend to create a notepad where a heading and a note will be inserted. For each note inserted, a tab will be created. I want to click on the tab and load the title and note into an input…
-
2
votes1
answer913
viewsExport CRUD list with MPDF + Ob_start()
Good morning guys, I’m developing a CRM using the framework CodeIgniter and I’m not able to export some lists CRUD using the library MPDF. I’m trying to use the function ob_start() as indicated in…
-
2
votes2
answers77
viewsHow to modify specific parts within an html file?
I am loading an html file and would like to modify urls within it so that the system recognizes the actual path of each file that html is trying to access, so I have several different urls: <link…
-
2
votes1
answer1158
viewsUpload/download files with Codeigniter
You guys all right ? I am developing a small web system in which price to upload budgets and later your download, I am following a tutorial that I found but I have an error that I cannot solve: By…
-
2
votes1
answer752
viewsperform sum of values codeiginiter
I need to add some values at the end of a table as shown below: below follows the codes I am using: Controller: function index() { $this->template->set('title', 'Lista de Orçamentos'); $config…
-
2
votes0
answers385
viewsIs there a JSF style PHP famework?
I am a Java programmer and I use JSF in the projects of the company where I work. I am developing a personal project and I chose the PHP language even to learn a little more. The problem is that I…
-
2
votes2
answers1778
viewsMultiple codeigniter database connections
I’ve been investigating the use of multiple Codeigniter databases. If I know which databases are ahead of time, I can set the information in the configuration file and then call the database group I…
-
2
votes1
answer3620
viewsError: "Call to Undefined Function mysqli_init"
I am running a test with the codeigniter 3.1.5 framework and when trying to connect with the database it presents the following error: Fatal error: Call to Undefined Function mysqli_init() The…
-
2
votes1
answer137
viewsError with pagination and codeigniter
By clicking on the page link the same returns me a NOT FOUND. <div class="scroll"> <table class="table table-hover" id="myTable"> <thead> <tr>…
-
2
votes1
answer593
viewsInsert data from an array into the database by Codeigniter
I’m trying to make a INSERT using Codeigniter and would like to know if there is a more practical form than the one used below: MODEL public function set_cliente() { $dados = array( 'codigo_cliente'…
-
2
votes3
answers1389
viewsView array value in php
I’m putting values in a array and I need to display these values on the side of the titles in th of a table. I don’t want to use a loop to traverse the array, I want to access the value through the…
-
2
votes1
answer921
viewsCodeigniter - Recover ID
I need to retrieve the last ID inserted in a table and pass this ID to the field of another function. It is possible to recover in this way ? $negociacao = array( 'id' => $neg->id,…
-
2
votes1
answer126
viewsGet Rendered External HTML Code
I am mounting a PDF and in this PDF I have to put a graphic that is being made by Highcharts. I created an HTML and JS code by mounting the graph and it is creating it right, the problem is that I…
-
2
votes1
answer912
viewsAddress of pages with codeigniter
Hello! I’ll be very brief. I’m having trouble defining a correct href="". After clicking a link in the menu, it is directing to the HOSTGATOR page '404 - page not found' Here’s the controller code:…
-
2
votes1
answer658
viewsAccess denied when accessing controller with Codeigniter
I made an application with code Igniter and implemented a login screen. When logging in, the user is directed to the Dashboard screen. By clicking on any link on this screen, the "Access prohibited"…
-
2
votes0
answers39
viewsHow to use two arrays to make a query in the bank?
I’m using the Google API, the Cloud Vision, to analyze an image and return me through the labels, which brand/model of a car, for example. Using the image below, I have the following feedback: [car,…
-
2
votes1
answer415
viewsView data display with Codeigniter
I’m trying to present the data from my View database. I followed the various tutorials I found on the internet but none of them could meet me :/. Model public function get_titles() { $title =…
-
2
votes0
answers326
viewsCodeigniter - Call to Undefined Function mysqli_connect()
I am using CI in version 2.2.5 and I have an error in my project. Error: Fatal error: Uncaught Error: Call to Undefined Function mysqli_connect() in C:\ local: system database drivers mysqli…
-
2
votes1
answer33
viewsSubmit Multidimensional Array
I have a form with input checkbox and text '<input type="checkbox" name="formandos_servicos[]" value="'+data['id']+'">'+ '<input type="text" name="nome_funcionario_servicos[]"…
-
2
votes1
answer62
viewsHow to return a data collection using Doctrine Resultsetmapping?
I have the following script that is functional: SELECT r.coluna_1 as Coluna_1, e.coluna_1 as Coluna_2, FROM produto r INNER JOIN empresa e ON r.id_empresa = e.id_empresa WHERE r.id_tipo = 'N' AND…
-
2
votes1
answer125
viewsHow to leave the date with Brazilian standard in Codeigniter 3?
Folks I’m developing an application that picks up the registration date from the register. But it’s picking up the date with American standard YYYY/mm/dd as I fix it in codeigniter ? Follow example…
-
2
votes1
answer53
viewsPass a variable that is in a javascript file to a $_SESSION and pick up a php page
Good evening friends. Next I need to pass a variable from a . js file to a Session and to pick up another page with php. The javascript function returns the first available time for marking a query,…
-
2
votes1
answer127
viewsExtract of hours online per day
I need to extract from the freeradius-powered RADACCT table, Radius server with Mysql, the connection records of a given user, for each day of the month, to determine how many hours that day the…
-
2
votes2
answers253
viewsError Include PHP Codeigniter
I’m having a question, how do I correctly include in php codeigniter follows below the script...when I remove the scripts in php works correctly. <?php include('includes/header.inc.php'); ?>…
-
2
votes1
answer60
viewsNotice Message: Undefined Index (Codeigniter)
I have a form where two multiple selects is loaded, here the code: <div class="form-group"> <label for="categorias[]">Selecione a(s) categoria(s) referente(s) a foto:</label>…
-
2
votes1
answer215
viewsUpdate Database Problem "too long string literal"
I have a problem when it comes to Update of a content to the database, below the code used for the Update public function atualizar_conteudo_manual() { $dadosmanual_update = array…
-
2
votes1
answer73
viewsError in Json passage
Good morning Guys, I have an error reading my json array when I call it in my ajax. My json: [{"id":"7","nome":"Anderson","sobrenome":"Dorea"},{"id":"6","nome":"Diego…
-
1
votes1
answer497
viewsHow to receive a SMS via Codeigniter?
I have a system that uses the framework PHP Codeigniter and I need to receive SMS from a GPS of these car, which will give me the coordinates of the car in the style of Google Maps and then I keep…
-
1
votes2
answers700
viewsRefresh with Iframe Parameter using jquery - Google Maps V3 API - Codeigniter
I’m having trouble using the Google Maps V3 API (using Codeigniter). The view that receives the map has no formatting other than that already provided by the API. In this way, I created an iframe…
-
1
votes2
answers4081
viewsHow to create user validation with access levels in codeigniter?
I have this model and control that checks and validates users registered in the table tb_users database. I need a script that checks whether the user is 0 or 1 in the column nv_nivel. If the user is…
-
1
votes4
answers1855
viewsPHP/Codeigniter error "Array to string Conversion"
I did a foreach to go adding values to an Insert but suddenly an error appeared Array to string Conversion strange and have no idea what it is. public function distribuicaoprodutos(){…
-
1
votes1
answer441
viewsRedirect of the codelgniter
I’m willing to put one alert simple of Javascript in the Codelgniter, I’m trying to put this alert with a function of Codelgniter that is redirect. I put to redirect the page, but the alert not…
-
1
votes1
answer387
viewsDoes Codeigniter work under Linux?
I’m starting with the Codeigniter Framework and wanted to know if it works on normal linux hosting or will I have to hire a dedicated?
-
1
votes1
answer277
viewsCodeigniter - Installation script
I created an installer for my system it installs normal, but before finishing the installation the error occurs Error Number: 1046 No database selected CREATE TABLE IF NOT EXISTS `auditoria` ( `id`…
-
1
votes2
answers111
viewsActivation e-mail
I have a user register which sends by e-mail the data filled correctly. Now I wanted a link that goes together by email for user activation. Only after clicking the link the user would be duly…
codeigniterasked 10 years, 3 months ago Eduardo Paludo 41 -
1
votes2
answers1607
viewsRoutes of the Codeigniter
I’m using Codeigniter and only the route $route['default_controller'] = 'welcome'; is working, when I make an example: $route['teste'] = "welcome"; he gives me the following message Cannot GET…
-
1
votes3
answers329
viewsUse of codeigniter memory
I made my first application in codeigniter, at first it was working all right. However when I looked at the server memory, it is very high, it starts with little use, and with each request it…
-
1
votes1
answer342
viewsRequest Ajax Codeigniter
I am receiving the following error when sending json data via ajax using codeigniter: Disallowed Key Characters. When sending only one object works smoothly, but when sending more of an object…
-
1
votes1
answer449
viewsUsing Codeigniter within Wordpress
I am working on a blog where within a specific page it has an iframe that points inside the server itself, calling a folder that contains the running Codeigniter. Until a few days everything worked,…