Most voted "codeigniter" questions
Codeigniter is a framework for developing PHP applications.
Learn more…1,026 questions
Sort by count of
-
1
votes1
answer189
viewsMy client record "almost" all fields
I’m having a very weird problem and I believe you can help me. I have a web system to control the company, where it has the customer registration, products and etc. The system is in php +…
-
1
votes0
answers67
viewsPostcards with background image and dynamic text in php, for sending by email
Good afternoon, I will need to make a web page where a user chooses a background image and then in a text box adds a text and finally can send it by email. Kind birthday Christmas card etc. Can…
-
1
votes0
answers296
viewsCalculation of Freight Table
I have the following freight table I have the following neighborhood table Where on the table -> idSaida = 1 = Centre and idDestino = 2 = Abranches In this case a product will be collected at the…
-
1
votes2
answers1299
viewsCodeigniter with Modal Screen and Registration Response
I am making a registration of call requests through a modal but I can not handle the registration answer: "Register with Success" Controlling class <?php defined('BASEPATH') OR exit('No direct…
-
1
votes1
answer519
viewsHow to save my queries (sql strings) in the log file in Codeigniter?
My problem is the following, how to register queries(the generated sql string) in my log file. I know there’s a function to it, only I don’t want to have to call this guy in all my Model methods. My…
codeigniterasked 8 years, 5 months ago Meeeefiu 2,859 -
1
votes0
answers665
viewsSend PDF in Attachment mPDF, phpmailer
I have the following code in PHP: error_reporting(E_ALL ^ E_DEPRECATED); $this->load->helper('mpdf'); $this->data['dadosboleto'] = $this->boleto_model->GerarBoletoCEF($id_cliente,…
-
1
votes1
answer608
viewsRecover data in jQuery form
called js. function clienteChange() { var id = $('#idCliente').val(); $.ajax({ url:"/Entregas/clientes.endereco.php?id=" + id, dataType : 'json', success:function(result) {…
-
1
votes1
answer85
viewsHow to correctly insert a Bootstrap navbar into the Codeigniter view?
I am learning Codeigniter and would like to know what or what are the correct ways to insert a navbar in my view taking into account that it will be inserted by all views present in the system. My…
-
1
votes1
answer472
viewsCheck if email already exists with codeigniter
I want to check if an email already exists in the database. I am doing the following. $this->load->database(); $query = $this->db->get_where('usuario', array('email')); $result =…
-
1
votes0
answers69
viewsDifferent Date Format
Sirs, I have the following code: $funcionario_blocodcon_novo = array(); for($i=0;$i<count($funcionario_blocodcon['localtrabalho']);$i++){ foreach($funcionario_blocodcon as $key=>$val){…
-
1
votes3
answers2439
viewsPopular Modal Bootstrap for User Edit
Good morning, you guys, I have a user screen with a list that was populated by a foreach, and each line has a link to edit the user. This link opens a modal that should already come with user…
-
1
votes1
answer73
viewsQuery to return only the records of the last 24h (Codeigniter)
Hello I needed to do a query that returns the values of only the last 24h i have the following query: $date = date("Y-m-d H:i:s"); $this->db->select('*'); $this->db->from('inscricoes');…
-
1
votes1
answer54
viewsModel_lock - Customizing Code
Gentlemen, I have the following PHP code: # Fechamento Chamada public function fechamentoChamada($data_inicial = null, $data_final = null, $idCliente = null, $idFuncionario = null, $view = null,…
-
1
votes2
answers2057
viewsUpload images to Codeigniter
Good, At first I wanted to say that I don’t understand anything, but I really don’t know anything about Codeigniter. But the site is so done and asked me to add an image upload. And so I did, but…
-
1
votes1
answer199
viewsGooglemaps - Codeigniter - PHP
I’m using the following library http://biostall.com/codeigniter-google-maps-v3-api-library/ to mark on the map, could someone who has already used it tell me if it is possible when the user clicks…
-
1
votes1
answer2977
viewsJoin Codeigniter
Next guys, I have a vague table and other vaga_cadidato, I would like to select the data of the same when the id_entity is equal in the id_entity. However it is showing me only the data of the…
-
1
votes3
answers2299
viewslimit no codeigniter
I have a code that takes data from the database and shows them in a table. I need it to appear only the first two records. For this I put a limit on my code. Only it is not limiting, but taking the…
-
1
votes2
answers268
viewsCodeigniter multilingual site
I need to create a multilingual website in codeigniter. The texts must come from the database. My intention is that each table has both languages. For example. Table sobre would have id | titulo_br…
-
1
votes1
answer138
viewsmake a button disappear
I have a code where it creates a table if it has a record in the database. In this table, in the last column there is a button that when clicking opens a more detailed screen about that table row. I…
-
1
votes1
answer307
viewsSession is destroyed after redirect in Codeigniter 3
Developing a login system, I wrote the following script in the controller: $usuario = $this->input->post('usuario'); $senha = $this->input->post('uenha'); $q =…
-
1
votes1
answer227
viewsPassing variable for $_POST
I got the following foreach() <? foreach($cidades as $valor){ ?> <div class="listacidade"><a href="<? echo…
codeigniterasked 9 years, 3 months ago Sr. André Baill 6,946 -
1
votes1
answer122
viewsRecover ID passed by DIV on next page
I have the following CSS class along with foreach(): <section id="cidades"> <div class="listacidade">ESCOLHA UMA OPÇÃO</div> <ul id="ListandoCidades"> <? foreach($cidades…
-
1
votes1
answer6033
viewsCodeigniter 2 with variable reference error in PHP version 5.6
I am using version 2.1.3 of Codeigniter and when I open any page the following error is displayed: PHP Error was encountered Severity: Notice Message: Only variable References should be returned by…
-
1
votes1
answer1102
viewsHow to pass a controller variable to view?
I need to pass the variable $limit to my view and display it there, how could I do it? public function index() { // .... $this->pagination->initialize($config); $data['pagination'] =…
-
1
votes1
answer444
viewsTreat session by codeigniter model or controller
I’m trying to send the data from the database to the session, gave a print_r on the data received from the bank, but I can not pass it to the session, follow the code. Controller <?php…
-
1
votes0
answers86
viewshave to request only when there is a change in the database? instead of checking every second
<script type="text/javascript"> function atualizarTarefas() { …
-
1
votes0
answers29
viewsProblem sending application to hostgator with codeingniter
I was sending a system of pdv for my hosting Hostgator ai gave the following error: Severity: Warning Message: Cannot Modify header information - headers already sent by (output Started at…
-
1
votes1
answer87
viewsthumbnail codeigniter
I built this class that makes a multiupload of images, creates the folders according to the id_year, and then generates the Thumbs of these images as per the foreach wheel. The problem is that the…
-
1
votes2
answers372
viewsSet field to null - Codeigniter
Hello, beauty? I’m making a update in a table and I am sending the data array. However, I have a date field. Every time I update, it sends the field as 'dtnascimento' = ''. When this data arrives in…
-
1
votes1
answer1192
viewsPopular second select after selecting the first select
good night! I want to popular the second select with the data depending on the first select, I have the following code View $(document).ready(function(){ $("#relatorio").change(function(){ $.ajax({…
-
1
votes2
answers790
viewsSelect the country and bring the state
I have a code that’s on Codeigniter. He has the page to register a user. This page asks him to put the country and the state he lives. I needed it when selecting a country to come the corresponding…
-
1
votes0
answers89
viewsNetworkerror: 500 Internal Server Error
I have a code that forms the user’s profile screen. Next to the user’s name he has the edit option, that when clicking opens an inline Edit (form-x-Editable.html). Even in this part is working…
-
1
votes1
answer323
viewsCompare codeigniter array fields
Good night! I am exporting reports, in my form are sent via $_POST the fields that the user wants to export, I receive and assign to a variable all fields. I need to compare these fields with the…
-
1
votes2
answers55
viewslighbox codeigniter
I set all right the files of lighbox, but for some reason it opens a new open showing the img, instead of showing the lightbox. <html> <head> <meta charset="utf-8">…
codeigniterasked 9 years, 1 month ago Michel Henriq 647 -
1
votes2
answers112
viewsHow to pass post variables, save them until the last step and show all values
I have a form that is divided into 10 parts, IE, I will save via post the variables from page to page. However, if you refresh on the page all previous variables are lost. How can I solve the…
-
1
votes1
answer262
viewsHow to add #ancora at the end of the URL (with codeigniter paging)
How do I add the anchor id at the end of the url? at this time my url is the following: http://localhost/php_focas/index.php? per_page=3 I needed it to be this way:…
-
1
votes1
answer177
viewsLike "Zipar" files or directories in codeigniter
I’ve seen it in the documentation, but they speak very plainly, and the understanding is not good. So can anyone explain to me in a more practical way how I can zip files in codeigniter? thanks.…
-
1
votes2
answers630
viewsRemove double quotes in codeigniter query Builder
I am using the Codeigniter framework and every time I create a select with their Builder query, it puts double quotes on all columns and tables. Ex: SELECT "ID", "NAME" FROM "STUDENT" This ends up…
-
1
votes1
answer541
viewsEditing fields in event modal with Fullcalendar + Javascript
Good afternoon staff I am creating a simple schedule using the plugin Fullcalendar, I’m already with almost everything ready, but now I need to click on the desired event, the information of the…
-
1
votes1
answer85
viewsError number 1064 Codeigniter
An error is appearing when I log in to my system: Error Number: 1064 You have an error in your SQL syntax; check the manual that Corresponds to your Mysql server version for the right syntax to use…
-
1
votes2
answers97
viewswarning for empty in_array
I have a code that to generate a PDF it checks what is marked in the checkbox. But if I don’t mark anything, it still opens the PDF, only with the blank sheet. It has how to make a if that if…
-
1
votes1
answer763
viewsPersist search parameter in codeigniter paging
Hello, I’m making a search system for a store with codeigniter, paging is working, but when you change the page you lose the search parameter, I would like to know how to persist the search so that…
-
1
votes1
answer1027
viewsHow to get a certain php variable inside the view in the controller
Good morning I have a php page that is inside the view folder in codeigniter, there I have a foreach that I am listing the alphabet and I wanted to get this variable($letter) inside the controller.…
codeigniterasked 9 years ago danielsilva 11 -
1
votes2
answers418
viewsSend image that is on the server as an email attachment
I need to send an email with Folder’s (images) that are already on the server. Does anyone have an idea how to do that? The e-mail is already working. I’m using codeigniter and phpmailer.
-
1
votes1
answer657
viewsCodeigniter/Common.php and database/DB.php error
I’m trying to open my DBO site but keep giving this error someone can help? PHP Error was encountered Severity: Notice Message: Only variables should be passed by Ference Filename:…
-
1
votes1
answer3155
viewsHow to solve the ORA-01795 (maximum number of expressions) error in Codeigniter
I am developing a report in Codeigniter, but my select contains a filter that can have more than 1000 expressions in my where_in and then it returns me the error: ORA-01795: o número máximo de…
-
1
votes1
answer226
viewsJquery does not validate Incorrect password
I got the following jQuery $(document).ready(function(){ $('#email').focus(); $("#formLogin").validate({ rules :{ email: { required: true, email: true}, senha: { required: true} }, messages:{ email:…
-
1
votes1
answer172
viewsHow to configure the correct Codeigniter session in the current version of it?
Well, to be more specific, my problem with Codeigniter sessions started to occur after I switched my Xampp to a more current version (v.7...). When it comes to code/project I didn’t do if you want…
-
1
votes0
answers280
viewsCodeigniter3 / Mysql - Select List
Good morning Personal. I’m working on a code using Codeigniter, which has a registration form. This form has three Dropdown (State, City and Neighborhood), and the data are returned from the…
-
1
votes1
answer167
viewsHow do I hide the Controller name in the url?
I would like to know how to hide the controller’s name in Codeigniter. Knowing that codeigniter works as follows: www.meusite.com/CONTROLADOR/FUNÇÃO Ex: www.meusite.com/dashboard/login I want you to…