0
votes
0answers
4 views

Jqgrid json data with codeigniter - query in controller

I am trying to set up a jqgrid and I am having difficulty in constructing the controller that generates the json data to populate the grid. I am using codeigniter 2.0+ and I am not sure how to build ...
1
vote
1answer
8 views

CodeIgniter: How to put custom validation function in model instead of controller?

In CI's documentation, it says that you could create your own custom validation for use in form submission check. It shows how this can be done in a controller: ...
0
votes
0answers
6 views

Codeignitor an migration not working with wamp

I am following a tutorial and I have check the source code with my code to make sure there are no errors but I am unable to get codeigniter to create update or retrieve any records from my wamp ...
0
votes
1answer
4 views

Codeigniter sessions errors and workarounds

So after reading the documentation on the session library for CodeIgniter, I'm finding it rather confusing. My problem has arisen from the need to store a few bits of information (a filename, a ...
0
votes
1answer
16 views

php/mysql search results - filter result when type >1 while keeping results where other types not >1 - codeigniter

Apologies for the title, I'm still trying to work out how to explain this. I have a codeigniter web app that has a decent search function that nicely tabulates the results. Let's call it an airbnb ...
1
vote
2answers
22 views

Open PDF from FPDF in new tab

I have a process where customer clicks if he wants a report to be generated and downloaded while creating a business unit. This report will be in pdf format. Currently I am using Codeigniter and I ...
1
vote
0answers
19 views

CodeIgniter and Nginx - Class not found

I'v uploaded a CodeIgniter application from my localhost with Apache to a server running Nginx. Its works perfectly on my localhost and on other server with Apache. It's under a subdomain, an domain ...
1
vote
0answers
14 views

Paypal Sandbox IPN “Email does not match seller”

I am trying to create a paypal subscription button with paypal sandbox. I have created the dev account, created sandbox business and test accounts. Logged into my business test account, went to ...
-6
votes
0answers
34 views

A PHP Error was encountered [on hold]

A PHP Error was encountered Severity: Notice Message: Undefined property: Teacher_incharge_controll::$student_model Filename: controll_teacher_incharge/teacher_incharge_controll.php Line Number: ...
0
votes
1answer
25 views

CodeIgniter: How do I correctly run two queries with each other based on the first query result?

I am querying my database for results (which all display correctly) and then while running a foreach statement I am attempting to look in another table for a matching ID to gather an override price ...
0
votes
0answers
12 views

Twitter Oauth Statuses/show in codeigniter returns error

I am using this library for implementing twitter Oauth in my project, and codeigniter if that is relevant in this case. I am trying to get a tweet based on the tweet id, but it's returning an error: ...
0
votes
2answers
27 views

PHP array serialize key value CodeIgniter cache

I have table name 'preferences' column(key,value) http://imageshack.com/a/img202/2909/lvaz.jpg I use cache in codeigniter look this : $pref = $this->ci->db->get('preferences')->result(); ...
0
votes
0answers
28 views

CodeIgniter, controller doesn't run when payson send

I have a controller which will update a database if a customer has paid or not! I am using Payson to do this and payson will send back post data to site (controller) where it will say if the payment ...
0
votes
1answer
19 views

Uploading multiples files in CodeIgniter using plain PHP

I am new to CodeIgniter. I've tried uploading my files using as follows: (createAlbum.php) <form method="post" action="createAlbum_db.php" enctype="multipart/form-data"> <table> ...
0
votes
1answer
26 views

CodeIgniter two tables join with last table having optional rows

I have two tables in my database which are organized as follow --> Articles(ArticleID,UserID,ArticleCategory,ArticleTitle,ArticleBody,ArticleIsActive) --> ...
0
votes
1answer
25 views

How do I pass link ID to controller?

recently I've been trying to figure out this issue. Imagine a page with few links, each link is generated using a query that retrieves all the links from my DB. What I'm trying to do is when I click ...
0
votes
1answer
33 views

