CodeIgniter is an open-source PHP web development framework created by EllisLab Inc and it has been adopted by British Columbia Institute of Technology. The framework implements a modified version of the Model-View-Controller design pattern. Use this tag for questions about CodeIgniter classes, ...

learn more… | top users | synonyms

0
votes
0answers
5 views

Display link image from database for Restfull api

I use codeigniter to manage restfull api and using Rest Server Library, all data can display but i want to know how to add link target for image that loaded from database? For example i have results ...
0
votes
0answers
8 views

Codeigniter profile page function keeps looping

I am working on a website in which i want to create user profiles. I got a page where i list all the users in a table. I made a button to link to the profile page of a user. The profile page gets the ...
0
votes
0answers
18 views

codeigniter ajax file upload

I have this script that will upload multiple files and it will be retrieve by the controller. here is the controller function insertAttachment() { $i = 0; $referenceNo = ...
0
votes
0answers
11 views

codeigniter and jquery autocomplete

i have some problem with the basicly function of jquery autocomplete in codeigniter but i think that the error isnt jquery the code: the view: <link rel="stylesheet" href="<?php echo ...
3
votes
0answers
28 views

Php rewrite url through .htaccess

I want to rewrite some url by using .htaccess rewrite I have url something like this: domain.com/app/index.php/appmedia/default/login and want to rewrite users to ...
-1
votes
0answers
6 views

Unable to view cookie in the browser (codeigniter)

Here is my Model : admin_login_model.php I am able to echo the cookie array correctly , but unable to view them in browser as shown in the image i am working on CodeIgniter version 3 Can anyone ...
-1
votes
0answers
29 views

Remove anchor tag in live search text box

In my codigniter, I have a live search box for searching products from database using typeahead javascript library. If one searches for product, related list is shown and each list with has a link. ...
0
votes
0answers
11 views

Codeigniter - image upload - open_basedir restriction in effect

I have a simple cms which is written in Codeigniter framework. It has worked just fine in many projects and it still works ok on my local machine. But when i put my recent web site online (server php ...
0
votes
2answers
18 views

Display query results in controller as array

I am using codeigniter and want to create restfull api, but I amstuck in displaying results of query at inside of array. This is standart code if without query database: $users = array( ...
0
votes
1answer
20 views

Codeigniter -> user-membership

I'm using this: https://github.com/alvariux/codeigniter-user-membership would a addons for codeigniter that allows registration, login and all user management. I loaded in my server codeigniter, ...
1
vote
0answers
9 views

codeigniter multiple language

How to load multiple languages in config file in codeigniter.I tried to load multiple languages in codeigniter.In codeigniter the default language is english ex., $config['language'] = 'english'; ...
1
vote
0answers
49 views

AJAX error status code 500 internal server error

I have this code: <a href="#"> <i class="icon-heart" id="icon_heart" value="20"></i> </a> var some_value = $("#icon_heart").attr("value"); ...
0
votes
0answers
8 views

How to run [Codeigniter] migration using cron Jobs?

i enable cli request only: if ( ! $this->input->is_cli_request() ) { echo 'Only access via command line.'; exit; } tried command with no luck: */5 * * * * ...
-2
votes
1answer
24 views

Warning: require_once error occurs

When i tried to download my opencart website from remote server and installed it on local server got this error please help me to over come this ?? Warning: ...
0
votes
1answer
21 views

How to populate input fields with post data when validation fails codeigniter

I m coding a Tab based form using bootstrap and codeigniter.I have so many input fields and files that need to be uploaded. And , also i have server side validation that when validation fails i show ...
0
votes
0answers
17 views

can i use two validations group in the same controller

I Used a Separate validation file in config folder in codeigniter and made two groups ex: $config = array( 'signupBasic' => array( array( 'field' => 'firstName', ...
0
votes
0answers
8 views

fetch value using ajax in update form

I am using codeigniter for my application. I have done my crud using url. I want to make my work more faster and smart. That is why i want to use ajax. But i am new to it. It will be very much ...
-1
votes
2answers
14 views

invalid records using inner join from two tables

I have this sql statement generated from codeigniter SELECT * FROM (`products`) LEFT JOIN `products_attributes` ON `products_attributes`.`product_id` = `products`.`id` WHERE `products`.`category` = ...
0
votes
0answers
14 views

How to create dynamic database connection in Codeigniter [on hold]

I have to connect dynamic database connect the one is main database. User fill login form I will check main database if user is valid I select user table and get this DB details and then connect ...
1
vote
2answers
29 views

Can't load Css in codeigniter

I am trying to load css in codeigniter my css load code is- <link href="<?php echo base_url();?>css/home.css" rel="stylesheet"> and i did in my autoload.php file $autoload['helper'] ...
-1
votes
1answer
51 views

How to display nested array in codeigniter (country - state - city hierarchy)

I want to display the nested array of the list I have of country, state and city: In the first array I need the country id, country name and state id (state id is in another array) The Second is ...
0
votes
2answers
19 views

My .htaccess file in 000webhost is not working

i have added my project on free hosting 000webhost and my all files are listed in public_html/ directory. project is built in codeigniter. i have added htaccess file at public_html/.htaccess which ...
0
votes
0answers
17 views

how to connect sql server using codeingiter in two different networks

first i'm trying to connect within network using my lan ip but it shows this error A Database Error Occurred Unable to connect to your database server using the provided settings. ...
0
votes
0answers
7 views

Cannot access directly to robots.txt via url (codeIgniter and Google Cloud)

I may have a problem with rout in Codeigniter. I would like to access file robots.txt directly with the link below: http://chatomuk-staging.appspot.com/robots.txt Exactly It will possible to do ...
0
votes
0answers
6 views

How can i declare multiple function in my codeigniter soap server code?

I tried to declare function as normal function too,but didn't solved my problem. I was able to run the server code with single function as found in many tutorials but cannot add multiple function. plz ...
0
votes
0answers
21 views

Codeiginter header('Content-Type: image/jpg') not displaying text

I am working with codeigniter. I added an image as blob in database and fetch it by using the below code header('Content-Type: image/jpg'); $table="sample_table"; $select="photo"; ...
0
votes
2answers
25 views

CodeIgniter 2.2.1 and Xampp 5.5.19 Not Connecting to Database

I was previously using Xampp 1.8.2 and CodeIgniter 2.2.1 connecting to MSSQL 2012. My database configuration was working well and fine until i moved to xampp 5.5.19 and using the same database ...
0
votes
2answers
51 views

How to Merge Arrays with WHERE Clause?

How to add 2nd array into 1st array where [ myid ] matches. 1st Array Array ( [0] => Array ( [myid] => 70 [realname] ...
-2
votes
0answers
10 views

Add This - sharing both image and you tube videos [on hold]

In my website we display ads which means that there are text, images as well as you tube videos links. Previously the requirement was to share only the image and text using Add This but now video ...
0
votes
1answer
21 views

can i call an https url in localhost wamp server using codeigniter framework

Blockquote class controller extends CI_Controller { public function __construct() { parent::__construct(); $this->load->library('session'); ...
0
votes
2answers
16 views

Why encryption in codeigniter working in local server but not on the server?

I used the below code in my local wamp server and everything is perfect. $this->encryption->encode($result['wo_id']); But the same code is showing error when uploading to the web server ...
0
votes
3answers
24 views

json_decode remove null,false,true from array

I have a json result below. $abc = '{ "id":"375", "name":"Nilesh Y", "email":"[email protected]", "mobile":"9076330330", "tracking_number":null, ...
0
votes
0answers
12 views

Serve Mobile Application in Subdomain For Existing CodeIgniter Site

I have a main site (www.example.com) built on CI. Lately I thought of creating a mobile version of the site on mobile subdomain (m.example.com) with different view using JQuery mobile but wanted to ...
1
vote
2answers
28 views

num_rows() and result_array() in the same function ? codeigniter

I have a question. I have a function in a model to select products: public function getProducts() { $this->db->select(dbColumnProductsId . ',' . dbColumnProductsName . ',' . ...
0
votes
1answer
16 views

AngularJS - Can't pass a header on a $http request

I'm trying to do requests to a RestAPI coded with Codeigniter 3. Access-Control-Allow-Origin and Access-Control-Allow-Headers are set to "*". The API has been successfully tested on Postman. I'm ...
0
votes
0answers
15 views

trying to find a “simple” bug with images not appearing in bootstrap site

Problem I'm trying to track down a "simple" bug where certain images in a codeigniter / bootstrap twitter web application do not appear. What I've tried so far: I checked the F12 tools in ...
-1
votes
0answers
12 views

Codeigniter unit test tools

I want to find a suitable tool for unit testing on CodeIgniter framework. PHPUnit is recommended for PHP unit testing. However, bridging libraries such as CIUnit or codeigniter-phpunit are no longer ...
0
votes
2answers
27 views

How to send data from view to controller by pressing link in Codeigniter

I have a little time devoloping with Codeigniter. I try to send an ID by pressing link from view because I want to edit a profile and I need the ID on the controller and then send it to the stored ...
-2
votes
1answer
26 views

How to multi-thread using codeigniter famework(PHP)?

I am using codeigniter framework. And i am searching for a best practice to multi-thread using MVC framework of codeigniter. I am thinking of creating a class in which all the functions will be ...
0
votes
0answers
24 views

displaying the user same popup with error in codeigniter

Hi I am new to codeigniter. I have a login popup. When the user tries to login with invalid details and submits the form. The page gets refreshed on submit. When I open the login popup again. It ...
0
votes
3answers
81 views

uploading image and text in same mysql table in Codeigniter

I'm trying to upload image and text in a same mysql table in codeigniter but i'm getting a database error like "You must use the "set" method to update an entry." code on controller class ...
0
votes
0answers
13 views

Assigning value to Global Variable in Codeigniter

i have a code like this <?php class Mains extends CI_Controller { public $my_global_id=""; public function home($basic_id) { $this->my_global_id=$basic_id; } public function ...
0
votes
1answer
19 views

Pass a variable from controller to javascript in view

I'm trying to pass a variable from the controller to the view through JSON. The data that I want to check is available but if I try to access it like "data.status" it comes back as undefined. The ...
0
votes
1answer
30 views

CodeIgniter loggin in

Okay so in my database i have table called 'users' with email, pw and some other fields. Registration works. But i can't make loggin in. Controller view: public function index() { ...
0
votes
0answers
24 views

Highcharts, JSON and CodeIgniter

I'm trying to get the Bue Flame software tutorial on Codeigniter and Highcharts to work (here is the tutorial http://blueflame-software.com/blog/using-highcharts-with-codeigniter/). Here is my JSON ...
0
votes
0answers
15 views

How do I call TinyMce editor on a particular div which is inside an iframe?

Below is the code I am struggling from. where 'editContent' is the class which is there inside my iframe src page whichever I am linking too. <script> tinymce.init({ selector: ...
0
votes
0answers
35 views

Fatal error in code ignitor

I am getting fatal error while working on CodeIgnitor. This project is live and I want to run it on local host to make changes. I download the code from my server and run it on XAMPP. I have attached ...
3
votes
1answer
30 views

Codeigniter Form Validation based on the optional value using config file

I am Doing a CodeIgniter form validation using a form_validation file created in the config folder ex: $config = array( 'signupBasic' => array( array( 'field' => ...
3
votes
1answer
17 views

How to create custom hooks in codeIgniter?

I'm making a PHP application in codeIgniter, and want flexibility using hooks. However, there are a limited number of hooks in codeIgniter, so I want to create my own. How can I do this?
0
votes
3answers
32 views

Codeigniter calling model method from another model causes error

I have a controller: class Blah extends Controller { function Blah() { $this->load->model('baga_model'); } } then comes baga_model: class Baga_model extends Model ...