Most voted "codeigniter" questions
Codeigniter is a framework for developing PHP applications.
Learn more…1,026 questions
Sort by count of
-
2
votes2
answers9412
viewsCodeigniter . htaccess remover index.php
Starting working with Codeigniter and want to remove the index.php of URLS: example.com/index.php/news/article/my_article The problem is I have the file .htaccess in 3 different locations: This in…
-
2
votes1
answer83
viewsWhere in datatables with codeigniter
I have a code that draws a table according to the data in the database. EX: If she has a registered customer she will make the table with only one row, if he has no registered customer, no table…
-
2
votes3
answers877
viewsDoubt in Insert, update and delete with Codeigniter Framework?
I have a question related to insertion, alteration and removal of records in the Mysql database. For example, imagine a banknote table, where all the information in that note is recorded, such as…
-
2
votes1
answer414
viewsWrong paging on Codeigniter
I have 15 Ads on my website and I have made pagination for 10 Ads per page. Okay, Codeigniter is paging with 10 Ads/Page, but on the second and last page Codeigniter is showing 10, when it should…
-
2
votes2
answers131
viewsKeep client logged in to http and https
I’m finishing my virtual store developed in codeigniter 3 and database mysql is working perfectly. Now I want to start the digital certificate configuration. My problem is this: when I go into the…
-
2
votes2
answers3721
viewsCodeigniter - URL friendly
I’m trying to use the Codeignoter framework. but I’m not getting past it: http://localhost:8087/CodeIgniter/index.php/usuario/home for that reason: http://localhost:8087/CodeIgniter/usuario/home…
-
2
votes3
answers436
viewsEvent Routine - PHP
Hello, I would like to know how to make a routine that every Monday, run a method in my system. Thanks
-
2
votes1
answer157
viewsFunctions - Model, Controller
In my model I have this function that defines the url format : public function url_format_category($category, $lang_domin) { if (lang('abbr') == 'en_US') $lang_domin = 'en/'; else if (lang('abbr')…
-
2
votes1
answer129
viewsError when migrating from localhost to online server
When migrating a codeigniter application from localhost to the server the following error appears to me A PHP Error was encountered Severity: Warning Message: session_start(): Cannot send Session…
-
2
votes2
answers1631
viewsCheck if data already exists in codeigniter bank
I’m starting with codeigniter using active record to make the conversation with the bank, and wanted to know how to know if an email already exists in db, would have to list all email and create a…
-
2
votes1
answer788
viewsCreating and using Libraries in Laravel 5.1
I am new to Laravel 5.1 (I come from Codeigniter) and I have my own libraries that I would like to implement in it. In Codeigniter, we have the folder libraries where I can play all my libraries…
-
2
votes1
answer757
viewsHow to fetch values only from the checkbox selected in codeigniter
I have dynamic checkbox, and wanted to fetch the values of the ones that are selected, how to do this with codigniter: Model to go to the fields and create the required checkbox: public function…
-
2
votes3
answers1230
viewsReturn ajax data with php
I am creating a modal in ajax where it will return the id and lists the information in modal the problem is that php returns the "full page" to ajax and gives me no error in the console, I have…
-
2
votes3
answers44
viewsHow to order from what has more records to what has less
I have a table where it will be stored id_produto and ip . I will assemble a "module" where the system will pull some of the products that have had more visits, so what I need to do is pull the…
-
2
votes1
answer135
viewsAjax + Codeigniter
Good morning.... I just implemented Codeigniter, but I can’t use user friendly url... I try to pass parameters through Ajax, but I cannot due to URLS. I’ve already removed the index.php of the…
-
2
votes2
answers506
viewsCurriculum attachment via e-mail in Codeigniter not working
Good afternoon, I am using this code to receive some data from alleged candidates who subscribe to the site. I would like the applicant to send the attached file. Views are ok.. and I think the…
-
2
votes2
answers1225
viewsCatch anchor url with PHP
I need to get the data from an anchor in the url, follow link: http://192.168.110. 4/newspaper/1-jornal1#8 I need that one ID 8 that is at the anchor, the problem is that I can’t use Javascript to…
-
2
votes1
answer55
viewsRoutes with wildcard (:any) ignoring other controllers
In the archive Routes.php I defined the following route: $route['(:any)'] = 'reference/check/$1'; I need it because the first parameter in the URL after the domain is the username…
-
2
votes0
answers58
viewsThe loaded screen is correct but the data is saved in another BD table
on the company website, we are doing some tests with scheduling. Problem is that although you are loading the correct screen on the website (the scheduling form), the data that the client types, are…
-
2
votes2
answers1669
viewsForeach with database records
In my database I have a table called cadastroatendo within this table I put the days of attendance. I am recovering the data through the foreach... which in turn the array returns this result:…
-
2
votes1
answer126
viewsSystem logs alone in any action
Gentlemen, In my Administrative system I log in normal... However, any action within the system, it logs out alone... Without clicking on anything logout... Would anyone like to describe me if…
-
2
votes1
answer185
viewsDoubt about Sessions in the IC
According to : $config['sess_expiration'] = 7200; The session will be destroyed after 7200 seconds, however I wanted to know if when I update the page or access another page of my system, that time…
-
2
votes1
answer204
viewsFind Modules according to Permissions
I designed a function that lists all modules and sub-modules within the system. But I need it to be different, I need that in this same listing, only come the modules and submodules that the…
-
2
votes2
answers610
viewsGood practices Codeigniter
I see several programmers calling all views to build a page in the example controller: $this->load->view('head',$var); $this->load->view('home'); $this->load->view('script');…
-
2
votes0
answers153
viewsDatabase can overload like that?
This explanation there is no need for code, it is more a question of database logic even. What is happening: I have an application using Codeigniter and Mysql, and it has 4 actors, but in one of…
-
2
votes1
answer1133
viewsRetrieve database data with Codeigniter
My question is how to call some DB information to the printing page of a PHP system, developed in Codeigniter. In the users' DB "doctor", I have the following tables:…
-
2
votes0
answers101
viewsComparison of Cities between Stretches
Hello! I am developing a system that consists of registering sections by neighborhood or city. In this case, which I am taking as an example, it includes only two excerpts, as I show in the figure.…
-
2
votes1
answer213
viewsHow to recover only 1 URL value with Codeigniter?
I’m passing two parameters http://localhost/topsamp-ci/votar/4-Slug-de-algo public function votar($id) { echo $id; die; } And it returns me 4-Lug-de-something. I wanted to just recover the ID but…
-
2
votes2
answers1420
viewsOpen a view with Codeigniter on a different page
I would like to open a view in another browser tab using Codeigniter, someone knows how to do? In the tag "a href" use the property target=_blank to get. How do I get this property on…
-
2
votes1
answer901
viewsCI3 Does Not Load the model on the umbler server
I’m running a test on umbler services, but I’m having trouble loading the model. I’m using ci3 and I’m loaded the models as usual. $this->load->model('main_model'); But there’s a mistake An…
-
2
votes2
answers1892
viewsHow do I use "include/require" in Codeigniter the right way?
I’m migrating from the PHP to the CodeIgniter, and would like to know, how to use the include or require right in my code?
-
2
votes1
answer52
viewsWhere to put the Model code in php
I have some tables in my db between them are post_has_categoria post categoria in My Models I have Category.php and Contest.php where should be the sql responsible for the post_has_category?…
-
2
votes1
answer279
viewsEnviar E-mail - Wamp e Codeiginiter
I’m trying to send the email via localhost by codeiginiter. Inside my Ibraries folder, I created a "Phpmailer" folder to put the Phpmailer file. Not sending the email, is giving the following error:…
-
2
votes1
answer89
viewsregex to replace the $_POST['field'] string with $this->input->post('field') from codeigniter
I’m trying to find a way to replace the sequence $_POST['INPUT'] for $this->input->post('INPUT') of codeigniter, in my editor phpstorm, using the replace with the option regex active. So,…
-
2
votes1
answer1350
viewsHow to go through all the records in the database table?
Good afternoon, you guys! I’m starting in PHP and I already have a little problem. Is the following: I need to go through all the records in the bank table, so I can validate if such a value already…
-
2
votes0
answers366
viewsSend POST with Ajax and Codeigniter
For almost 1 day I am facing a problem that so far can only solve (make sure I was right) doing the wrong, IE, gambiarras. I’m trying to create the Transparent Checkout of Pagseguro but I can’t send…
-
2
votes1
answer360
viewsCodeigniter with Blade, huh?
I’m starting to study CI and how I used a little Laravel to facilitate was trying to put the Blade, follow this tutorial. I followed the scratch the tutorial, but returns these mistakes: How to…
-
2
votes1
answer477
viewsCodeigniter validation form does not allow accents and other "br" characters
I’m using the rule "alpha_numeric_spaces" to validate letters and numbers with space, but when I use some special character or letters like "ç", the validation does not pass, there is some way…
-
2
votes2
answers302
viewsCodeigniter session expires quickly
I made a control panel for a customer and in this panel my client can edit the products of the site. After the customer Edit a product and click on Save, When the client will try to edit more fields…
-
2
votes1
answer220
viewsWhy does the index() method not recognize the [IC] redirect?
I’m following a course and stopped at a problem that I can’t solve. In this link it is possible to register a user and when finishing the registration he should go to this page but the only thing…
-
2
votes1
answer620
viewsGenerate report in the background in php
In the system that I am developing has reached the most critical part that is the generation of reports. I wish to generate a report that when requested by the client, he informs a message saying…
-
2
votes1
answer363
viewsDirecting subdomain (htaccess) to Codeigniter
I’m having a problem that’s giving me a headache.. I own a domain, and then from it I generated a subdomain. This subdomain is inside my public_html, so I can access by placing /nameserver However,…
codeigniterasked 6 years, 11 months ago Override_GER 23 -
2
votes2
answers119
viewsCentos 6 - Codeigniter - HMVC - Not Found
Good afternoon I am developing a system with Codeigniter 2.X, and I use the concept of HMVC. My files are like this: ->system/ .htaccess ->application/ ->controllers ->... ->model…
-
2
votes0
answers30
viewsRedundancy with codeigniter + mysql
I’m having a doubt, let’s start in a system the question of database redundancy, but as the codeigniter will know that there is another base if the main one is inactive? There is something of its…
-
2
votes1
answer741
viewsHow to capture mysql (Duplicate entry) error and display a message on the screen to the user using codeigniter?
How to capture mysql error (Duplicate entry) and display a message on the screen to the user using codeigniter? Error Number: 1062 Duplicate entry '123456' for key 'process' INSERT INTO processo…
-
2
votes2
answers362
viewsmodel and controller in codeigniter for making Insert in Firebird using Generator
I am new to codeigniter and need to define my controller and model, so when calling the model inserir(), the controller takes the last Generator ID of each table you want to do Insert. I’ll give you…
-
2
votes1
answer280
viewsLog out when browser close or log out
I’m developing a system that stores in the database when user logs in and out. However, the logout function is only called when the user clicks out. I was wondering if you can call the logout…
-
2
votes1
answer328
viewsform_validation Codeigniter using GET
is it possible to validate a form input using the GET method? When I define that the form method is POST the form_validation works but when I define that is GET the validation returns me false. The…
-
2
votes1
answer428
viewsCodeigniter Session Error:
This session error appears in the codeigniter system. The errors pointed out by php: ini_set('session.use_trans_sid', 0); ini_set('session.use_cookies', 1); session_start(); Standard Controller…
-
2
votes1
answer220
viewsDompdf does not load graphic from my html page
Good afternoon guys, I have a problem where my pdf does not load my html... Controller: function pdf() { $this->load->library('pdf'); $data = $this->input->post('input'); $file_name =…