Most voted "codeigniter" questions
Codeigniter is a framework for developing PHP applications.
Learn more…1,026 questions
Sort by count of
-
1
votes0
answers91
viewsIntegrating XAJAX library with Codeigniter
Good evening, today I program with the library XAJAX on all my systems, but I program in pure php without frameworks. From time to time I started to study the framework Codeigniter and I am…
-
1
votes2
answers1790
viewsDynamic menu in Codeigniter
I’m trying to build a dynamic menu with submenus that insert links from the database. I wrote the code below directly in my view to test and it worked perfectly: <?php…
-
1
votes1
answer1195
viewsCodeigniter: retrieve values from the out-of-loop array
I’m having a problem storing the array values in the code below: public function get_submenu() { $query = $this->db->get_where('categories', array('category_id_parent' => 0)); foreach…
-
1
votes1
answer359
viewsError while deleting file with unlink
How to remove a file with unlink? the file is in this folder /home/user/public_html/public/data/file.png i am running unlink from that file…
-
1
votes1
answer443
viewsFilter tables to be mapped by Doctrine from Entitymanager (no command line)
I’m developing a feature in my application that consists of automatically mapping and generating entities. The problem is that the user can select the tables he wants to map, so I must insert a…
-
1
votes1
answer212
viewsProblem insert file name in database
I am uploading files with plupload using codeigniter. My problem is when there are special characters in the file name. Being that I have to record that original name. When there is for example:…
-
1
votes1
answer230
viewsHow to recover records that have been updated?
How to keep a record history when it suffers update? I have a form where it performs update data in Mysql. What I want to do is: When performing update of a record, it keeps a history of the…
-
1
votes0
answers49
viewsBackup System in Php and Mysql (with Codeigniter)
Intending to put in my software a database backup system, where the user will perform this backup manually. Only I have never done this procedure, and I am using the Codeigniter framework. Could…
-
1
votes0
answers387
viewsProblem with Codeigniter session
When I authenticate the user in my application, I save some user information in sessions. This is done in Controller User, Only when I recover this data in another controller, they don’t exist. When…
-
1
votes1
answer794
viewsError while uploading image to Codeigniter
I have a function in PHP to add a thumbnail image as a course cover on my website, regardless of the image having the right requirements, is returned the message: Thumbnail image exceeds the maximum…
-
1
votes3
answers5398
viewsHow do I load one controller into another?
Well, my doubt is how I load a controller/method into another controller, in Codeigniter 2.2.2 <?php if(! defined('BASEPATH')) exit('No direct script access allowed'); class Inicio extends…
-
1
votes1
answer1388
viewsTwo forms on one page
Good guys I have a view with two forms and both possess action="current_url()", i.e., the two will perform the action on the same page, the problem is that regardless of the button I click to send…
-
1
votes2
answers1049
viewsSmart session with Codeigniter
I have an application developed with Codeigniter, PHP and Mysql. The user’s session has always been treated according to the Codeigniter standard, but now I need the session to be more restrictive,…
-
1
votes1
answer994
viewsHow to convert to Database and check if a date is valid
How do I convert to YYYY-mm-dd and check if a date transmitted by a user via POST method is valid for my application?
-
1
votes1
answer166
viewsAdd data via Codeigniter with Ajax
I’m new with MVC development and so far I’m having difficulty identifying the error when trying to save the records of my form. Give error message: 403 (Forbidden). I am using Codeigniter. My job:…
codeigniterasked 9 years, 6 months ago user25408 11 -
1
votes1
answer332
viewsHow to enter the name of the files loaded in the database
$this->load->library('upload'); //Configure upload. $this->upload->initialize(array( "upload_path" => './public/uploads/album/', "allowed_types" => 'mp3', "max_size" =>…
-
1
votes1
answer162
viewsCodeigniter 3.0 Library Session
I made a function to log on to the system, however, when using the function sess_destroy() to destroy the session, it does not allow you to display the set_flashdata(). When I remove the function…
-
1
votes1
answer435
viewsHow to create settings via json in codeigniter
How to use a json configuration file, so that the values of the file parameters become $config['var'] style configuration variables in codeigniter?
-
1
votes1
answer2283
viewsHow to turn an integer into decimal?
I need a function to do the following, I get the number for example 15, and I need to turn it into a decimal 1.0, rounding the 5 to 0. I tried to use the number_format(15, 1, '.', ''), but he…
-
1
votes1
answer98
viewsInsert and Edit with Codigniter
It’s not really a question but whether you can point me in a direction to take on a subject. I took a project to fix and the developer used Codeigniter, but the project is quite large and with that…
-
1
votes2
answers787
viewsHow to loop with input select PHP?
I have an array named $c that I made through a explode need to count with the for to see if it is Selected. The problem is that it echo option 2 or how many times there are records. Does anyone have…
-
1
votes2
answers237
viewsProblem with codeigniter registration
I have a course site made with codeigniter and an error is occurring, when I sign up for a specific address, in case, this http://www.cursosnet.com.br/site/cadastrar/8/0/13732 instead of the data…
-
1
votes1
answer1050
viewsError Loading Model in Codeigniter
Hello, I’m trying to carry the model inside my controller as follows: $this->load->model("gerente"); But simply everything after this code does not work, I tried to load by passing "Manager"…
-
1
votes1
answer377
viewsError while changing path to codeigniter views folder!
Following the installation steps of the official CI guide, I changed the folder views out of the folder application - now inside public_html. I get ERROR message on home page Your views folder path…
-
1
votes2
answers1631
viewsError message when placing translation in Codeigniter
Someone knows how to fix this: An Error Was Encountered: Unable to load the requested language file: language/English-Brazilian/form_validation_lang.php I followed the following steps for the…
-
1
votes1
answer182
viewsMysql insertion problem with Multi upload
I have a system that performs multi file upload, I am using the Codeigniter framework that extends to Class Upload CI. The files are being moved correctly to the desired folder, however when…
-
1
votes1
answer1341
viewsCheck if a parameter passed by the url exists within the View
I have this following code in my Controller: public function SetImageAndColor($client_id) { if(isset($_GET['color']) AND isset($_GET['image'])) { $dados['click2call'] [$client_id] ['image'] =…
-
1
votes1
answer122
viewsCodeigniter redirection
I developed an application in Codeigniter 3 at the company where I work and need to replace an old one. The situation is that the url address will be changed but we can not disable once the previous…
-
1
votes1
answer1094
viewsCapture data from email
Good night. I need some help, I’ll try to be as clear as possible. I am developing an application of calls, I want to let the staff open called by email, as I can capture this data from the body of…
-
1
votes1
answer513
viewsphp does not recognize the file field
So guys I’m working on a support system where has a form for the user to send the message where he selects the area, type the title the message and also a to send files if necessary the problem is…
-
1
votes1
answer69
viewsCodeigniter config set_item
I use the Codeigniter, and I made a config and now I can’t set the value for it. Actually I can, but the value is only for the Controller current. If I switch to another and pull that config, the…
codeigniterasked 9 years, 1 month ago Wagner 181 -
1
votes1
answer75
viewsPassing parameters from a list to sub menu
I have a list of users that is formed from a query in the database. And the names are tag <a>, which consequently when clicked will open a submenu, but I want to pass the data of the users…
-
1
votes1
answer170
viewsUrl forwarding
Well, it’s been a few days since I’ve encountered any problems on an assignment. What I need to do is : Check if the url is in the right format, and if it is not, redirect to the correct url. In the…
-
1
votes1
answer279
viewsSearch query coming from a Dynamic form (Codeigniter)
I have a problem to build a QUERY that comes from a dynamic form. I have a search form in which the fields for search are dynamic (can be text or checkbox), or whenever a new field is added it must…
-
1
votes2
answers423
viewsCodeigniter , Session class is safe?
Codeigniter has its own Session class, that is, it does not use PHP native Sessions. Note: The Session class does not utilize Native PHP Sessions. It generates its Own Session data, Offering more…
-
1
votes1
answer88
viewsCronjob does not recognize the Codeiginiter controller
I’m trying to make a cronjob run in the IC, but I’m not getting, this error appears: Fatal error: Class 'Ci_controller' not found in /Meucaminho/application/controllers/cron.php online 4 PHP…
-
1
votes1
answer229
views.htaccess directing everything from the URL to index.php
I took a panel to do maintenance and developed a new panel on codeigniter. After created, I created a folder on the server called Adm and played all the files there. The problem is that the root…
-
1
votes1
answer839
viewsValidation in multiple input file with JS
Guys I have a JS code for validation of the form attachments and I’m trying to call the function once for all fields with the same class="" the problem is that it works only with the first view the…
-
1
votes1
answer874
viewsSending email with Codeigniter using Gmail
I am trying to make a form to send email but I get the following error: A PHP Error was encountered Severity: Warning Message: fsockopen(): unable to connect to ssl://smtp.googlemail.com:465…
codeigniterasked 9 years, 6 months ago David Santos 528 -
1
votes0
answers61
viewsRun controller from an external site
I have the following problem/question: I have the Wordpress installed and the CodeIgniter also. In Codeigniter I have to make a function that add +1 in the database when a category is seen in the…
-
1
votes1
answer293
viewsDifferent URL call from Codeigniter Controller
I wonder if there is any simple way to make the URL different to the controller name in Codeigniter. Knowing that codeigniter works as follows: www.meusite.com/CONTROLLER/FUNCTION For example:…
-
1
votes1
answer499
viewsBack 2 pages with php / create session from last accessed URL
I would like to know how to create a session of the last accessed url, why this: I have a login system on the site that if the person clicks to buy the product and is not logged in, it is directed…
-
1
votes1
answer604
viewsfailed to work with base_url in Codeigniter 2.2.6
I am trying to load bootstrap files into Codeigniter using base_url(). My autoload.php file has the following configuration $autoload['helper'] = array('url'); In my view I put inside the head the…
-
1
votes2
answers131
viewsHow to use special mysql order_by in codeigniter
in mysql I can do so. SELECT * FROM `Cidade` ORDER BY `id`=1347 DESC But I can’t do it in codeigniter, I’m trying it like this: $this->db->order_by("id = 1347", "DESC") ->get("Cidades"); In…
-
1
votes1
answer1297
viewsSet Timezone in Codeigniter
I have a website, that in the news it automatically registers the date and time, only when I register, the registered time is 3 hours early. I’m thinking it must be some Codeigniter Timezone setup,…
-
1
votes0
answers206
viewsRename index.php with . htaccess
Guys, I wanted to access index.php from any parameter in the url, from . htaccess, like this: site.com/sistema1 site.com/sistema2 ... and automatically go to site.com/index.php to then treat certain…
-
1
votes1
answer147
viewsSite does not pull local style settings
I use codeigniter in my application. The localhost works perfectly. I use a folder Assets outside the Application, where it contains all my files. the code I pull is this: <link href="<?php…
-
1
votes2
answers118
viewsSave form data without obligation to update image
I have a registration form and this form has a profile image of the registered user. The insert and update image are working perfectly. The problem is when I update any data other than the image,…
-
1
votes1
answer1100
viewsLoad and save PHP/ MYSQL image
This is a form that contains fields like CPF, RG... and a profile photo. I can add normally, but I can’t edit. If I change any data other than the photo, example: CPF, works perfectly. But if I want…
-
1
votes1
answer808
viewsUpload with Codeigniter error
Good evening. I would like help if possible. controller/documents.php public function clienteAdicionar(){…