codeigniter Questions

3

Solved

My current CI project is now handling files. I want to upload the xls| xlsx files to the server and then import Excel data into the Database table. As the first part, the uploaded file was successf...
Bolivar asked 31/12, 2014 at 7:52

8

Solved

I'd like the following function to select hotels with an accomodation between a certain $minvalue and $maxvalue. What would be the best way to do that? function gethotels($state_id,$city,$accommod...
Geralyngeraniaceous asked 30/3, 2012 at 10:48

6

Solved

After i login and the cookie is set I get error 502. When i read the log i get the error: 014/05/17 01:54:43 [error] 11013#0: *8 upstream sent too big header while reading response header from ups...

5

Solved

This is my current url: http://myhost/main?my_id=1,3 How can I get this url in CodeIgniter, and is it included with 'my_id'? NOTE: I mean when echo $url, it shows like this: http://myhost/mai...
Foti asked 4/5, 2017 at 2:16

8

Solved

I want to make some custom error messages in my CodeIgniter forms. I've tried using $this->form_validation->set_message('is_unique[users.username]', 'The username is already taken'); Howeve...
Metchnikoff asked 22/1, 2013 at 14:15

6

I downloaded a website from ftp . The website is made with CodeIgniter. My problem is it doesn't seem to work on localhost. Base URL in config.php: $config['base_url'] = 'http://sample_localhost/...
Sheepwalk asked 7/6, 2013 at 9:30

10

When I enter my web address in the browser it showing error like this. Your system folder path does not appear to be set correctly. Please open the following file and correct this: index.php P...
Cradle asked 30/9, 2014 at 4:50

12

I try to unlink an image in CodeIgniter, but the unlink function shows: notice Undefined index: userfile Here is my code <?php function get_from_post(){ $data['logo_name'] = $this->in...
Skimpy asked 8/2, 2014 at 5:53

6

Solved

I want error logging in PHP CodeIgniter. How do I enable error logging? I have some questions: What are all the steps to log an error? How is an error log file created? How to push the error me...
Laundromat asked 9/7, 2010 at 4:21

3

Solved

How to get all declared routes in codeigniter? like ex. print_r($route) Because this is the problem, if the customer registered his username as 'facebook' he will be routed to account/facebook_log...
Keslie asked 15/11, 2012 at 3:19

5

how can i get in ci4 instance into helper function? $CI =&get_instance(); <- that was in version 3, how does this go in version Codeigniter 4?
Seligmann asked 10/4, 2020 at 10:8

5

Solved

I am using Codeigniter and Composer. One of the requirements is PHPExcel. Now I need to change a function in one of the classes. What should be the best strategy to do it? Should I change the code ...
Hop asked 23/1, 2015 at 6:58

1

If you have ever come accross this error using codeigniter 4 with Ajax. The action you requested is not allowed. as a result of csrf protection. CRITICAL - 2023-06-10 03:41:17 --> The action you...
Bicuspid asked 10/6, 2023 at 3:50

5

An uncaught Exception was encountered Type: Exception Message: Session: Configured save path 'C:\Windows\Temp' is not writable by the PHP process. Filename: prm\system\libraries\Sessio...
Growler asked 13/9, 2016 at 14:11

4

Solved

I am using codeigniter. I defined a library in code-igniter and is expecting a parameter in its constructor.This is my library code - ################# [My Library Code Test_lib.php ] ############...
Autrey asked 18/5, 2012 at 15:5

10

Solved

I am building a PHP application in CodeIgniter. CodeIgniter sends all requests to the main controller: index.php. However, I don't like to see index.php in the URI. For example, http://www.example....
Colostomy asked 11/11, 2008 at 4:0

8

Solved

I'm getting this error while running my app: PHP str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated I am Using CodeIgniter Version : V4.1.8 PHP Version : 8....
Shulock asked 2/2, 2022 at 11:28

5

I use CodeIgniter. Always part of my page is cache and don't remove by Ctrl+F5 in the browser. When I change the name page in the view it worked !!!? How can clear page cache in the CodeIgniter? ...
Ordure asked 14/9, 2011 at 19:37

5

Solved

I need to store Date in Persian (Jalali) date in MySQL. I'm using CodeIgniter. I need something like this: $Date = Jalali_to_Georgian(1393,5,28) // Output: "2014/08/19" Do I need to create a new...
Flue asked 4/5, 2015 at 5:11

6

Solved

I've been using $this->db->affected_rows() to check if updates have been successful. But this doesn't work when a user inputs the same data to be stored that is already stored (because no col...
Lea asked 17/11, 2013 at 12:27

11

Solved

I tried a simple form submit But I am not able to get the form values on controller using $this->input->post as well as $_POST[] methods. My view part is <html> <head> <title...
Waugh asked 22/7, 2011 at 5:28

11

I recently setup a old Codeigniter framework on my xampp.But i don't know the version of this framework. I use the code <?php echo CI_VERSION; ?> but its give me error Notice: Use of u...
Impost asked 23/12, 2016 at 6:48

14

Solved

I'm passing a large dataset into a MySQL table via PHP using insert commands and I'm wondering if it's possible to insert approximately 1000 rows at a time via a query other than appending each val...
Cloistered asked 23/4, 2009 at 1:39

8

Solved

I just want to use a $variable at several places: not only views and controllers, but also in the routes.php and other configuration files. I don't want things like: use the Config class to load c...
Renettarenew asked 9/6, 2013 at 19:36

3

A PHP Error was encountered Severity: 8192 Message: Creation of dynamic property CI_URI::$config is deprecated Filename: core/URI.php Line Number: 102 Backtrace: File: C:\xampp\htdocs\inv_perpus\in...
Curb asked 15/1, 2023 at 4:19

© 2022 - 2024 — McMap. All rights reserved.