404 Error in codeigniter after specifying cname

I have an application running in codeigniter. I have created a new cname in dns records of concerned server. When I type the new url(alias url), the login page is opening. When I enter the required ...
0
votes
1answer
17 views

Codeigniter MSSQL/SQLSRV Connection

I'm working on a web app that connects to a MSSQL database. I previously managed to connect to the database without any problems, however I made a minor change to the sqlsrv_driver file. I encountered ...
0
votes
3answers
55 views

How to sort json type data using javascript?

I have 3 dropdowns with list of places that I wanted to sort in ascending order. The first dropdown of places is sorted using codeigniter active record order_by function and the places were ...
0
votes
2answers
27 views

Decrypting parameters Codeigniter

I have a small problem. I am sending a mail when an item needs attention. I am getting the encrypted string, but when I decrypt it I get nothing .. Anything wrong in my code? Thanks in advance ...
0
votes
1answer
41 views

Codeigniter and too many database connections? (Unable to connect…)

I've a lot of cronjobs (50 -100) which all start at the same time. (Refreshing data for every single client.) There are many different jobs to do in a single hour so I can't differ the times of the ...
0
votes
0answers
37 views

Main domain with codeigniter, subdomain without codeigniter

I have uploaded a CodeIgniter site to public_html folder on server, which works properly. http://my-site-name-here.com Now, I have created a subdomain "sub" for which there is a directory in ...
0
votes
2answers
46 views

login access the account with incorrect username and password

In the below code i have placed controller and modl.When user is inactive he should not able to access the account and only created account users can able to access the account.But in my case it is ...
0
votes
1answer
19 views

Can't use method return value in write context; session data

I know lots of people have asked this question but the answers I looked at didn't help. I have data set in the session that I need to send to the view but obviously only if the data is there. This ...
0
votes
0answers
24 views

Using Codeigniter's Upload Library with Uploadify (Uploadifive)

I have an upload "document" form that I had running as it should through the normal Codeigniter upload library. However, I need this to work as a Ajax call. I have an Uploadifive (which I purchased), ...
0
votes
0answers
9 views

Codeigniter Rowid Collision

I'm using codeigniter shopping class. It generates a rowid for every cart item. In my model i'm using this rowid as order unique id. Because i keep an image which is created by user for every order. ...
0
votes
0answers
20 views

CodeIgniter Tank Auth and Social plugins

I'm currently working on a new project, using CodeIgniter. How should I choose an authentication library for CodeIgniter? The above topic made me chose Tank Auth. But I want my users to be able to ...
0
votes
1answer
20 views

How to refer to css file in codeigniter? 2.0

what is the difference if I store the main.css file in /webroot/myapp/css or /webroot/assets/css? this one is working... <link rel="stylesheet" href="/assets/css/main.css" type="text/css" /> ...
0
votes
2answers
35 views

How to refer to css file in codeigniter?

