codeigniter

dompdf - internal server error on pdf_create

Getting Internal server in godaddy server when trying to generate pdf(dompdf). When i tried to print the data as html, its printing in a sec. But when trying to generate the pdf using pdf_create its showing internal server error. Need help! ...

How to query from two tables in codeigniter using active record ?

Hi friends How do we query from two tables in codeigniter using active record ? Can anyone pls show me how to insert in the fields of two tables while adding fields? ...

Has anyone successfully transfered a CodeIgniter app to Kohana 3.x?

Since they are fundamentally different (PHP4 vs PHP5 based), this could be quite a headache I imagine. I would love to transfer my CI app to Kohana 3, but they only have migration tuts for transferring to Kohana 1.x and 2.x. ...

Codeigniter: getting select option from form

I'm trying to get the option item selected in a form select element using Codeigniter... I have a controller named results with this code in it ... `//get form data if($_SERVER['REQUEST_METHOD'] == "POST"){ $data['searchdata'] = array( "ionum" => $this->input->post('ionum'), "thisdb" => $this->input->post('thisdb') ...

How do i resize bmp images in codeigniter

I want to resize bmp images in codeigniter. How do i do that. Codeigniter image manipulation class resizes only images of type jpg,png and gif....Please help some one ...

wkhtmltopdf codeigniter

wkhtmltopdf sounds like an excellent solution...the problem is nothing happens on the exec shell_exec("c:\wkhtmltopdf.exe","http://www.google.com google.pdf"); Am i doing anything wrong? ...

Assigning a user to multiple projects in my PHP application, best approach?

I am currently building a web application for my work and you can add tasks, projects and clients. The dilemma I've encountered is that a client can be assigned to multiple projects at once. The application is being built upon the latest version of Codeigniter 2.0 (if that helps). I am usually pretty good at working out problems like th...

jquery's weird behaviour.

Hi friends, I am using codeigniter framework and in view i am using jquery. Now, I have one select box which contains values from database. I tested the values of it using jquery change event and alert box. Its giving exact value in alert box on change, but when i am using post method or get or even $.ajax(), its not giving any output. ...

phpdoc on a mvc project with codeigniter

Hi, i developed a project in Codeigniter following the MVC pattern. That means that , for example, i have a controller called Items , which call a model called Items_model ,which get files from database and finally those those file are passed to a view called Item_view. Now i need to document it, and im trying to use phpdoc. My main...

Adding JS To Codeigniter Links - Simple OnClick

I am trying to write a simple Javascript snippet into a Codeigniter link. I am using the link to delete posts where required in my dashboard. I dont know anything about JS although am trying to learn it. Code $js = 'onClick = "alert("Are you sure")"'; $this->table->set_heading('Date', 'Title', 'Delete', 'Update'); foreach($records ...

How to set Favicon in Codeigniter

I know this is a stupid question, but I can't find the answer anywhere. If I'm using Codeigniter, where do I save my favicon file so that it will pop up in the browser? Or is there a config option in the files that I haven't been able to find yet? This is driving me crazy! Thanks a lot for the help. ...

CodeIgniter, active records, JOIN help?

I am trying to figure out why my JOIN is not working on a database query, I have two tables with a user_ID column, but when I return this it returns everything, not just the selected ones per user. What am I messing up any thoughts? Thank you! function user_apps() { $this->db->select('*'); $this->db->from('apps'); $this->db...

Possible to use CodeIgniter output compression with <pre> to display code blocks?

Is it possible to exclude <pre> tags from this code igniter compression hook? I don't understand regular expressions well enough to not break my page. I have tried, but it always jacks up the output. EDIT: This CodeIgniter Compression hook strips all unecisary white space and formatting from the code in order to compress the output. ...

Passing arguments when loading custom CodeIgniter library

I'm trying to implement a class I've written as CodeIgniter library. Somehow I can't get CI's load() method to pass multiple arguments to the class's constructor function. My class is designed to get 3 arguments, 2 arrays and one optional string. The constructor looks somewhat like this: public function __construct($array, $array,$st...

Logistics of Notifications/Messaging in web app

I'm finishing up my first Codeigniter app and I have a question. Right now I have a message for new users saying something like "Hey there, welcome to the app..." A row in the db marks when the user has clicked "Don't show me this again". I would like to have a table called "user-notifications" that will send a notification to the use...

.ajax posts and gets response on local server, no response on web host

Hi, I'm using an ajax call to do a minor calculation then return the value and display it in the page same page where the form is submitted. In Firebug it says it calls the function, however doesn't get a response. (I have a similar form that writes to a database that works fine, seemingly because it doesn't need a response - firebug ...

Code Igniter returning blank page when uploaded to a server

Hi, I just uploaded my codeigniter directory to my unix server and I am getting a blank page. The same directory is located in my desktop web server where it works just fine. Also, I uploaded a fresh copy of CodeIgniter directory to my unix webserver and that just works fine. Do any of you know what could be the problem? Thank You. ...

how to pass data from view to model in codeigniter

Hi guys, I'm developing a system with codeigniter, in my situation i have to press a link in one user interface and get it's ID and pass it to the model and get the data relevant to that ID and go to the other interface and display the data in the relevant fields, i know how to pass data from model to view, but i don't know how to pass ...

Post data in codeigniter can be retrieved as an array or object ?

In one of my new codeigniter project, one of my colleague wrote a helper method array_to_object so that he can call the variables in views as $row->field instead of $row['field']. I thought codeigniter default behaviour allows us to retrieve data from database in $row->field (as object). Can anyone pls enlight me data flow in codeignite...

How should I handle errors in Codeigniter application

Ok so again my question is kind of a best practices/techniques question so I'm assuming there will be a few different ways to handle this. So, to what degree should I factor in error handling? As an example, say I havee a basic function in my model which retrieves a customers record ie function get_customer($customer_id) { $this->...