Most voted "codeigniter" questions
Codeigniter is a framework for developing PHP applications.
Learn more…1,026 questions
Sort by count of
-
14
votes4
answers6297
viewsForm inserting twice in the bank (F5)
I have a great form that update and insert at various points when submitted. However, if in the time interval of this process the user presses F5, he duplicates the insertion record the number of…
-
12
votes2
answers2549
viewsCodeigniter + Pagseguro
I’m having some difficulty to integrate a system with pagseguro using codeigniter. I’ve already downloaded the official pagseguro library.…
-
10
votes1
answer3389
viewsHow to receive a notification whenever there is a new record in a database table?
I need to receive a notification whenever there is a new record in a particular database table, which I can do to receive ? If I use one Trigger Mysql will not work when I change database. If I make…
-
10
votes1
answer747
viewsWhy does Codeigniter do so well in benchmarks even if it doesn’t follow the language standards?
I see many people spitting on Codeigniter, saying that it is a framework junk that refuses to follow the "language patterns". But I find it strange to say this of the framework that has the best…
-
8
votes1
answer391
viewsUpdate field in multiple columns
I have a list of categories and I would like to sort them all at once, so I created a "sort" field where I can put the order number I want [1] and so by pressing to save [2] as the image:…
-
8
votes1
answer2008
viewsInstall Codeigniter 3 with Doctrine and Composer
What is the best way to install Doctrine via commiserate in the codeigniter 3.0? I plan to leave the files in the folder libraries. I created the file composer.json: { "config": { "vendor-dir":…
-
8
votes2
answers590
viewsCheckboxes from Codeigniter database
I have a database with a table called tblapoio, with 4 fields (id, descricao, valor, tag) Needed to make a form with a list of checkboxes with these values that exist in the table. I am using…
-
7
votes1
answer1041
viewsHow to customize a 404 error page in Codeigniter 2.1.4 using base_url()?
I would like to use a página de erro 404 but when accessing an image using the function base_url() does not work. How to solve?
-
7
votes1
answer251
viewsCustomizing CSRF Protection error messages in Codeigniter
In the CodeIgniter, if I give a Reload F5 on a form page, the error is returned The action you have requested is not allowed. A protection against CSRF. How do I customize the HTML of that error…
-
7
votes3
answers242
viewsPHP error - Empty() function
I have the following mistake: Fatal error: Can't use method return value in write context in /home/username/public_html/Administrar/application/controllers/holerites.php on line 29 Follow the…
-
7
votes2
answers2239
viewsEnable and Disable Save Button
I am developing a Revenue/Expenditure launch system and it works according to what I initially need. Lawsuits. Revenue Launch, add the Revenue value to the account table. Example: Opening account…
-
7
votes0
answers509
viewsGenerate dynamic table with TCPDF
Good afternoon, I’m using the TCPDF to generate an evaluation report, and I need this report to be divided into weeks that the user has activity. At the moment the report is thus What I need is to…
-
6
votes2
answers765
viewsHow to configure the Doctrine terminal together with a Codeigniter project?
I’m doing the integration of Doctrine in Codeigniter but I’m having problems configuring the line. First of all it is important to mention that I followed the guide available on the Doctrine…
-
6
votes3
answers1111
viewsLoad template automatically
It is possible to program the codeIgniter to load the template automatically without specifying the views at each call in the controller? Example user controller public function listar() {…
-
6
votes1
answer329
viewslocate php.ini in Cpanel
I need to edit the php.ini no Cpanel, but I can’t find the service configuration panel. I’m trying to send email with codeigniter in the localhost worked using Xampp, but online at Cpanel gives this…
codeigniterasked 8 years, 11 months ago Miambo 61 -
6
votes1
answer117
viewsThe if parole is not obeying the rules
I have a problem here in my gallery, when I enter the menu and choose which image category I will choose. Ex: Praise Group (yes it is a religious site), it has to go in my controller and pick up the…
-
6
votes3
answers652
viewsJSON for PHP via AJAX
I really need some help.. I have a select with the products: <!-- panel preview --> <div class="col-sm-5"> <h4>Adicionar Produtos:</h4> <div class="panel…
-
6
votes2
answers984
viewsCodeigniter session expiring after an action
I made an administrative panel using CodeIgniter and every time the session is expiring, thus redirecting to the login screen. Every time for example, that I edit a category, after edited and click…
-
6
votes3
answers3023
viewsForeach Array incrementing another array
with a doubt in performing a foreach and incrementing another helper to perform an Insert in the bank, see only: When I send a form via post I have the following array as a result: array (size=2)…
-
5
votes1
answer2128
viewsJSON transfer to Codeigniter via AJAX
I’m not able to pass a string in the format JSON for a controller of Codeigniter via AJAX. A string JSON: var avaliacao= {"avaliacao":[{"pergunta":"Qual sua…
-
5
votes4
answers4688
viewsCodeigniter 3.0 giving 404 not found
I installed the Codeigniter 3.0 in my apache and when I have access http://localhost/Azzunet/login he returns me error 404 not found. The files of controller is correct and views also (only has…
-
5
votes1
answer442
viewsExtend Phpword class in CI - class not found
I’m trying to put the Phpword library in codeigniter, so I downloaded Phpword and extracted the Phpword folder and the Phpword.php file into the third_party folder of CI. After this I created in the…
-
5
votes2
answers3753
viewsCheck if the login exists in jQuery before submitting the form
I need to develop a system in which when filling the customer’s registration, is verified if the registered email already exists in the database, and if it already exists, that informs the user (via…
-
5
votes1
answer1201
viewsProblem connecting multiple Codeigniter databases
I have an application where it connects to multiple databases, initially I use the file database settings database php.. Only when I connect to another bank, it still loads the file settings…
-
5
votes1
answer331
viewsAndroid and HTTP request field X-auth-token
I am trying to send a token, through an Android application in the 'X-auth-token' header field. This request is sent to a PHP server, where I use Codeigniter. Android HttpClient httpClient = new…
-
5
votes2
answers64
viewsSELECT returning data not seen by a particular user
I’m having a hard time putting together Query I have 2 tables: video_visualizacoes with the fields visualizacao_id, video_id, conta_id (This field refers to the user who viewed the video)". videos…
-
5
votes2
answers1919
viewsGoogle Maps with multiple markers coming from the database
I have a code where he takes the longitude and latitude of where you are and puts it on a map. I need to make this map show all the latitudes and longitudes of the database with markers at each of…
-
5
votes1
answer1484
viewsError connecting to SQL Server using Codeigniter
I have an error when connecting the database in my Codeigniter project, I am using SQL Server. $db['sql'] = array( 'dsn' => 'DRIVER={SQL Server}; SERVER=HOSTPT-01407; DATABASE=localidade;',…
-
5
votes1
answer344
viewsHow to translate JS plugins dynamically with Codeigniter?
I’m developing a Webapp using Codeigniter and need to have multiple languages, in PHP quiet, my problem is how to organize the translations of Javascript plugins. Example, I have in the application…
-
5
votes1
answer808
viewsSort sequence of numbers in a database with PHP
I’m having trouble developing a system that changes a sequence of numbers. I need this sequence to dispose of items in the correct order. When saving an item in the bank, it receives a number for…
-
5
votes1
answer57
viewsUpload file with post
In my view there’s this field: <form class="form-horizontal"method="post" action="<?=base_url('index.php/home/cadastro')?>" enctype="multipart/form-data"> <input id="img" name="img"…
-
4
votes1
answer1798
viewsHow to make paging in Codeigniter using AJAX?
I’m having trouble finding a way to paginate using AJAX. I’m used to doing it the traditional way and directly with the server using Codeigniter as framework application. However, this time I need…
-
4
votes3
answers3315
viewsPHP session expires before time
I have a problem with a session time in PHP with Codeigniter. I was using the sessions in the IC and with so many problems I decided to look for a solution to use native sessions with the IC and at…
-
4
votes3
answers6755
viewsHow do I receive the $_GET value of a URL in Codeigniter
I am sending a value get through a link for example: <a href="/admin/editar_user/5">Editar</a> And there in the method of my controller calling the view I get: public function…
-
4
votes3
answers4615
viewsTicket to view in Codeigniter
I am finding some problems to pass the result of a query present in the model, to the view in Codeigniter. What would be the best way to do that? My query : $query = $this->db->query("SELECT *…
-
4
votes3
answers1170
viewsHow to format title to url format?
For example, I have a title : 'Test Title Url'. But I need to leave it in url format, there is some function that does this?
-
4
votes1
answer359
viewsMultiple databases with multiple applications
I made an application with Codeigniter which uses only a database. However, I was asked to create several copies of this application that will also access several different databases. That is, I…
-
4
votes2
answers1833
viewsDynamically execute model class method from an ajax request to the controller
I am creating a feature in my system for dynamic component reloading, so that queries are executed that are allocated in model layer classes, through AJAX requests. However, since I use the MVC…
-
4
votes1
answer2140
viewsHow to insert external CSS into Codeigniter 3
I would like to know how to insert an external css file into a Codeigniter 3 view. I set up the $autoload['helper'] = array('url'); I tried to make the call in the following ways: <link…
-
4
votes1
answer591
viewsCan we use {variable} in Codeigniter Views?
I know we can use Views.html file in Codeigniter, now I wonder if we can use tags {variavel} directly as in Smarty. Example: <body> <h1>{msg}</h1> </body> Are there any…
-
4
votes1
answer192
viewsProblem creating SLUG in codeIgniter
Look, I’m developing the portal for my record label, and I’m having a really boring problem. I am logging the news, names of Albums, names of artists and so on. When I register in the BD I play in a…
-
4
votes2
answers435
viewsPHP logout with Codeigniter
I am having a problem in logout of my system, it until it is logging out correctly and destroying the sessions, but if the user clicks the back button of the browser it goes back to the previous…
-
4
votes1
answer1916
viewsTest connection to the database
I have an application that has a central database, in it is carried out the registration of several databases dynamically to use in another part of the application. I want to know how to test if…
-
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…
-
4
votes1
answer908
viewsCheck area size on Canvas
I have a code that when opening the report information, is created in Canvas a rectangle on top of each image. However, these images have different sizes, but the canvas remains the same size. I…
-
4
votes2
answers767
viewsHow to treat exception that cannot delete as it is a Foreign key
I am not able to treat an exception that happens when I delete an address that is being used in another table. I’m using the codeigniter my code is: public function…
-
4
votes2
answers1621
viewsmPDF - Error generating PDF | Message: preg_replace():
I’m using mPDF to generate the PDF: $this->load->helper('mpdf'); $this->data['dadosboleto'] = $this->boleto_model->GerarBoletoCEF($id_cliente, $data_inicial, $data_final);…
-
4
votes2
answers689
viewsAdd inputs in jquery, but without deleting existing ones
I now have the following code in jquery to add inputs according to the existing number in a text box, However, if the form already exists for some field when clicking to add another one, all fields…
-
4
votes2
answers559
viewsMake a condition to check URL
Hello, I am wearing Codeigniter to develop my website, I am trying to verify which controller the user is browsing, for example, I have the login and registration area, if the user is browsing the…
-
4
votes1
answer1018
viewsCodeigniter 3 - HMVC - Problem with routes, Not Found or Failed to Load Session.php
My scenario is this:: I am using Codeigniter 3 with HMVC, while doing only local development, I had no problems with XAMPP with Windows, I went up to my test server which is an Ubuntu Server and…