I use XAMPP and CI 2.14 (I know it's sounds ridiculous, but...) I don't know how to refer to a css file from a view. I've read and tried a lot of examples but, obviously I do something wrong... ...
0
votes
1answer
40 views

Displaying data from database using Codeigniter

I am trying to get data from a database and display it using a model, controller, and view. Here is my model public function waitlist_view() { $data = array(); ...
0
votes
1answer
39 views

Data retrieving is not working

In my codeigniter project, when the login button is clicked, it's not redirecting to the user home page. But for my client, it is working well. When I use the print_r($query) it displays the ...
0
votes
1answer
29 views

CodeIgniter loading views based on conditional

I would like to have a single controller generate multiple views depending on user input (in this case HTTP links) something like this: public function video_home($ref_link) { if ('user clicked ...
0
votes
1answer
21 views

CodeIgniter: Update public variable in MY_Controller from model

I am working on a project with CodeIgniter. I extended CI's base Controller class with a custom MY_Controller. MY_Controller has a authentication flag variable $auth = FALSE. On pages that require ...
0
votes
0answers
33 views

CodeIgniter using header() and session

I am building a small CodeIgniter application and I seem to have hit a snag. When I set my session and use a header() or redirect() it eats the session and refreshes it, leaving me with no data in ...
0
votes
1answer
17 views

Google drive api web authentication for a specific account to view files

I have a little question.. ----the structure is: lawyers-customers.-------- Every Customer -use an android app which upload photos(eg.: documents) into his drive. -through app the photos shared with ...
0
votes
1answer
27 views

Access entire set_value array?

Using codeigniter you retrieve a single value from the form validation by using set_value('example'), but can you access the entire array somehow and use it in a foreach such as this below? ...
0
votes
0answers
15 views

Datamapper set_join_field without update

I'm trying to save some date with a join_field basically I have an add-up function and an count-down function if(isset($_POST['min_product'])) { foreach($_POST['min_product'] as ...
0
votes
1answer
31 views

Routing my url in codeignitor

I tried remapping my URL but without any success. Here is my URL : localhost:8888/nordia/site/categorie/1/transportwagon What I'm trying to do is remove the "site" part from URL and keep it like : ...
0
votes
1answer
27 views

CodeIgniter Error: Trying to get property of non-object when querying a database

I'am not sure why it happens, because when I'am using the same model function in another controller, it works perfectly, but not in this controller. While submitting a <form method="POST"/>, ...
0
votes
3answers
27 views

How to organize my tables in DataBase? [on hold]

I'm starting a new personal project, and I'm stuck with something I can't deal with. I'll explain you with an example. On my website (PHP with CodeIgniter framework), I got users. Every users should ...
0
votes
1answer
22 views

Sessions issue while using two sites at the same browser

I used CodeIngniter framework to build two simple web application and add login pages according to this link. Everything is working fine. But when I use both application on the same browser, both of ...
0
votes
1answer
29 views

XSS Filtering in codeigniter

I just want to ask because I'm currently new in codeginiter and based on the documentation shown on XSS Filtering, it says that: By default it does not run globally since it requires a bit of ...
0
votes
2answers
30 views

CodeIgniter cron job command line error

My hosting package (Cloud Next) actually includes scheduled tasks as standard with a testing facility and instructions for setting up a new task. My question is whether or not I am using correct ...
0
votes
0answers
19 views

Bonfire vs stock CodeIgniter - module compatability

I've been using CodeIgniter for a few months and recently discovered Bonfire, which looks like a great foundation for CI projects, despite the current build using almost outdated resources like ...
0
votes
3answers
59 views

Get the value of text box using jquery

I have the following script : <script> $(document).ready(function(){ $('#edit').click(function (){ //get employee_id = $('#employee_id').val(); ...
0
votes
4answers
33 views

Update query insert zero in table in ci

Update query insert zero in table everytime. I have prtinted the query.From phpmyadmin the lastquery working fine.updated with same value But when db active query then it has updating 0. tbl_setitbl ...
1
vote
3answers
38 views

how to pass form action in codeingiter

I have a issue in codeingiter when i pass the from like this <form name ="register" action="home/register" method="post"> </form> it will genereate the error No Object found. ...
0
votes
1answer
25 views

Update the partcular record in the table displays other record in the table

In the below codeigniter code i have placed controller and model.In my membership table i have 4 columns exam name,month,year and college name. Exam name month year college name anna univ feb 2013 ...
-6
votes
2answers
40 views

How to use insert query in Codeigniter [on hold]

<?php Class NewUser extends CI_Model { function register($username, $password) { $this -> db -> insert('id, username, password'); $this -> db -> into('users'); ...
0
votes
1answer
15 views

Codeigniter Zip Encoding read_file is not working

I want to make and download archive from my existing files. I tried to following code. $this->zip->read_file('/upload/ut/10_33_statement.xls', true); ...

15 30 50 per page