Most voted "codeigniter-3" questions
56 questions
Sort by count of
-
5
votes1
answer69
viewsRelation between selects
I have a system that has 3 selects, where selecting an option in the 1st select is listed a list in the 2nd select and selecting an option in the 2nd select, is listed the items in the 3rd. The…
-
4
votes1
answer338
viewsCodeigniter 3 - Subdirectory structure - Routes
I created a project in the IC and I am going through the following problem: I split my controllers into two folders: application/controllers/painel/ and application/controllers/site/ Being that in…
-
3
votes2
answers243
viewsAggregation of Codeigniter objects 3
I have a question related to the aggregation of objects using Codeigniter 3.1.9. I have the following method in Model: public function get_tickets($where = array()) { $this->db->select('*');…
-
2
votes1
answer2921
viewsbase_url of Codeigniter 3 by changing the call link of css and js
Good afternoon, folks! I’m making a website with a signup page that uses codeigniter and bootstrap, but I’m having a problem: CSS and JS load normally, but when I make a signup and redirect a page…
-
2
votes1
answer102
viewsAutocomplete locking the database
I am developing an application in PHP and Jquery with the Codeigniter 3 framework. I am using Postgre and I have a database with more than 1 million registered records. I made an autocomplete that…
-
2
votes1
answer179
viewsCodeigniter enter registration in bank
Hello, I work with Codeigniter 3. I have a question. We assume the model below: class Peca_model extends CI_Model { public $Id; public $Data_registro; public $Ativo; public $Nome; public function…
-
2
votes2
answers242
viewsCodeigniter database information array
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…
-
1
votes1
answer207
viewsCodeigniter: Session recreated after page reload
I have a system where a session is created for the user after their login, the problem is that each access I make to the site a new session is created and the recorded data is deleted, I set the…
-
1
votes2
answers169
viewsDoubt with dynamic fields creation with jquery + php
Hello! I’m doing a simple program for managing my beers and sales. In the order view, I was able to add a new line to include a new item for the order. Fields: id_item(select) | id_lote_item(select)…
-
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
votes1
answer86
viewsAzure codeigniter error: does not access subfolders
I have an Ecommerce system hosted on Azure( http://lojavirtualcodeigniter1.azurewebsites.net/) Developed in Codeigniter Framework 1.7.2 The system is loaded in index. However, I cannot load the…
-
1
votes1
answer214
viewsCodeigniter or PHP Queue (queue)
I’m doing a massive upload of files to a photo server. It happens that until sending all the photos, the user ends up waiting a long time. Then they gave me the tip to search about queue or Queue.…
-
1
votes1
answer100
viewsHow to capture only last record of a table?
The pure query (sql) below, only returns me one row of the table, it occurs that I am working with two tables (Process and Progress) and that progress has as foreign key the primary key of Process.…
codeigniter-3asked 6 years, 7 months ago Ramiro 99 -
1
votes1
answer274
viewsCodeigniter routes
Galley the default route of the site is "http://localhost/" or "http://localhost/index.php" when I go to the login page for example, "http://localhost/login" and not…
-
1
votes2
answers592
viewsHow to remove from the index.php url in Codeigniter
I have an application on my local server, I followed all the steps to have index.php removed from the url in codeigniter, on my local machine worked perfectly. Therefore, I put the application on…
codeigniter-3asked 6 years, 3 months ago Tadeu RT 84 -
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
votes1
answer604
viewsHow to take data from an array without using Index
I’m trying to get data through an API (bet365) it returns this data in JSON, I created a function to extract this data and transform into array It follows function: public Function api_football(){…
-
1
votes0
answers297
viewsDynamic table in PHP
I am developing a system for call tracking and teachers need a report where it will be possible to view the students of the class filtered by discipline, where it will be displayed if the student…
-
1
votes1
answer248
viewsWhy do Codeigniter 3.1 routes not work?
I’m a beginner in PHP, recently decided to learn and started reading the book "Codeigniter - Productivity When Creating Web Applications in PHP". In an attempt to follow the creation of an…
-
1
votes0
answers24
viewsLoad model codeigniter in Libraries
I’m trying to load the model in Ibraries, but an error is appearing. Follow the code below: <?php defined('BASEPATH') OR exit('No direct script access allowed'); class Menu { private $CI; public…
-
0
votes1
answer48
viewsProblem with php code to send simultaneous messages to the database!
I’m trying to create a code covers send messages between users of a system in php, the problem and I can send the message from one user to another but wish it was possible to send to all users, or…
-
0
votes1
answer47
viewsCodeigniter Database Size 3
Good afternoon, you guys! How do I know the number of rows in a database, using the Codeigniter 3 framework? I need to control the amount of data to be entered, so it does not exceed a certain…
-
0
votes1
answer686
viewsCSS and JS does not load on mobile, via localhost
Good morning! I’m making a small website, using Codeigniter 3 and Bootstrap 3. On the PC, CSS and JS work perfectly well, but when I try to access it from Smartphone, by localhost, load only the…
-
0
votes0
answers149
viewsCodeigniter 3 rollers do not work in production
I have a problem with Codeigniter 3 In my local environment is working perfectly but when I go up to production the routes do not work But if I put index.php in the URL goes to the correct route.…
-
0
votes2
answers528
viewsgenerate id Session/secure php cookie
I am setting up a login system for my projects. So far I have understood that they are usually used Sesssions, preferably. The article says that a good practice is to use session ids with at least…
-
0
votes1
answer316
viewsRoute structure of Codeigniter
I have the following route: $route_pri = $this->uri->segment(1); $route_sec = ($this->uri->segment(2)==true) ? $this->uri->segment(2) : ''; $route_three =…
-
0
votes0
answers210
viewsFile not found in PHP
I installed a script and is working properly, but on the site there is a restricted area and when logging in, the site drops and gives the following error: An Error Was Encountered Unable to load…
-
0
votes2
answers539
viewsMy css url is not working in codeigniter
Good morning, I’m learning to use codeigniter, and I’m having a problem with my css... inside the Applications folder I created another folder called layout, which inside it will have a header.php…
-
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.…
-
0
votes1
answer156
viewsHow to load two tables in a single select (html)?
I have two client charts, one called personal and one called personal I need to load both tables within 1(a select) using php and codeigniter 3.6. Be able to load the personal table, as follows the…
-
0
votes2
answers181
viewsGenerate multiple records in Mysql
In the Mysql have two tables: CUSTOMERS | codigo-cliente | nome | grupo | valor | |----------------|------|-------|-------| FINANCIAL | codigo-cliente | codigo-boleto | grupo | valor |…
-
0
votes0
answers221
viewsI’m having trouble connecting the codeigniter on oracle
I’m having two problems configuring the connection with oracle. A PHP Error was encountered Severity: Notice Message: Use of undefined constant OCI_COMMIT_ON_SUCCESS - assumed…
-
0
votes1
answer34
viewsProblem iterating an array in php
I have the following code. $array = array(1,2,3); $arr1 = array(3, 4, 5); $data = []; for($i = 0; $i < count($array); $i++){ $data["ca"] = $array[$i]; for($k = 0; $k < count($arr1); $k++){…
-
0
votes1
answer91
viewsUnable to load requested file: products / list_table.php
I’m trying to show off in a view data coming from the database, when I tried to run appeared the following message: Um erro encontrado Não foi possível carregar o arquivo solicitado: produtos /…
-
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
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
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
votes2
answers173
viewsCheck if a registered user in the bank has already registered Cpf
Hello, guys I need to check in the bank if a logged in user already has registered Cpf and return if it is false or not. I use codeigniter in the app. I’ll send you the codes. CONTROLLER: public…
-
0
votes1
answer66
viewsHow to switch to the AJAX select option for codeigniter view?
I plan to use a combobox as a data fill filter for other code combobox: Controller: function Ajax_consulta_zona() { $edificio = $this->input->post('edificio'); $bastidor =…
codeigniter-3asked 6 years, 2 months ago Marco Nunes 11 -
0
votes1
answer23
viewsDistinct tables in Codeigniter
I have a table where I save the idaluno and idconcedente, I want to make a select that picks the two ids go in their respective tables and take the alunonome and nomeconcedente. As in the…
codeigniter-3asked 5 years, 7 months ago davidson Alves 3 -
0
votes1
answer112
viewsCodeigniter - Problem in installing phpdotenv library (.env - for environment variables)
I am trying to install phpdotenv in Codeigniter 3 by following these instructions: Environment Variables in Codeigniter But, it’s giving the following problem: A PHP Error was encountered Severity:…
codeigniter-3asked 5 years, 10 months ago Julio Alves 83 -
0
votes1
answer757
viewsHow to run Model function in View with codeigniter?
I am using codeigniter (based on PHP and Model-Control-View). I have a controller that loads a Model and a View. [Controller] public function index() { $data['agenda_model'] =…
-
0
votes0
answers25
viewsPass two Controller variables to Codeigniter view
I would like to pass two variables from Controller to Codeigniter view, follow code: $lista_diversos['diversos'] = $this->diversos->getDiversos(); $listacodigos['codigos'] =…
-
0
votes0
answers31
viewsSelect does not replicate for all items
I need that when performing the selection of a city through a select, another select provides only the data relevant to the action. For example, there is an sql table, which contains some products,…
-
0
votes1
answer73
viewsHow to call a CODEIGNITER method in a TWIG view
Well I’m starting the journey in a project, offered by my School, to gain experience in the area of programming, I got in the middle of it, and I’m having some problems performing simple tasks. So…
-
0
votes2
answers274
viewsCodeigniter does not find Controller
My website is published on IIS servidor\c\inetpub\wwwroot\site There are other sites in the wwwroot folder each in your directory (site2, site3, site4... etc) In Routes.php the default controller is…
-
0
votes0
answers47
viewsHow to popular a <select> dynamically?
I’m trying to create a <select>, where when selecting the estado, the even displays the cidades in another field. The estados are coming up to mine controller, however is not displayed in the…
-
0
votes0
answers125
viewsClicking the modal button does not open confirmation window
I’m having trouble with the modal that does not work, IE, does not open on the screen. I am using DataTables to list database items with JSON. What happens is that by clicking the delete button,…
-
0
votes1
answer205
viewsHow to handle CORS prefilight request?
I have a problem in a study project, I gave a "googlada" and learned that whenever I make a first request defining headers for an Api, this request will be as OPTIONS, so that the browser receives…
-
0
votes1
answer329
viewsCheck if registration already exists (Codeigniter)
I am developing a scheduling system (automotive sector). The idea is for the user to choose an installer(ComboBox), Schedule(ComboBox) these times are already predefined and the date(Input/Date). I…