Most voted "codeigniter" questions
Codeigniter is a framework for developing PHP applications.
Learn more…1,026 questions
Sort by count of
-
3
votes1
answer624
viewsInclude a file external to Codeigniter
I am trying to make an integration between a system developed in Codeigniter(CI) with Moodle and I need to include in the CI a file from the Moodle library, to recover some data. However I am not…
-
3
votes1
answer690
viewsA Database Error Occurred: You must use the "set" method to update an entry
I am using Codeigniter and am registering a call in the bank and receive the following message: public function solicitacaoRapida(){ $banco = array( 'solicitante' =>…
-
3
votes1
answer62
viewscolumn does not obey the Where command of an update
I have a problem. At the moment I make an update, when I use Where only the line with the code informed is updated. however the Description field that I report, its content is replicated for all…
-
3
votes1
answer673
viewsCodeigniter images does not load
I am new using the IC, and I’m having problems with it because it does not load the images in environment localhost (using XAMPP). I have already inspected and checked if the path is all ok, and…
-
3
votes1
answer536
viewsMulti connections Mysql Codeigniter
In my.php database I created two connections: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $active_group = 'default'; $active_record = TRUE;…
-
3
votes1
answer862
viewsError!!! You did not select the file to upload. Codeigniter
I have a problem uploading the image and registering it in my database. In my database I have a table called tbl_article where there is a when going to the image in question called artigo_image with…
-
3
votes1
answer51
viewsI can’t make select
Model: public function exibir_noticia() { $consulta = $this->db->query('SELECT * FROM Noticia_Site_Cairu'); return $consulta->result(); } Controller public function index() {…
-
3
votes1
answer868
viewsHow to access a variable codeigniter array
I have trouble picking up values within an array variable in codeigniter help me understand how this works once and for all I searched the database that is sent to the view by an array: Controller…
-
3
votes2
answers76
viewsoverlapping tabs on foreach
I need the foreach to work properly : So that we have no doubt here this the normal code: <!-- Tab v2 --> <div class="tabs alternative"> <ul class="nav nav-tabs"> <li…
-
3
votes1
answer570
viewsHow to feed real-time notifications while logged in?
I’m looking for a system that keeps updating the logged in user to show the messages he receives. Considering that this system will have 250-500 simultaneous users, what is the best way to search…
-
3
votes3
answers2169
viewsControl of séssions and authentication in PHP with Codeigniter
Good morning guys, I’m new to programming with PHP and I have a question: I have already developed the login system and it is working correctly, now I would like to control the access to the other…
-
3
votes1
answer575
views$_SESSION does not persist on other pages in the application
good evening everyone, I am using the codeigniter and native Session of php $_SESSION, it so happens that I can only use Session when I install a login controller that redirects to another page, but…
codeigniterasked 7 years, 8 months ago Flavio Domingos 75 -
3
votes1
answer47
viewsShow results children in parent array in Codeigniter
Good afternoon, I’m starting at Codeigniter and would like a help. I have a table of football teams. Each team has its players who are in another table of my bench. I receive the values of these two…
-
3
votes1
answer223
viewsHow to join two selects of different tables?
I have the following tables: +--------- + +-------------+ | usuario | |usuario_grupo| +----------+ +--------- + +-------------+ | grupo | |usuario_id|----->| membro_id | +----------+ | nome | |…
-
3
votes2
answers785
viewsConfirmation Modal with codeigniter
I need to do an exclusion confirmation modal. In html <a class="btn btn-primary" onclick="Confirmar(<?=$dados->id;?>)">Excluir</a> Function <script> var base_url =…
-
3
votes1
answer1434
viewsAccess object inside object (Sdtclass - Codeigniter)
Hello! Through the ajax data: { 'objeto': JSON.stringify(_obj_devedor) }; I am sending the following objeto to the server. And in codeigniter, I’m converting as follows: $objeto = $_POST['objeto'];…
-
3
votes2
answers54
viewsUnserialize data in Codeigniter?
Seeing that I have the following method: Controller public function get_objeto($permissao_id) { if ($permissao_id == 0) { $permissao_id = $permissao_id; $dados =…
-
3
votes1
answer36
viewsIs it possible to assign a value different from the value acquired from an OPTION in a SELECT when submitting the form to PHP?
Well, I believe the title of this question has been confused, but I’ll try to elaborate on my problem. I’m developing a project with the Codeigniter framework (I’m a beginner) where I have a…
-
3
votes1
answer457
viewsCodeigniter form_open_multipart, how to use
I’m using Codeigniter in a project but I’m having a hard time sending the information, I have a view that contains a form with the registration fields: <?php echo…
-
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('*');…
-
3
votes1
answer200
viewsProblem with mPDF and Codeigniter
I have code on Controller down it is working perfectly, however I want to set my own title and when I try to SetTitle() he returns me this error: Call to a Member Function Settitle() on null public…
-
2
votes2
answers377
viewsCreate a query inside a function file in the Libraries folder and not in the model as suggested
I need to check a certain type of permission that is in the permissions table in the MYSQL database. In this case, I will need to use a function that is inside the "Libraries" folder in a file…
codeigniterasked 10 years, 11 months ago user737 165 -
2
votes2
answers1304
viewsHow to hold the value of a POST between paging in Codeigniter?
I have an element form with a select and a submit (filter). The data is filtered, the page is reloaded and the data is presented in a table. To see all the data, you pass through more than one page…
-
2
votes3
answers2007
viewsSelect records from a table where the record of a related table is a specific value
I have a table of technical calls and a table of appointments. Each 'CALL' has several 'CALLS' and it is in the calls that is the field that defines the status of the call (Open, Closed, In…
mysql codeigniter select relational-model active-recordasked 10 years, 8 months ago EdnaldoNeimeg 109 -
2
votes4
answers1039
viewsError while displaying video html
I’m putting a video using Html5 and codeigniter on my page, but is only showing the player without displaying the video. script: <video width="420" height="340" autoplay controls> <source…
-
2
votes1
answer56
viewsCodeigniter shows strange errors
I’m developing an application Codeigniter, but I reinstated the Wampserver. In the place where there was a form now shows this following code. 'id', 'value' => $id, 'size' => '6', 'readonly'…
-
2
votes2
answers171
viewsGenerate a search url?
I need to get the search url for a specific term on a site built using Codeigniter. But when I type the term, the url changes only to: nomedosite.com.br/busca I tried to add ?q=arquitetura but it…
-
2
votes1
answer532
viewsCSRF validation giving error after a time without use
I have an application already running with codeigniter and I have csrf enabled in the system. The problem is on a page that has a form that sends to itself, is a filter, but it is the following, the…
-
2
votes1
answer259
viewsJoin with Codeigniter Active Record
I made a query that is running ok and I am passing to the Active Record of Codeigniter but it is not working because of a Join that is a bit out with conventional, does anyone have any idea what…
-
2
votes2
answers950
viewsRun Cronjob Codeigniter
How to execute a class method in Codeigniter via Cronjob? Ex: main.php accessed in http://www.meusite.com.br/principal/listaCron <?php if ( ! defined('BASEPATH')) exit('No direct script access…
-
2
votes2
answers166
viewsRouting Codeigniter
I am making a site with administrative area using the Codeigniter Framework. In the administrative area, the user can create new pages for the site. The contents of the page will be saved in a…
-
2
votes1
answer596
viewsPOST is empty depending on the site I use
I have a project in Codeigniter which is in a folder within the domain. The folder structure is as follows: /domain/Web/project/ I will call it domain and project due to the name of client/website I…
-
2
votes1
answer453
viewsDate field in Codegniter form
I am developing a form with date field. How I use the Codeigniter gift form resource for a date field? In the example below I am using text area. There is a function form_ for dates? echo " <div…
-
2
votes2
answers674
viewsCodeigniter - Query in DB
Good night! I need to return the value of a table in codeigniter but it is acknowledging the error below: PHP Error was encountered Severity: Notice Message: Undefined variable: name Filename:…
-
2
votes2
answers215
viewsRecover column of a Join in view
I have an appointment with Join and in both tables I have a column with the same name ds_observacao. The tables are: cliente and ordem_servico. Time to show on view, the value of this column returns…
codeigniterasked 9 years, 9 months ago André de Pádua 41 -
2
votes1
answer1439
viewsCodeigniter to know if Insert worked?
Using codeigniter how can I know if the Insert into worked really? $novo_usuario=$this->db->query("INSERT INTO usuario (nome, email) VALUES ('pessoa','[email protected]')"); Via the variable…
-
2
votes1
answer477
viewsUsing Codeigniter configuration file sessions
In my project, I need to do some tasks, which depend on information that is in the database. I store this information in sessions to use throughout my project. One of these tasks is to connect to…
-
2
votes1
answer453
viewsImprove file_get_contents performance in loops
There is a way to do the file_get_contents perform a quick function within a loop? Follows the code <?php foreach ($links->result() as $value) : ?> <?php $url = $value->lnkUrl;…
-
2
votes1
answer2051
viewsHow to check if a session exists (Codeigniter)
I have the following function in my Controller: private function SetImageAndColor($client_id) { if (isset($_GET['color']) AND isset($_GET['image'])) { $dados['click2call'][$client_id]['image'] =…
-
2
votes1
answer229
viewsRoutes - Codeigniter
I wonder what this $ means in defining routes, for example : route["(.*)-sid-(:num)-(:num)"] = "services/service/$2/$3"; What it represents $2and $3?…
-
2
votes4
answers529
viewsHow to generate an array with the list of uploaded files?
Type I want to generate an array like this. array('nome1', 'nome2', 'nome3',) what I have is the $name string, how do I generate the above array ? would be something like array($nome) ?? my code if…
-
2
votes2
answers1675
viewsSending an email programmed with PHP
All right, folks, I’m new here and I have a very peculiar question. I am developing a system (Codeigniter + Mysql) that records some events and should send an email at a predefined date, around…
-
2
votes1
answer74
viewsUser created subdomain
I am developing a user area system, when registering, this user will have his area with his subdomain, chosen by him. Doubt: How to do this subdomain registration, and he will not have access to…
-
2
votes2
answers1234
viewsCalculate hours in PHP?
I am developing an electronic point in PHP and I would like to know how to do the Caculo of two hours being that one of them is negative, for example: Workload day 1: -05:00:00 Workload day 2:…
-
2
votes1
answer195
viewsHow to make is_unique two fields?
I’m in a need I don’t know how to accomplish. Well, my problem is: I have a field is_unique which refers to two fields of my BD, the IDENTIFIER and the PLAN. I would like to know how to carry out…
-
2
votes1
answer280
viewsSite_url does not work in Codeigniter
I’m following a tutorial of Codeigniter this snippet of code is not working on my machine, I’ve set everything right, even the other tutorials have worked, but this snippet of code is not working:…
codeigniterasked 9 years, 4 months ago Israel Sousa 1,362 -
2
votes1
answer1515
viewsHow to update via ajax + php
I want to update data through a modal, however it is not updating. Does anyone have any idea why it is not updating? Modal: <script type="text/javascript"> $(document).ready(function() {…
-
2
votes1
answer198
viewsError of Session in user level validation
Good guys I am making a simple panel more with user level where I pass to the Session an array with three values, so far so good, the functions that validate the form, validates the bank user,…
-
2
votes1
answer825
viewsRedirecting in Codeigniter
I’m developing a project using the framework codeigniter. In the index which renders the site, I would like to first direct to a folder called 'input', and when clicking on a link in this folder,…
codeigniterasked 9 years, 3 months ago Sr. André Baill 6,946 -
2
votes1
answer47
viewsHow to return an integer value for the Rows in the codeiginter?
How do I return an integer value for the rows returned in select? $query = $this->db->where("categoria_titulo", $categoria); $query = $this->db->get("categorias"); $query =…