Most voted "codeigniter" questions
Codeigniter is a framework for developing PHP applications.
Learn more…1,026 questions
Sort by count of
-
0
votes1
answer499
viewsPrint two foreach variables in a table in different columns - codeigniter
I am trying to print a table that accesses the database and inserts the different values of each array in each column. The problem is not printing the values correctly.. Controller: private function…
-
0
votes1
answer1407
viewsHow best to use templates in Codeigniter 3
I am using version 3 of codeigniter and inserting the concept of templates through the PARSER library, according to the CI documentation itself…
-
0
votes1
answer141
viewsError BD query (Codeigniter PHP Mysql)
Someone could help with this mistake? In BD I have the table Cities and I’m trying to list cities, I’ve made several changes and it doesn’t work. When listing cities I will improve the query, I have…
-
0
votes1
answer40
viewsWhy are the values repeating if there is no data in the database?
I can’t seem to solve this problem! When I attend on a particular day, the ***status** of this day is repeated throughout the month**. In the example below, I did the day 1, then I did the day 2 of…
-
0
votes2
answers203
viewsHow to get the exact date and time after updating a record?
Whenever I update user data, returns me the wrong time, for example: I updated the user profile at 16:41, but in my database it appears like this 2019-10-15 16:10:53 I’m using mysql along with…
-
0
votes0
answers243
viewsSending email to gmail (Codeigniter), appears as spammer
I have a problem sending emails to Gmail through Codeigniter. Every email I send doesn’t show up the images and gets a Gmail message saying it might be a spammer. Is there any way to get over it?…
-
0
votes2
answers74
viewsSelect where the id of a previously selected is fetched
I’m on a page where you’re printing out a menu. And underneath this data I want you to show me the ingredients of this menu, and I will search them from a list of ingredients. Controller: function…
-
0
votes1
answer76
viewsHow to check if a mysql database table already exists with codeigniter4?
How to check if a certain Mysql database table already exists with codeigniter 4, and if it does not exist, create this table ?
-
0
votes1
answer245
viewsHow to redirect Subdominio to specific folder from using . htaccess
I created the subdomains using wildcard I would like to understand how I can solve the following problem with . htaccess: usuario.site.com.br -> (Aponta para pasta Usuário) fulano.site.com.br…
php codeigniter web-application htaccess domainasked 4 years, 3 months ago marcos vinicius Mulinari 24 -
0
votes1
answer623
viewsI need Error Help when trying to install Composer
I am doing maintenance and improvements on a site using Codeigniter v2.x and one of my client’s requirements, was to log in using Facebook. The problem is I need to install the Composer and I’m not…
-
0
votes0
answers28
viewsWhat is the difference between $this->loadView() and $this->load->view() in codeigniter?
I’m refactoring a code, I saw that the previous programmer wrote $this->loadView(), I’ve always used $this->load->view() since I learned Codeigniter. And I found that the behavior is the…
-
0
votes0
answers14
viewshow to get the id of a Session in codeigniter?
then for example how I would get the id of the Session in order to manually set the id? Function bundle_purchase($method = "", $amount = "", $transaction_id = "", $session_id = ""){}
-
0
votes1
answer18
viewsion_auth codeigniter library
Good afternoon Devs! I’m cloning a Github system to take advantage of some of the code. The System already come with Adm login inserted in the database, but do not know the password. I want to…
-
0
votes1
answer184
viewsWhy does Codeigniter understand a route as a directory and break links?
I set up a CI system that uses template schema, with header, navmenu, template (component) and footer. I use the Foundation for styling. The problem is this: when accessing a simple route, such as…
-
0
votes0
answers9
viewsComponent for creating and registering questions and answers like Google Form
I want to know how you have any question-and-answer component like Google Form. That would have the type options of questions (multiple choice, multiple selection), delete or duplicate the question…
-
0
votes1
answer905
viewsReturn name by id in view. PHP and Codeigniter
Hello! In the controller I have the following: public function index() { $data['demandas'] = $this->demandas_model->get_demandas(); $data['main_view'] = 'demandas/index';…
-
0
votes1
answer455
viewsCustomize data from a codeigniter session array
I am trying to create an array with the data I recover from the database, my code is like this $usuario = $this->input->post("usuario"); $senha = $this->input->post("senha");…
-
0
votes2
answers449
viewsphp cadastre with angular js
Hello! I have the following controller at the angle: myApp.controller('cadastrarClienteController', function($scope, $http){ $scope.cadastrarCliente = function () { $cliente = { CliNome:…
-
0
votes2
answers945
viewsLoad value in input text after selecting value in select Codeigniter
I want to load a value into an input text after selecting a value in a select. I am loading the normal select. I want to load input text using javascript. In my model I compare it with id. The data…
-
0
votes1
answer637
viewsSearch data from 2 tables - PHP+Codeigniter.
Hello, I’m starting my studies in codeIgniter and I came across the following. I have an employer table and another of vacancies, the job has employer id. I would like to show the data of the 2…
-
0
votes2
answers124
viewsUse of loop in codeigniter
Hello, all right with you? I’m having a big problem in codeigniter that I’m not sure how to fix, I have a helper where it works as follows function forms($a){ for(i=0;i<=$a;i++){ <input…
-
0
votes2
answers472
views"Unknown column 'Array' in 'Where clause'" - PHP+Codeigniter
Hello, I have the following tables in the database: data. datos_candidate where the same has several fields and one is the following id_vaga. When I save a vacancy the same has the id_vacancy, that…
-
0
votes1
answer427
viewsTake the data from a select and declare variable
all right? I am very new to programming and have a simple question that I did not find here on the forum. I have this code below the view (codeigniter): <div class="span6"> <label…
-
0
votes0
answers236
viewsDatabase error: Error Number:1064 in codeigniter
is making the following mistake Error Number: 1048 Column 'scale' cannot be null INSERT INTO teste (escala, id) VALUES (NULL, NULL) Filename: C:/xampp/htdocs/SAO/system/database/Db_driver.php Line…
-
0
votes1
answer37
viewsHow does the controller know it went to it without me passing the parameter in `echo open_form()`?
I have a code here that I’m studying as he does. See this view insira o código aqui<div class="animate form login_form"> <section class="login_content"> <?php echo form_open('',…
codeigniterasked 8 years, 2 months ago Natan Melo 656 -
0
votes1
answer262
viewsCalling an Array from a Public Codeigniter View function
I have this public service in Controller: public function faturar() { $this->load->library('form_validation'); $this->data['custom_error'] = ''; if…
-
0
votes1
answer704
viewsError Object of class stdClass could not be converted to string in codeigniter
I’m not getting out of place because of this mistake. My model looks like this public function conf($dados){ $this->db->select('id'); $this->db->where('senha',$dados); $query =…
-
0
votes0
answers152
viewsCodeigniter PHP parameter coding problem
I have an autocomplete that makes connection via ajax, but when I typed letters with accent that are even in the database the query did not return anything. Both the bank, php.ini and the…
-
0
votes0
answers253
viewsmessage Undefined offset 0 no codeigniter
I have a problem to set the data in a view with the Codeigniter framework. Model: // Metodo que busca os dados de um cliente especifico public function getCliente($id){ $this->db->select('*');…
-
0
votes0
answers58
viewsHow do I make two references of a table in other 2 tables?
Well, I have 3 tables tbl_users tbl_article tbl_profile I need tbl_usuarios to be related to tbl_articles and tbl_perfil. How could it be done? Table tbl_usuarios:…
-
0
votes1
answer156
viewsPaging in Codeigniter with error Type: Error Message: Unsupported operand types
I have a function that takes all the values from the database and sends them to a view, then I’m making a pagination. Only when I put the $this->pagination->create_links() of the variable…
-
0
votes0
answers443
viewsEmail me codeigniter
someone would kindly help me, it’s a problem I’ve looked for here and haven’t found the mistake yet. The problem is this, I am trying to send email on the server I am currently using where it is ssl…
-
0
votes1
answer1710
viewsGlobal variable - codeigniter
Hello! I want to display a die($variable) on a footer. The way it is below, it works and the variable $operador is displayed correctly on all options/screens I click. <?php $operador =…
-
0
votes0
answers57
viewsno return on second load select option
<script type="text/javascript"> var base_url = '<?=base_url(); ?>'; $(document).ready(function () { // Evento change $("select[name=laboratorio]").change(function () { // Exibimos…
-
0
votes2
answers284
viewsDar Foreach label on Chartjs / Canvas - Codeigniter
I have a problem here, which may be simple, I don’t know I’m using a frame for the chart, where I can put the boxes I want so that it will be displayed at each bar. Getting like this: Each item…
-
0
votes1
answer623
viewsUPDATE in another table when updating a record does not work - CODEIGNITER - MYSQL
Hello, the code to update a record to another table does not work. I need to update the table vendas when saving a record from the table lancamentos. on the table lancamentos there is the column…
-
0
votes1
answer73
viewsCode organization in codeigniter controller
I am using the HTML Table Class and the table settings are defined through an array as documentation of the codeigniter itself…
-
0
votes1
answer90
viewsMaps - Codeigniter
Personal I am using the following library to work with maps: http://biostall.com/codeigniter-google-maps-v3-api-library/ . Here is the tutorial of the same:…
-
0
votes1
answer337
viewsPagination - Codeigniter
Hello, I have a problem paging, the links of the pagination are displayed normally, but regardless of the page I go, the results are always the same, IE, does not change. Below is the Controller…
-
0
votes1
answer612
viewsEdit Codeigniter
In the Codeigniter and I’m having a hard time loading into the customer’s form the data for him to change. The customer has to log in to the registration part and update their data. When it logs…
-
0
votes0
answers533
viewsImage upload using Angularjs
I have this Angularjs: app.controller("templateController", function ($scope, $http, $timeout) { $scope.save = function () { $scope.mensagePage = {class: 'warning', text: 'Processando...'}; var…
-
0
votes1
answer201
viewsPass code via url with/to a java script (php+codeigniter)
Hi, I have the following case. I have a part with just a few data from various locations, I would like to do something to open a pop-up to show all the data from that location, for that would need…
-
0
votes1
answer118
viewsjQuery Function crashes after Ajax search
I made a system in Codeigniter that searches in real time. In my search, send the parameters via Ajax to the controller and do the query. I send all the HTML to a view. Then I take all the HTML from…
-
0
votes0
answers40
viewsHow to redeclare a Function after loading new content with Ajax?
I need to assign to the new elements loaded through a request ajax this Function bloginfos(). There’s a more elegant and professional way in my code of doing this?…
-
0
votes1
answer290
viewsProblems with friendly url in codeigniter
I have the following problem. I am working with a Codeigniter system and need to remove index.php from the url. My . htaccess is as below: RewriteEngine on RewriteCond $1…
-
0
votes0
answers186
viewsHow to update several rows of a codeigniter table
Hello, I’m having the following problem, I have a stock table. follow img: these stock products are grouped every time I give an entry it adds to what already exists and creates a new line in the…
-
0
votes1
answer399
viewsHow to get the answer to enter immediately after the question?
I have a form and I want to send the questions and answers to a database. I took the question in text form and sent it to a field input Hidden and I want to put the question and the answer in the…
-
0
votes1
answer429
viewsEdit Form c/ modal + Codeigniter
Good afternoon to all, I am implementing an edit form (modal) that has an 'edit' link and that when clicked opens a modal form. The big problem is that I am not able to assimilate the link 'Edit'…
-
0
votes1
answer147
viewsMake upload optional
I am using the Codeigniter File Upload Class in a form to send a photo, but by default the field is required, I wonder if there is how and if you have how to change the rule, because there will not…
-
0
votes2
answers542
viewsXML returning empty in PHP
Good afternoon, I’m doing consultations on a central bank webservice and am encountering some difficulties. The return of the query is in XML and I must send the authentication to receive this data,…