Most voted "codeigniter" questions
Codeigniter is a framework for developing PHP applications.
Learn more…1,026 questions
Sort by count of
-
0
votes1
answer96
viewsData returning with space
I’m making a call ajax with jQuery in a controller on CodeIgniter. The problem is that when the jQuery returns me the data, it is coming with some spaces in front of the result, getting for example:…
-
0
votes0
answers30
viewsCheck expired vip users
Good afternoon, everyone, I have a classified portal and I’m putting VIP accounts on it, these accounts will have the possibility to make an amount of vip posts by the plan contracted. I already…
-
0
votes1
answer94
viewsError limit Codeigniter
Hello everyone from Codeigniter Brasil, I have a query that returns everything perfect in localhost but the server does not return the way it was written. It is to return 6 results but on the server…
codeigniterasked 7 years, 11 months ago Bruno Luiz 51 -
0
votes0
answers73
viewsModel does not load Codeigniter
I am trying to make a Model work, it works on MAC with MAMP PRO, but in Ubuntu with Apache2 it does not work. models/users_model.php <?php if ( ! defined('BASEPATH')) exit('No direct script…
-
0
votes0
answers28
viewsLoading multiple VIEWS in Codeiniter
Since Header and Footer will be the same on all pages, there is a downside to calling them in the same Controller? EX: $this->load->view('v_header', $variaveis);…
-
0
votes1
answer42
viewsGrocerycrud error
Speak guys I’m trying to use the Grocerycrud together with the Framework Codeigniter I am doing the installation exactly as indicated in the video tutorial of Grocery but even without changing…
-
0
votes1
answer776
viewsPagination in codeigniter 3
Guys I made the pagination in codeigniter and it works with the exception of a detail the link of page two is url/1, page three is url/2 and the first only url. What do I do to leave page two with/2…
-
0
votes2
answers1165
viewsbring data from the database with Javascript
I have a <a href="javascript:void(0);" class="justificar" data-value="<?= $l->img_id?>"> that when you click, I need you to bring a data from the database, but I don’t know how to…
-
0
votes2
answers172
viewsPlacing a Bootstrap class inside a form generated with Codeigniter
Can anyone tell me what I call the Bootstrap classes within a form I generated using Codeigniter? From what I’ve researched it uses an associative array, but I’m not getting it. For example, in the…
-
0
votes1
answer125
viewsLogging in form_validation does not validate as expected
I’m starting with codeigniter, but I have a little problem: When logging in, it doesn’t leave the incorrect password and email if. Form fields are correct and bank. Can you help me? This is the…
-
0
votes1
answer543
viewsScript or API to check if domain is available in PHP
Do you guys know any opensource scripts or Apis that are running in PHP to see if a domain is available? One that works for extensions .com.br, I looked for some but so far nothing functional, if…
-
0
votes0
answers39
viewsDraw characters in id
I have a code that when I click the button to deactivate photo it makes disappear the button that is next. To get this function to work, I had to pass in id a few characters before, it was like…
-
0
votes1
answer80
viewsLinks and Scripts not found with CI-3
I put my header and footer inside a briefcase templates which is inside the folder views, when I try to load the CSS the browser returns the erro 404 - not found, but I am following according to…
-
0
votes1
answer125
viewsHow do I make a change to be printed in the view without refresh?
<script type="text/javascript"> function atualizarTarefas() { var url = "institucional"; jQuery("institucional#entregas").load(url); } …
-
0
votes1
answer129
viewsMVC standard for Controller in codeigniter
I have the following scenario, some models that will be accessed via administration (website) and via client (app), in the administration it will be able to read and write data and the customer only…
-
0
votes1
answer70
viewsProblems in a Join Codeigniter
I have the following select : $this->db->select('*'); $this->db->from('tbl_produto_marca'); $this->db->join('tbl_produto', 'tbl_produto_marca.cd_codigo = tbl_produto.cd_marca');…
-
0
votes2
answers484
viewsHow to know if user is logged in with ion-auth 2
I want to restrict access to my login system to only 1 for each login, I want my system to block access, if login is already being used on another device. What would be the best practice to do that?…
-
0
votes1
answer51
viewsMultiple automatic wheres
I was seeing in the CodeIgniter that there is a way to insert several 'Where' into the class DB: Example: $this->db->where('id', 1) ->where('name', 'Jão') ->where('lastname',…
-
0
votes1
answer219
viewsDoubts on how to do inheritance with PHP using Codeigniter Framework
I’m having doubts to use inheritance with PHP using the frame Codeigniter. I need to create a class Abstract? How do I search for a field that is in a certain class? Ex: The Product Class has the…
-
0
votes0
answers59
viewsUpload XML to Codeignter 3
I am uploading to codeigniter 3 and it is not accepting xml to upload. It shows me an error that the selected file type is not allowed. $config['upload_path'] = './uploads'; $config['allowed_types']…
-
0
votes1
answer53
viewsBanking integration
Good afternoon! I need guidance/suggestion. Here’s the thing: we have a clock software where it records all the markings in a MS Access database. I need to create a report of each employee on the…
php mysql codeigniter ms-access codeigniter-2asked 7 years, 5 months ago Laísa Ferreira Cardoso 116 -
0
votes0
answers92
viewsDisplay data at user level
I have an agenda where users will register reminders and tasks, now I would like each user to view only their own tasks. Each task created is already associated to the user as I will be showing…
-
0
votes0
answers172
viewsHow to insert data into two different tables with the same form?
I have a dynamic form where the questions come from a database table, some questions have multiple choice answers that also come from the database. but other questions are text questions. When doing…
-
0
votes1
answer1385
viewsPaging with the codeigniter
Could one of you help me find the error in this paging code with codeigniter. it prints the links in the right way, but it shows more items than it should per page, and when I change the page it…
-
0
votes0
answers26
viewsError generating image report
I have a code that has several photos separated by reports. Each report can any amount of photos. When you click the button to generate this report, if you have several photos (around 60) it starts…
-
0
votes1
answer95
viewsSplit form to insert into rows other than Database (codeigniter)
I have a dynamic form that is filled as there are questions in the database, this form also writes text boxes, checkbox, textareas, etc according to the type of question defined in the database, the…
-
0
votes1
answer233
viewsSend file to another server using Codeigniter
I have a Web System that I’ll switch to a hosting. But I have the system with 2 banks (one for the site and the other is in my house for the path of the files, documents, logs, etc), the script will…
-
0
votes1
answer241
viewsLoad controller with hyphen or underline in the URL - Codeigniter
I hosted my project done in Codeigniter 3 on a server using Linux and PHP 7 and I cannot load certain links, gives error 404. Example of Controller Name: Relatorio_Detalhado.php Link in the url:…
-
0
votes1
answer409
viewsFilter Records by Month/Year Codeigniter
I have the following SQL structure: CREATE TABLE IF NOT EXISTS `noticia` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_categoria` int(11) DEFAULT NULL, `titulo` varchar(255) NOT NULL, `previa` text…
-
0
votes0
answers74
viewsProcedure does not run in codeigniter
function renovarEmprestimos($matricula, $livro){ $this->db = $this->load->database('biblioteca', TRUE); $query = $this->db->query("EXEC J_renovarlivroweb '$matricula', '$livro', '1'…
-
0
votes1
answer141
viewsPostgresql connection to Codeigniter error?
Postgresql connection to Codeigniter error:…
-
0
votes0
answers76
viewsConstant change of dates in Codeigniter
I have a site developed in PHP and Codeigniter, never worked with PHP or Codeigniter, only with Javascript. The problem is that the date of the site ads is constantly updating, which was to be…
-
0
votes1
answer63
viewsControl access to documents
I am creating an application to manage files, the files are being saved in a local directory "localhost/uploads...", I have a table "documents" with a field "urldoarquivo", where save the file path,…
-
0
votes1
answer105
viewsData-Table does not work with Codeigniter
The page does not show the data-table, only the table created in codeigniter. It follows codes CONTROLLER public function gerenciar(){ esta_logado(); set_tema('footerinc',…
-
0
votes2
answers685
viewsError Call to a Member Function Row() on a non-object Codeigniter
Password change screen, form is ok, but variable to fetch information in bd giving error, in function Row()! Follow VIEW: case 'alterar_senha': $iduser= $this->uri->segment(3);…
-
0
votes1
answer36
viewsWhen calling controller in codeigniter, it always seems to be going through "Welcome"
I’m making a simple application in PHP with codeigniter, where I’m trying to access a controller, and apparently whenever I call this controller, it goes through Welcome, example:…
-
0
votes1
answer512
viewsAngularjs project base with Codeigniter
Hello, I’m having trouble creating a folder base using Angularjs and codeigniter. Some examples I searched on the internet left all the files of the angular inside a folder called "app" at the root,…
-
0
votes1
answer79
viewsglobal $var does not work in PHP
I have the following code: <?php $_this =& get_instance(); function ConfiguracoesSistema($coluna){ global $_this; $configuracoes = $_this->db->get('configuracao');…
-
0
votes1
answer638
viewsCheckouturl redirection problem at Cielo Checkout
I’m developing the website of my record label with the Codeigniter framework. In it I will sell physical and digital Cds with the Cart class. I signed up for Cielo this week and I am reading…
-
0
votes0
answers101
viewsbring data from the database according to other data registered
I have a code that brings the database data and generates a table. This data is coming all that are registered, but I need only data with the same user status come. For example: I have a user from…
-
0
votes0
answers299
viewsData request, Cielo checkout
I am having trouble receiving the data in the notification and status URL of Checkout Cielo. I am using the Codeigniter framework, and the data does not update the table. Follow the code of my…
-
0
votes0
answers51
viewsBring user information to the model
I have a code that lists several reports. These reports are saved in the database and to call them I use the Model in the Codeigniter. Inside the model, I have one where and to make it work…
-
0
votes1
answer108
viewsHow do I automatically delete flash_data message after it is displayed in codeigniter
elseif($aulas_professor[0]['controle_aula'] == 0){ $desativado = $this->session->set_flashdata('desativado', "O Professor selecionado Não está ativado ,ative-o e…
codeigniterasked 6 years, 12 months ago Anderson Oliveira 1 -
0
votes1
answer46
viewsEdit form does not display loaded data
I have been trying for some time to make a form in Codeigniter 3 for editing data to display in your fields the values of each column of the selected record. The operation update is working…
-
0
votes1
answer596
viewsCodeigniter - Permission Authentication
Good afternoon, I wonder if there is a more practical solution to my problem. Each user has a different permission, characterized by a permissa_id in the users table that is correlated with an id in…
-
0
votes1
answer59
viewsPossible permission issue
While trying to run a php code on my Ubuntu machine if ( ! is_dir($system_path)) { header('HTTP/1.1 503 Service Unavailable.', TRUE, 503); echo 'Your system folder path does not appear to be set…
-
0
votes0
answers213
viewsSort datatable by date of records
I have a code, which when starting, it creates a table using datatable. The data from this table comes from my Mysql database. I do not know for sure how is the ordering of my records, if I am not…
-
0
votes1
answer389
viewsSlow page loading locally after configuring virtual hosts
Greetings, I’m having problems loading pages on my local server. This problem happened after I set up 3 virtual hosts and when I try to load my page through it, it takes A LOT to load. Could someone…
-
0
votes1
answer75
viewsFailed to load CSS
Good afternoon. The following application: http://23.88.113.70/public_html/sitemodelo/hqfree/ in codeigniter does not load CSS. $config['base_url'] = 'http://localhost/sitemodelo/hqfree/';…
-
0
votes1
answer114
viewsError loading Codeiginiter library database
I have the following error in codeginiter: A PHP Error was encountered Severity: Error Message: Call to Undefined Function mysqli_init() Filename: mysqli/mysqli_driver.php Line Number: 135…