Tagged Questions
0
votes
0answers
8 views
How to use CI Image lib with image stream/byte array
As I using CodeIgniter 2.x. By which I could crop resize an image from source image. Instead of source image I want to use image stream/byte array. How do i could over come this problem.
public ...
0
votes
1answer
15 views
Codeigniter : Session can't be deleted on new server
I'm a new user of Codeigniter. I've developped a website with the Session system of Codeigniter : a user can create an account or navigate freely in a 'visitor' session.
Everything works fine on the ...
0
votes
0answers
19 views
Codeigniter URL rewrite
I've got a problem with the URL's rewrite.
This works: mysite.com/en/archive/
This doesn't: mysite.com/en/archive/schedule/
In routes.php file I've wrote:
$default_controller = "main";
...
0
votes
1answer
24 views
Setting and getting COOKIE with CodeIgniter returning random letter
I am sure this is 100% wrong so if someone could correct me It would be greatly appreciated.
But on the 'index' page it the variable $venuedeets returns a random capitalized letter currently C.
on ...
0
votes
0answers
23 views
CodeIgniter Cart and Session lost when refresh page
I'm using CodeIgniter v2.1.3 and having a problem with using CI Cart and Session. When I insert an element into Cart, everything gone fine. But when I refresh the page, all saved Cart items ...
0
votes
1answer
22 views
Codeigniter, using set_checkbox in a controller
I've got a loop that generates checkboxes, I have it working within the view, but I would like to move it into the controller and then pass the resulting string to the view. The problem is ...
1
vote
1answer
40 views
Routes not working when uploaded to server (CodeIgniter)
I created a site on CodeIgniter and everything works fine on XAMPP. But when I upload my file to the server the routes stopped working. I'm getting 404 URL not found error on all the page except the ...
1
vote
2answers
52 views
Active Records - Affected Rows always returning 1
Well, i am trying to make a change password code using the active records. That works fine but i need to know whether the password was successfully changed or that the current password was actually ...
2
votes
1answer
27 views
Codeigniter CIBonfire how to change mode from development to production?
I'm creating my first app using CIBonfire and i'm ready to push it to production, but i'm not sure how to change the mode from development to production so that it does not show the profiler stuff in ...
0
votes
1answer
41 views
getting values of second select from db based of first select box selection in codeigniter
I Need help on how can i get values of second select box based on first select box
This is view:
$(document).ready(function() {
$('#state').change(function() {
// Get an instance of the select, and ...
0
votes
1answer
27 views
Codeigniter AJAX POST 66 records maximum
We have form with unlimited rows
Each row has 10 data attributes
All rows sends via AJAX POST to CodeIgniter script with AR as array of associative arrays
In script each row generate query
After ...
-1
votes
0answers
21 views
Unable to load the requested class: lang_detect
An Error Was Encountered
Unable to load the requested class: lang_detect
Please tell me how to solve it urgent..
You can check the detail of the problem from here
0
votes
1answer
32 views
Extra Tabs automatically added to webpage
i have a codeigniter application.
I am not sure what is going wrong! I have extra tabs added to the start of the output.
<!DOCTYPE html>
<!--[if IE 8]>
<html lang="en" ...
0
votes
1answer
54 views
Codeigniter login with facebook, getUser always return 0
I searched here and in the web for my problem, but i didn't found any soluation, this make me crazy, i don't know whats the proplem.
the propble is, getUser() function always return 0.
here the my ...
1
vote
1answer
32 views
Check number of affected rows in CodeIgniter
I am trying to check in my model method if there was affected any rows if so return true else return false, but I don't know how to get it?:
class User_model extends CI_Model {
function ...
0
votes
1answer
31 views
CodeIgniter Extended Core Controller
I'm stumped on this one.
With my CodeIgniter application set up on a WAMP server locally, everything is fine. All of my classes extend my controller (MY_Controller)
However, when the application is ...
0
votes
1answer
29 views
Codeigniter: Join with 'where in' clause
I want to join tables to list books of two categories fiction and romance. How do I do a JOIN with a WHERE IN clause (is that even possible? sorry, noob here)
Here's where I'm stuck at:
...
0
votes
0answers
34 views
removing backslashes in the query using codeigniter mysql
Post value is multi select, means values are coming in the form of array
if(!empty($_POST['form_type']))
{
$test = implode("','",$_POST['form_type']);
...
0
votes
0answers
38 views
codeigniter white screen and no source
I was having this issue and after plenty of head scratching I did a fresh install of codeigniter with the latest release. It hasn't helped.
When I fire up the site first time, it loads. Subsequent ...
0
votes
1answer
34 views
Check If Verification String Is Unique In Database
I'm trying to create a unique string in CodeIgniter.
This is my code:
// Create unique ID for verification link of user registration
function getUniqId($filename = NULL) {
if ($filename === ...
0
votes
2answers
19 views
Ion Auth Flashdata Check Not Working
I am using Ben Edmunds Ion Auth Library.
I am having a problem with any function that uses the csrf_nonce methods - it is failing the check on post.
I have checked that the flashdata is getting set ...
0
votes
1answer
37 views
Displaying UTF8 Character on Codeigniter
Config.php
$config['charset'] = 'UTF8';
database.php
$db['default']['char_set'] = 'utf8';
$db['default']['dbcollat'] = 'utf8_general_ci';
html header
<meta http-equiv="Content-Type" ...
0
votes
3answers
68 views
Codeigniter 2.1, PHP - get random array from key value pair
I have query from which I need to take random values (random rows) and limit to, lets say, 5 results and subtract them from main array (query). How can I do this?
This is query function:
public ...
0
votes
4answers
35 views
codeigniter login check for all functions(tabs)
i have a function for login controls. if user didnt login it redirects to login.php
in my controller i have to many functions and this functions represents pages in website. so do i have to call ...
0
votes
3answers
36 views
Codeigniter Login check issue in construct / infinite loop
i need to check is user loged or not.
i have to many function in controller, so i check it in construct function. but its entering infinite loop.
problem is: infinite loop.
function ...
1
vote
1answer
68 views
Codeigniter update_batch() with included update of the where key
I want to update multiple rows in the database with codeigniters update_batch() function.
But the field specified in the where should also be changed.
The following code should make it clear:
$set = ...
0
votes
2answers
42 views
can not log out my users in codeigniter
By logic, once the users logged out, they cann't enter the system again till they login again.
I use some session data and cookies of the logged in users, and i want to delete this session data and ...
7
votes
2answers
257 views
is there any known bug in session lib of codeigniter 2.1.0 ? why do i get kicked out? [closed]
im working on a website which is created with CI 2.1.0.
the thing i’ve notice is sometimes when i reload a page couple of times or open couple of pages very fast or when i vahe a error in the code ...
0
votes
1answer
59 views
Codeigniter 2 - Callback function in My_Controller
I have all my callback functions in My_Controller so that they are not repeated throughout the website. This works fine but for some reason one of my functions is not working when I am posting ...
1
vote
2answers
80 views
How to process creditcard payment option on your website (without redirect to paypal) paypalexpressceckout with ci-merchant library
I am using ci-merchant library and integrated it succesfully and also works for paypal account owner user.But dont know how to processs for user who dont have paypal acc and wants to pay via credit or ...
0
votes
1answer
41 views
Codeigniter: Redirect predefined urls to default controller's method
There are two predefined URLs which I want to redirect to default controller's method and return default responses. URLs are:
URL 1: ...
1
vote
1answer
38 views
Whats the difference between parser and view call? How to retrive the data from the view? (pass, return)
What's the difference between these two calls? What's the general difference between parse and view? When do I use parser->parse and when load->view?
$this->load->view('content', $data);
...
0
votes
1answer
22 views
Codeigniter - sanitize function parameter
How can I sanitize a function parameter?
I have a url like: example.com/controller/function/parameter
and that parameter will be used to get data from a database.
There is a specific function or I ...
0
votes
3answers
49 views
Codeigniter 2.1 - MySQL JOIN
I have two tables:
MENU
->id_menu
->title
->page_id
->order
PAGES
->id_page
->title
->page
->slug
This is select function:
public function get_all_menu()
{
...
0
votes
2answers
56 views
Saving generated pdf directly to a folder folder - Codeigniter
I would like to generate and send the created pdf to a folder but i get an error, this error :
A PHP Error was encountered
Severity: Warning
Message: ...
0
votes
1answer
37 views
Adding an array to an existing array and saving with CodeIgniter
I have the following function:
function saveCOA() {
$labref = $this->uri->segment(3);
$data = $this->input->post('compedia');
$data1 = ...
0
votes
2answers
78 views
Saving multiple HTML textareas in CodeIgniter
I would like to grab the values of several textarea fields and save them to the database. For now I have four of each with different values and I want to batch save these values, the textarea fields ...
0
votes
2answers
68 views
Data not passing from Controller to View Code Igniter
I am puzzled because of CodeIgniter's strange behavior. I am fetching some data from Model and returning it to Controller and passing that data from Controller to View.
Controller
function index()
...
0
votes
3answers
103 views
Sounds simple but It is not working: Import CSS in CodeIgniter 2.1.3
I Just downloaded CodeIgniter 2.1.3 and Trying to import css into via header_controller,
I have tried SOF: CodeIgniter - Loading CSS, CI_Help_page and codeigniter CSS problem (SitePoint Form ...
0
votes
2answers
24 views
Implementing SQL in codeignites active record
How can i convert this sql to codeigniters active record format
SELECT COUNT(*)
FROM(
SELECT DISTINCT component
FROM `multiple_sample_assay_abc`
WHERE labref = 'NDQA201303001'
)x
I have tried this ...
0
votes
0answers
20 views
Giving permission to encrypted file on mac [duplicate]
I am setting up codeigniter project. I need to set permission to these two files but they are not present in my project. i guess its encrypted. how can i use chmod 0777 ...
1
vote
1answer
67 views
CHMOD 777 Codeigniter configuration error
I am configurating my project on codeigniter and Mamp. When i run it i got CHMOD 7777 error as shown in the image. Does someone know how to make config.php and the other page rewritable.
0
votes
1answer
56 views
Correct way to use Model's method in codeIgniter's view?
From my VIEW, let's call it 'index', on a button click I would like to perform a DATABASE QUERY without loading the page again , however I cannot think of a method to so without breaking the MVC ...
0
votes
1answer
43 views
Codeigniter 2.1 - Count all results of search before limit
How can I count all results when I am doing search before limit? Do I need to make two queries (one with limit and one without limit) or this can be done in one query?
I have function like this:
$i = ...
0
votes
1answer
23 views
losing session in function with codeigniter
So I am using session to hold username and then check if its there. if yes, then use it to update related to current transaction. The following is my code:
public function update_edit()
{
...
1
vote
1answer
60 views
Connecting two database in codeigniter not working
I am trying to connect two database in Codeigniter. I came accross this link Codeigniter - multiple database connections and setup the database as per my requirements. Now the problem is that only the ...
1
vote
1answer
71 views
update statement breaking the database
I am trying to figure out what's wrong here, but really not sure. I have a site with users, when a user edits details, it seems to override all other records with those details. This doesn't happen ...
1
vote
2answers
117 views
Codeigniter Active Record - Count Total Found Rows with Limit (MySQL)
I'm using a complex SQL query in a Codeigniter model with a limit applied. I'd like to count the total number of rows that would have been found if the limit and offset had not been applied.
I'd like ...
0
votes
2answers
42 views
Change Location In tempnam
I am having some trouble providing the directory path in tempnam();. When i use tempnam('', 'xyz'); , the file is getting stored in tmp directory. But i need to store the file in a specific directory ...
2
votes
2answers
129 views
Running CodeIgniter Project
I have a Whole web site project based on CodeIgniter framework. My problem is i don't know how to run this project on my local Mamp Server. I have Successfully set up Mamp and Also run the latest ...