Questions tagged [codeigniter]

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, ...

0
votes
0answers
3 views

Type: Error Message: Call to undefined method Main_model

I am not able to figure it out the error can any one help me .. Below is the code. main_model.php <?php class Main_model extends CI_Model { // function fetch_data($selecteddate){ // //$...
0
votes
0answers
4 views

Line break in email message in expression engine 2

I have a script that sends email to the user that want to register in our website when i am sending email it does not recognize the line break ("\r \n"). suggest a solution code $to = $workemail; $...
0
votes
0answers
16 views

can't delete record table with sweet alert on codeiginter. but sweetalert's response is susceptible

in my application i use sweetalert to beautify deletion confirmation. the notification is successful but the data is not deleted. Javascript: function delete_swal(id) { swal({ title: "...
2
votes
0answers
14 views

PHPExcel print vales by comparing 2 array values

In my codeigniter project am trying to export report in Excel. Here i want to print the values by comparing 2 array values. This is my excel sheet In array-1 code: $get_head_branch = $this->...
0
votes
0answers
13 views

SMS GupshupGateway API error | 253 | Message specified does not match with any template in PHP

I'm integration SMS GUPSHUP GATEWAY, I'm facing the error | 253 | Message specified does not match with any template in PHP Is there anybody who can help me to resolve these. Here is my code to ...
-5
votes
0answers
27 views

Extract text from resume.docx using codeigniter [on hold]

I want to get qualification, experience and skills from resume using codeigniter. How can I do it?
0
votes
0answers
8 views

How to switch language in codeigniter using uri without the use of language switcher

I want to have 2 url www.example.com/merchant.php www.example.com/en/merchant.php The first url must take arabic language as default language, and the second url must have english as default ...
0
votes
2answers
20 views

Mysql table column Not be null , But column i need null in codeingiter

It painful, table column is not null value. My table column 'value' is not null. cause i need it.That's why i set this not null. When i sync data from other third party some values are being null and ...
-1
votes
2answers
26 views

GROUP BY only when column is not null/empty

I get this error due to the GROUP BY statement. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CASE WHEN a....
-1
votes
3answers
28 views

Codeigniter dropdown pass wrong value to controller

I have a dropdown list with 5 options, whenever I click the submit button in the modal, the value posted to the controller is not the one I had selected. Here is my view code <div class="form-...
0
votes
1answer
25 views

How to show auto generate id automatically in view codeigniter

I am a newbie in CI and I got stuck with some issues on my current project. So here is my question: 1. I already succeded create auto generate number function for a text field, but I don't know how ...
0
votes
3answers
48 views

How to view an arrays result inside controller in codeigniter

I am stuck in getting a value from model and process it in controller. I am new to codeigniter. My model code is this: public function display_cat_courses($value) { $this->db->...
0
votes
1answer
43 views

Delete 2 tables and WHERE over 3 tables

i trie to look for the shortest way to delete 2 entries in database. This entries are in touch wich a thrid tables (marked as "c" in the following code) this one is a reference table and should not ...
0
votes
0answers
23 views

How to set dynamic basePath for swagger codeinginter

I am using swagger for codeginter and using lib https://github.com/panxp/codeigniter-swagger my question is how can i set base api path so i just get into /** * @package * @category * @...
0
votes
0answers
44 views

get parameter from response API

I got a problem when retrieving the parameters of the response. Anyone can help? :( this error on console : katalog_laporan:1837 Uncaught TypeError: Cannot read property 'MENU' of undefined ...
0
votes
0answers
32 views

Unable to get checkboxes values in codeigniter-3

I am using codeigniter 3.16 on an Ubuntu 14.04 server, with apache 2.6 and php 5.6. I have created a multipart form to upload several files and check (or not) a group of checkboxes. My view looks ...
-1
votes
0answers
18 views

ccAvenue payment Gateway on codeigniter [duplicate]

I want to integrate ccAvenue Non-Seamless payment gateway on my website, currently i am testing it on a local host on my system. As soon as i check-out from the billing form it's supposed to redirect ...
2
votes
0answers
31 views

Execute perl script from PHP with Codeigniter

i have one problem with php and perl, i need execute perl script, from my website php with codeigniter, but the execution of the script is not evident. I explain better. The perl Script generate one ...
0
votes
0answers
35 views

How to pass One variable from if Condition to another if condition in codeigniter?

I want to pass the variable "$path" from this if Condition. This function is used to update the image in the database. if(isset($_FILES['employeePicture'])) { $employee_picture = $_FILES['...
1
vote
3answers
51 views

How to compare associative array with result_array in PHP

Need to bind Page drop-down conditionally on base of 'Content' table. Page titles are stored in an associative array and 'Content' table have page code stored in it. Here is the code Function which ...
0
votes
0answers
21 views

Google safe browsing API doesn't work for me

I started using Google Console API and I want to try Google safe browsing to check if a website contain a malware or no but it doesn't working for me this is my code: public function check(){ $...
0
votes
0answers
17 views

Autheneticate by google fail after to upgrade php from 7 to 7.2

I did upgrade my php version from php 7 to php 7.2.10 today. I have a website wrote using codeigniter and in some part of this application I use Google_Service_Oauth2. The request to authenticate by ...
0
votes
1answer
30 views

Display the day in japanese language

I am using the following date() to display the day. date('l', $timestamp) I would like to use it in japanese. I tried the following: But it still displays in english. setlocale(LC_ALL, "ja_JP....
-2
votes
0answers
49 views

How can I put an array inside an other array [on hold]

I want to input another array in the array answer since it will contain multi items. <?php elseif($test_question->question_type == 'Multi-answer'):?> <?php $choices = ...
0
votes
1answer
69 views

Show multiple divs

so, I'm working on a project that has 2 tables in database that are related! I need via JavaScript Hide and Show the divs containing the right information. I got a main product Stone, and each Stone ...
0
votes
1answer
29 views

re-organise a result array from db-query in codeignitter

i have a array of results from a database query. Now, i need the array in a little bit other structure as it comes from the database query. I do this for the moment. $this->db->where($where); ...
0
votes
1answer
22 views

Dynamically folder creation is not working in Codeigniter

Here is my Base controller for upload function protected function upload_data($folder, $name) { $config = array( 'upload_path' => "./upload/".$folder, 'overwrite' =&...
0
votes
1answer
25 views

create CSV with merge 2 rows and set value as header in codeigniter

I am learning about codeigniter expecially about export CSV file, is it possible for me to create an CSV with merge 2 rows become column and set the value into the header Customers: ID | ...
0
votes
0answers
13 views

fwrite(): SSL operation failed with code 1. OpenSSL Error messages: error:140D00CF:SSL routines:SSL_write:protocol is shutdown

cannot send the email the error is fwrite(): SSL operation failed with code 1. OpenSSL Error messages: error:140D00CF:SSL routines:SSL_write:protocol is shutdown the code is given below <?php ...
0
votes
1answer
25 views

upload multiple file in codeigniter and rename each file using array

i have multiple upload controller and it work fine, but i want to rename each file when upload using one controller. i want when i click submit, the 1st file name is IKPI and second name is NPWP &...
0
votes
1answer
11 views

Why status code 303 when redirecting through controller

I need to get the code error free but here the status code is showing as 303 and it says "see more". The preview and response also say "Failed to load response data". When the redirect line is ...
0
votes
0answers
24 views

CodeIgniter session gets modified automatically during page load

I am currently working on a CodeIgniter (v 3.1.9) project. It has a login page. When two different users (A and B) try to login from two different systems at same time, one of the user's session ...
0
votes
0answers
24 views

How to validate mail server through mail

i have A form where i am taking details from the users details like : Email : Incoming Mail (IMAP) : and Port : Outgoing Mail (SMTP) : and Port : Password : Using laravel for form ...
0
votes
1answer
16 views

Codeigniter email not working on live server [duplicate]

My CodeIgniter application is hosted on shared hosting in the subdirectory www.website.com/myapp I tired Mailgun, Gmail and own shared hosting SMTP but not working on the live server please suggest ...
-1
votes
0answers
8 views

get the original format (NO TMP) to store in API [on hold]

my api only allows data formats jpeg and png to be posted, how to get both data formats in php, while I only always get tmp format, how is this?
0
votes
0answers
27 views

create_links() in codeigniter not working

When I tried to give pagination it is not appearing in desired location. There is no error messages coming.What is wrong in this code I am unable to find it. Is there anything I am missing? This is my ...
1
vote
1answer
36 views

How to update image in database using ajax in codeigniter?

I want to Update image using ajax in CodeIgniter. it gives an error that unknown Index "employeePicture". This is the form from which the image is selected for Update. <form method="post" enctype="...
1
vote
2answers
41 views

How to make menu as dynamic based on table values in php?

The following table contain main menu and sub menu into a same column.I mentioned menu_root_id for submenu based on menu_code to differentiate main_menu and submenu. I need to display all submenu ...
0
votes
0answers
64 views

PHP why const undefined when using “require_once”, but success with “require”

l am using CI framework, l create a code.php at root here is some of my code in code.php <?php defined('BASEPATH') OR exit('No direct script access allowed'); define('CODE_SUCCESS_DEFAULT',0); ...
0
votes
0answers
25 views

Generate thumbnail image from video in codeigniter

i want to generate the thumbnail image from the uploaded video but the problem is that the thumbnail image is not generating. The uploaded video goes to the uploads folder but at this place the image ...
0
votes
1answer
35 views

Not removing index.php in codeigniter

I am sending form data (views to controller) but i want to remove index.php from url. For this I removed index.php from config.php but it is not working for me. How can I remove index.php from the ...
0
votes
1answer
22 views

cannot able to post item into my controller ? why?

I am using modal window to post the the values to the controller . <form action="<?php echo base_url();?>Users/sms/" id="form" method="post" class="form-horizontal" enctype="multipart/form-...
0
votes
1answer
32 views

Mpdf working on firefox but cant be loaded on chrome

I try creating to preview pdf function. Its running well on firefox, but when i run with google chrome the pdf cannot be loaded. There is my php header code : <?php ini_set('...
1
vote
1answer
32 views

Using HIghcharts on Codeigniter to get data name and total

i just stuck on my code, and i can't continue my program, can someone help me please to break my wall and i can continue my code. i use highcharts on codeigniter and this is my code : Controller : ...
1
vote
2answers
37 views

how to search fields on database with date range on mysql codeigniter

i've tried to create a search engine with date range filter but the whenever i type on my 'search_textbox' it does not include the date it only search the fields where it much the statement 'name' ...
0
votes
1answer
21 views

Batch image upload in codeigniter

I am new to Codeigniter and i am trying to update multiple images using loop. But i am unable to do so because the foreach loop updates only 1 record if there are 3 records. Thanks in advance. ...
-1
votes
0answers
14 views

Codeigniter isntalled in sub directory - how to set root path? [on hold]

My Codeigniter application is installed in a sub-directory. Everything works fine except for when the path is a category, then the path breaks and I get 404 page not found. When the application is ...
0
votes
1answer
26 views

Connection between Customer and Subscription:Braintree API PHP

I'm working on getting all the active members in our Braintree account. I can list all customers but I don't know how to list the active ones. In the Braintree dashboard, I can easily see it by going ...
0
votes
1answer
33 views

Codeigniter - Show Number with Conditions

I have Payment Table. This Payment Table has paymentCusId(It is Customer Id), paymentCredit and paymentDebit rows etc... How can I show, If Customer's Balance is less than 50 euros, I want to show how ...
0
votes
1answer
21 views

wamp vhosts issue with multiple hosts

I have 2 codeigniter projects in my wamp localhost and I am trying to set up multiple vhosts. My directory structure is like this: - www - project - projectold I set up 2 vhosts: project....