codeigniter

CodeIgniter 404 Page Not Found, but why?

Hello I am using CodeIgniter for two applications (a public and an admin app). The important elements of the document structure are: /admin /admin/.htaccess /admin/index.html /application /application/admin /application/public /system .htaccess index.php The /admin/.htaccess file looks like this: DirectoryIndex index.php RewriteEngi...

CodeIgniter Include of Vzaar Library

I am trying to load the Vzaar libraries into codeigniter. Should these file go into the libraries directory. If so there are multiple files, which one would I make the call to from my controller. I believe the main library file is Vzaar.php. Therefore should my call be $this->load->libraries('Vzaar'); ...

How to access standard PHP session data from inside CodeIgniter.

I've got a Codeigniter project I'm working on, and using the CI Sessions (stored in a DB), but I need to check for a variable in another $_SESSION from another application (in the same cookie domain), but when I try, from the CI controller to use native PHP sessions to get this one bit of info ($_SESSION['blah']), it looks like CI is str...

MySQL - Blog post scheduling system

I am creating a blog post scheduling system using CodeIgniter. I want 10 posts to show up a day. There is a field in the posts table named scheduled_date which I will get the posts that are less than or equal to the current date. When an admin user adds a new record to the database, I need an SQL statement that somehow will help me COUNT...

How do get my ajax form to inject captcha verification into the browser after successful form validation?

Currently after my form has passed validation it forwards to an html page. I would like to have one last step that pulls reCaptcha and when reCaptcha has been passed only then is the registration details of the user sent to my database and user forwarded to what ever page I choose. Please advise me on the best way to do this thanks...

Display Album with Photos (PHP)

To start off, this really isn't CodeIgniter specific. I'm having trouble grasping an idea, so anyone that knows PHP/SQL (or whatever my problem is) can jump in. I have 2 tables, 'Photo' and 'Album'. Album columns : ID TITLE USER_ID CREATED MODIFIED Photo columns : ID ALBUM_ID TITLE LOC CREATED MODIFIED I'm using the query ...

.htaccess codeigniter multiple domains

Hello, everybody I'd like to know if it is possible to organize the following structure of the CodeIgniter installation: - Main folder -- codeigniter -- images -- site1-application -- site2-application -- site1-index.php -- site2-index.php The main idea is to use the same images and codeigniter folder across the multiple web sites fo...

Breadcrumb library for Codeigniter

I am looking for a breadcrumb library for codeigniter, I found one called DTE but I'm not sure if I want to use it because it seems all support is gone for the library itself. can anyone recommend one? ...

Implementing reCaptcha ajax api to an exiting webform that already uses ajax

I have a signup form on my home page which uses server side validation and ajax so my page doesn't refresh while validating. When all validation is passed my page is taken to a registered.html which is a temporary page for now. Later on it will be an account area. What I want I want to have 1 last step after the actual form validatio...

Codeigniter running on IIS7 on godaddy servers

Im' trying to run CI application with or without smart url capability on godaddy's MS IIS7, now they have by default enabled URL rewrite engine which prevents CI from running properly - is there some way to turn off URL rewrite on godaddy servers or to specify not to use URL rewrite for some folder (without using web.confing because that...

passing a php variable to an onclick function in codeigniter

Hi, I am creating a menu script that updates a div whenever it is being clicked. So in my scenerio what happens is, u search for a place, it brings back a list of places starting with similar letters, then u select one item(place) from the list which updates the div with the selected item. I am having troubles passing a php variable to ...

Access CodeIgniter instance from error pages

Is there any way to access the current instance of CodeIgniter from an error page? For example, I want to load views from application/error/error_404.php, but using $CI =& get_instance(); to get a reference to the CodeIgniter system doesn't work. Is this a limitation of working in error pages, and are there any workarounds? ...

How to do a post request for my reCaptcha ajax api?

My reCaptcha is now implemented into my signup process using ajax.. Currently no matter what is typed in the captcha text field it never validates. It just keeps giving me new words to type in. I've figured it's because I need to test if the user entered the right captcha answer. I need to send a POST request. I have no idea how to do...

Can't email from my google smtp from CodeIgniter

I'm running through a tutorial that teaches you the email library in CodeIgniter. I'm using my google credentials to send via smtp but for some reason it is not accepting them. I have tried two different accounts that I am positive I have the correct passwords on and can even log into. However when I try to send a test email from my c...

Give me this kinds of error

SMTP -> FROM SERVER:220-serer.smarthostbd.com ESMTP Exim 4.69 #1 Wed, 22 Sep 2010 08:06:56 +0000 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail. SMTP -> FROM SERVER: 250-serer.smarthostbd.com Hello localhost [180.234.12.144] 250-SIZE 52428800 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTL...

Facebook Graph. Get all the albums and the photos from a page

I'm trying to get all the photos from all the albums of a Facebook page that will be shown on a web page. I'm getting a bit confused with the access token. I don't want the user to have to log in to Facebook to be able to see the photos so I'm not sure how to get the token. Do I have to make an application to connect to for this? ...

How do I find out which version of Doctrine I am running?

The title says it all really. Have been using it for a while with CodeIgniter and I can't remember if I installed v2 or just copied the files from another project. Any ideas? ...

CodeIgniter: Multiple Apps, remove .php from url

Hello everyone. My question may look similar to others, but it's different as you'll se: I have 5 CI apps running with the same System Folder, as described in CI User Guide. Now, I want some .htacces file to remove just the .php from the url, like, as example: http://example.com/appName/controller/action instead of http://example.com/a...

CodeIgniter: How to know if $this->load->database(); did connect?

If I configure my CI application to use database for session handling, if a session userdata returns false, I can assume that the user's session has expired. But what if the actual reason that it returned false was because the database connection was not established successfully? ...

Strange DOMPDF issue with Codeigniter

Hello, Just a quickie. I have tested DOMPDF in a Doctrine enabled Codeigniter 1.7.2 installation and everything works fine. However, when the Cart library and URL Helper are autoloaded as well, DOMPDF doesn't work. BUT, if you 'un-autoload' (ie. dont use) any one of Doctrine, the URL Helper or the Cart Library, DOMPDF works. Is ju...