codeigniter

Codeigniter table Join then Display Tags Problem

I have a problem that concerns blog posts and displaying the tag words from another table. I seem to be able to pull the info out of the tables fine, however when I try to display the posts and the tags, I get one tag per post. In other words if I have 7 tags for a post, I get 7 iteration's of that post each with one tag instead of 1 po...

Programatically Getting POP3 Message Unique Id and Message Size

I need to access a POP3 email account and obtain the the list of messages' unique id and its corresponding file size. I'm using CodeIgniter and have access to Zend libraries. Trying to do something similar to the LIST command. Ideas? ...

How do I access my Models in CodeIgnitor?

I'm trying to get familiar with CI and I have run into a problem while trying to implement my Model. I get the following error: A PHP Error was encountered Severity: Notice Message: Undefined property: Home::$OrderModel Filename: controllers/home.php Line Number: 12 My assumption was that I was breaking some convention with the nam...

How i can use a __construct function in my other CodeIgniter controller

I have a controller called member within this a construct function function __construct() { parent::Controller(); $this->is_logged_in(); } I want to check in my other controller that user is logged in how i can use this function in my other controller called profile and others This is my First project with CodeIgniter Thank ...

Under Codeigniter, is it possible to see mysql_error()?

I have an Codeigniter app (latest version of CI) that is writing a transaction to a mysql database. I'm fairly sure that I've got a foreign key constraint error occurring, but I can find no way to make CI tell me the specific error. mysql_error() comes back empty. Can anyone tell me how to get Codeigniter to tell me the myslq error mess...

Url routing errors in php in codeigniter

My login form on front page is displayed, but when it posts to other pages, the post does not happen. THe problem is that the url is like: http://sitename/users/action which is a 404 not found url. But when i hard code the path to controller, (that is, stop using base_url + "/users/action" and use base_url + "/system/application/controll...

jQuery.ajax / CodeIgniter (PHP) : Returning TRUE/FALSE in PHP, how can I get jQuery to see this?

I've built a function for checking a username. I'm using it as a callback for form validation in CodeIgniter, and it works nicely. However, I'd like to also use it with AJAX to check on the fly if the user has JS enabled. So my controller has this: function check_username($s = FALSE) { if ($s): $this->db_common->like('userna...

I'm getting a blank screen when trying to connect Codeigniter to postgresql

I'm using codeigniter 1.7.2 on WAMP with php_pgsql and php_pdo_pgsql extensions enabled here is my configuration : $active_group = "default"; $active_record = TRUE; $db['default']['hostname'] = "localhost"; $db['default']['username'] = "postgres"; $db['default']['password'] = "mypassword"; $db['default']['database'] = "mydatabasename"; ...

How to replace "Login" button with user name in CodeIgniter

I'm trying to create a universal header for a website built on CodeIgniter, and I'm having trouble figuring out the code that will switch the 'Login' link for the user's name (with a link to the profile page) after the user logs in. In the controller functions, I've tried the following code: if(!$this->session->userdata($userSession...

Handling relative paths for include files in PHP

Hello.. I am doing a project in PHP which I am not very familiar. I am using a MVC framework (CodeIgnitor). I have noticed that each time I return a view that resulted from a longer/shorter url string all of my includes break. It appears that the paths are relative to url. Is $_SERVER["DOCUMENT_ROOT"] the best way to generate include p...

Where to put http get function in CodeIgniter

Hello all I understand that everything dealing with database should be put inside a model class. But what about the data I get from a HTTP GET resource, like say a xml file, csv file or something like that. Should I make a helper for it? a library? or is it good in a model? Regards ...

Looking for another Framework.. Which one should I pick?

I have been using CodeIgniter for about a year now, but I feel that I have spent too much time building things that should be native. My own version of it is pretty cool and has almost everything I have ever used to build a web, in a way that it is reusable, but still lacks power and every time I learn something new (like TDD, or ORM), I...

is there a better, more lightweight way to access session data in codeigniter view?

Is there a more lightweight way to access session data in a view with codeigniter than posted here? i think about soemthing like {session.myparameter}. thanks for help ...

Can I switch active_group real time in CodeIgniter?

I want to use a different database that's defined in my $active_group in my database.php Any ideas? ...

Variables in CSS / Codeigniter?

Hey, I'm trying to set variables in my CSS so that I can allow subscribers to customize the colors of their page. I'd rather have as many files on my static server as possibly. Is there a good / easy way to do this? Should I just have a CSS file containing all the editable parameters in a CSS file inside the application? Walker ...

Store path of a photo in codeigniter

Hello, I followed this tutorial on how to upload a photo in a codeigniter folder: http://codeigniter.com/user_guide/libraries/file_uploading.html Can anybody tell me how can I store the path of the photo I just uploaded in my db? Let's say have table called photo_paths thanks in advance ...

Codeigniter + Opencart on one host -- URI routing problems

OK I searched the boards and could not found any specific answer. the website and the shop aren't the same. Codeigniter has been used for handling everything so now I want to add a shop using Opencart and the URI routing is the problem. (The truth is Im not a CI fan but since the guy before me used it I have no other choice but to cont...

Way to bypass the controller in CodeIgniter?

I've been using the CodeIgniter framework for PHP and am enjoying it, but I notice that it seems to require a controller for every view. I'm wondering if there is a way to call a specific model from the view itself, rather than route through a controller. I understand that use of a controller is best practice in most cases, especially wh...

codeigniter image reader

hello i am trying to use Codeigniter to build a simple user image gallery where a user can upload an image and then this will be auto displayed on another page. I have the image uploading done as explain on the user guide on Codeigniter and this works fine dumps the image in a folder in the root just placing the URL in one table area an...

Joomla as an MVC framework compared to CodeIgniter

This might sound like a silly topic, but I'm curious what your opinions are regarding coding an application using Joomla or CodeIgniter, within the context of them being MVC frameworks. I've spent a lot of time coding in CI, and I've gotten pretty used to the strict separation of business logic and data gathering (i.e. I can load up my...