Most voted "codeigniter" questions
Codeigniter is a framework for developing PHP applications.
Learn more…1,026 questions
Sort by count of
-
1
votes1
answer541
viewsSQL - Codeigniter - Returns only one record
Gentlemen, I have the following function: // Busca Simples public function buscando(){ // pesquisar_palavra, idCategoria, idSubCategoria if($this->input->post('pesquisar_palavra')){…
-
1
votes1
answer357
viewsOver redirect in Codeigniter
When I try to run my application in codeigniter the page to load and an error message is displayed that there is an excess redirect. In the application, I need to be redirecting the user whenever…
-
1
votes0
answers82
viewsDisable JS script on certain pages
I added a JS script in the PHP base of my project in Codeigniter, this makes other controllers also run this script. How would a particular page not run this script?
-
1
votes2
answers1708
viewsConfigure stylesheet with PHP
I’m setting up an administrative system and one of the administrator’s options is to control various page color settings. However I’m having difficulty finding the best way to put these settings on…
-
1
votes2
answers740
viewsCodeigniter media upload error
While trying to upload any media, the following error always appears : O TIPO DE ARQUIVO NÃO É PERMITIDO. But yes, I did jpg, png, gif, I’ve already switched only to pdf and error persists! Follow…
-
1
votes1
answer202
viewsFatal error: Call to a Member Function num_rows()
I have the following lines in Codeigniter: Line 217 if ($query->num_rows() == 0) { $this->sess_destroy(); return FALSE; } Displays the following error: Fatal error: Call to a Member Function…
-
1
votes1
answer214
viewsHow to redirect the user to another page with Codeiigniter?
I’m starting with Codeigniter and I’m having a little difficulty linking the pages. I’m doing it this way: <li class="nav-item mr-3"> <a class="nav-link page-scroll" href="<?php echo…
-
1
votes1
answer234
viewsHow do I write the following SQL code in the Codeigniter Model?
select count(situacao) as Qtde, sum(valorcausa) as Total_Valor_Causa from processo where situacao = "Tramitando";
-
1
votes1
answer112
viewsHow to add groups of inputs according to the number inserted in a text box without refreshing
How can I make a form where you have a text pad of type number, and according to the number I enter appears groups of text box to fill in this same form? Example: Text box (number of days) = 4…
-
1
votes2
answers371
viewsCodeigniter View
I am not able to present data on View. Model bank class ModelBanco extends CI_Model { public $em; public $senha; public function __construct(){ parent::__construct(); } function get_user(){…
-
1
votes1
answer74
viewsQuery string paging with codeigniter
How do I search with pagination using query string in Codeigniter? I’m trying to search in the documentation but couldn’t find it! I have following scenario:…
-
1
votes1
answer79
viewsHow to sort VARCHAR field in Codeigniter
How to sort fields of type VARCHAR in class model codeigniter? Already achieve in pure SQL that way: order by strtodate(dtdespesa, '%d-%m-%Y') desc; However, the version of Codeigniter I am using,…
-
1
votes1
answer691
viewsProblem with Codeigniter error session
I have a small login problem with codeigniter, after logging in it does not transfer the data by session. I took the following test: I printed the session in the controler [ok, printed correct data]…
-
1
votes2
answers897
viewsProblem using CODEIGNITER on Nginx server
My site was hosted at UOLHOST and worked perfectly with the following . htaccess RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond $1…
-
1
votes2
answers389
viewsRedirect to another Codeigniter application
I have a Codeignter with 3 applications, within each welcome view pattern, the structure is similar to that: www Applications website site2 site3 system I need to figure out how to redirect to site2…
-
1
votes1
answer355
viewsRoutes in Codeigniter
I would like to know how to create routes in Codeigniter.At the moment, all I can get are routes like this " www.site.com/index.php/pagina2 ". I’d like to create routes like " www.site.com/pagina2 "…
-
1
votes1
answer265
viewsView mysql data using Angularjs/codeigniter
I am developing an application in Codeigniter 3 and came across the following problem. I want to import the database table data and display in a php page. In my controller I created the function:…
-
1
votes1
answer58
viewsFunction only executes 1 time
I created a library that resizes an image that I enter the name, but it’s happening that I need the same image resize to 3 different dimensions, so I made the code php image. (library) <?php if (…
-
1
votes0
answers75
viewsCalling in PHP the Jasperreports file with Oracle database
I have some files generated by Jasperreports (.jrxml) consulting an Oracle database. My question is in direct execution with parameterized in PHP (codeigniter framework), MVC standard. I have tried…
-
1
votes0
answers39
viewsGood Practices in the Codeigniter 3 Model
Can anyone tell me if I work with this skeleton in the model use a method to list and show only a given ? is correct would like opinions as I am learning now to work with codeigniter.…
-
1
votes0
answers336
viewsCodeigniter + Progressbar
Hello. I’m trying to develop a file upload system which when doing the post generates and loads a progressbar according to the course of my file unzip script, read and store in the bank. It’s the…
-
1
votes1
answer331
viewsProblems with Cielo Library and communication with Codeigniter
I am implementing the communication with Cielo servers for a system of my. However, when I try to load the Cielo library, I get an error. The folder structure is as follows: third_party / Cielo /…
-
1
votes0
answers104
viewsPaging with Filters using Codeigniter
I have a query with filters coming from a form. The query is executed correctly, the calculation of pages too. The form sends via method $_POST. When browsing between pages generated by the result,…
-
1
votes1
answer212
viewsCreate Codeigniter html components
I’m using CodeIgniter and I don’t know how to create components to embed in my views. I think I should create my components using templates, correct? I have many repeated codes on views but I saw…
-
1
votes2
answers537
viewsProblems with JSON on the server
Hello I’m having trouble with the JSON when I climb it to the server.. Example of one of my code they use JSON: $("input[name=people]").keyup(function(){ if($(this).val() != ''){ $.ajax({ url:…
-
1
votes2
answers106
viewsassign radio value found in sql - Codeigniter
I want the user to be able to see the data you entered in your log when loading the data update page. I can see the data that is in type=text but not in type=radio. View: <?php foreach…
-
1
votes2
answers120
viewsSession Codeigniter PHP
I have two different systems. Both created with codeigniter. The problem is this: Do logon in the 1 system and I use normally, then I open the 2 system, and then it occurs that the Session of that…
-
1
votes1
answer292
viewsDisplay username logged in with Codeigniter
How do I display the username logged in to the system? The function that authenticates and creates the session is this: function verificar() { $this->load->model('tbdaluno'); $check =…
-
1
votes0
answers21
viewsPhpmailer / Codeigniter
Hello, good afternoon, everyone. I have a question about the project I was given. I have to create an email client within the codeigniter platform that is being developed, I have researched and seen…
-
1
votes1
answer367
viewsError 404 with Codeigniter
I’m having the following mistake with Codeigniter: URL:http://192.168.33.10/crudex/index.php/user_controller "404 Page Not Found, The page requested was not found." Controller Code: <?php…
-
1
votes1
answer191
viewsCodeigniter - select and print values
Good, I’m trying to print values on a select page I did on a model. But it gives me the error: Undefined variable: login. Controller: function perfil() { $this->load->model('perfil_model');…
-
1
votes1
answer208
viewsCodeigniter - cannot print select values in view
Good, I’m trying to make a page that shows the user data that is logged in. Model: function getAllDisplayable3() { $username = $this->session->userdata('username');…
-
1
votes1
answer160
viewsMVC - edit form not working - codeigniter
I have a form printing a user’s data. I want the user to be able to edit that data. But it is giving me an error in the view: Undefined variable: list e Invalid argument supplied for foreach(). My…
codeigniterasked 8 years, 5 months ago Claudia 121 -
1
votes0
answers48
viewsView JSON data in carousel (scroll infinite Javascript)
I made an infinite scroll in JS, IE, every time the page reaches the end is made a GET request for a page of the site itself that returns films of a genre in JSON but, when it scrolls again the new…
-
1
votes1
answer326
viewsSend array to Controller and insert into DB, with Ajax and Codeigniter
Hello, I am unable to receive (in the controller) the array that is sent from a View via ajax. I already tested it in the console.log and the array is sent but nothing happens in the controller. the…
-
1
votes0
answers208
viewsUpload with Watermark using Codelgniter
I am doing an Upload here with Codeigniter, this working perfect, but I can not put a logo as watermark and I would also like to put the address of the site, I do not know why the error.. the code…
-
1
votes0
answers130
viewsProblem with parameters passed to Phplot by Codeigniter Controller
I’m having a doubt that at the same time is being a problem, because I don’t know what I might be doing wrong. The thing is, I’m using Codeigniter and to generate a graph I’m going to use the…
-
1
votes1
answer84
viewsSave visitors e-mail (Newsletter) with codeigniter
Good morning guys, I’m a beginner in PHP and codeigniter. I need a light, I even found what I need but not in codeigniter (Because my site is in mvc). This was found and worked on my localhost…
-
1
votes2
answers105
viewsJoin repeats records again?
I have tables in the database that relate. A (t.a) has four lines that relate to the other four lines of (t.b) The query is made by means of a (user.id) that exists in the two tables. The problem…
-
1
votes1
answer631
viewsBootstrap Datepicker with Codeigniter
Good evening, class, I’m in a PHP project in Codeigniter, where I’m already using Bootstrap and Morris.js (graphics). I need to implement Datepicker now, and doing the same way that it would have…
-
1
votes3
answers572
viewsI want to change the color of the button according to the value of the variable
I created an if/elseif condition inside the foreache, to change the color of the pay status button. I have three status and are three colors for home status. Only he’s not getting the colors. I…
-
1
votes1
answer664
viewsHow to extend Ci_controller to more than one core?
In Codeigniter you can create a file in the application/core folder MY_Controller.php and the controller extending this file, a basic example would be: <?php class MY_Controller extends…
-
1
votes1
answer435
viewsRoute results in 404 Not Found
I was following the Codeigniter startup tutorial when I came across a problem with routes. the route file is with the following routes: $route['404_override'] = ''; $route['translate_uri_dashes'] =…
-
1
votes1
answer281
viewsAutomatically populate a text box with a database value
I have a form with 5 fields, and I need the local field to be filled with a value of the database corresponding to the field Postal Code that was previously filled in. I’m using the codeigniter…
-
1
votes1
answer94
viewsfile upload with json return error
I am uploading a file with jquery+ajax using the jquery form plugin. The form processing is all ok, the file goes up and the data is recorded in the database. The problem is in the return with the…
-
1
votes3
answers614
viewsjQuery check php database field
I have the following button: <button type="submit" class="btn btn-info pull-right"><? echo $titulo; ?></button> This button sends a form action, with the completed data. And I also…
-
1
votes1
answer194
viewsSelecting multiple fields from a table with a term in the query
I tried to follow some steps I found here in the bad forum did not work... I have this code here in the codeigniter model: // buscando clientes $this->db->like('nomeCliente',$termo);…
-
1
votes1
answer472
viewsphp codeIgniter: syntax error, Unexpected '['
The php codeIgniter application, which runs in windows, when ported to the server gives the following error: Parse error: syntax error, Unexpected '[' in…
-
1
votes0
answers132
viewsAdding values of 1 Mysql Column with codeigniter
I need help fast. I am trying to create a function in Models, where only add the values of the 'value' column of a table. I’ve researched several questions here and I’ve asked them, but they’re not…
-
1
votes1
answer321
viewsUpdate carrinho codeigniter
I’m having a problem updating the quantity in a shopping cart using codeigniter, because whenever I update and the cart has for example 3 items, the cart only updates the last item and does not…
codeigniterasked 8 years, 2 months ago Flavio Domingos 75