codeigniter

CodeIgniter: Encrypt communication between app and mysql db on different servers ?

Can anyone tell me the best way to encrypt data between a CI application and a MySQL db hosted on separate servers. SSH tunnel? If so, has anyone gotten this working using CI? Code examples and/or links are welcome. ...

An image link won't work on codeigniter

Can anybody explain to me why this won't work on CodeIgniter? .linkBack{ background-image:url('/myBlog/CodeIgniter_1.7.2/pictures/arrow.gif'); display:block; height:58px; width:105px; text-indent:-999px; } <div class="linkBack"><?=anchor('myBlog', 'Back to Blog');?></div> while this would work perfectly: #linkBack { backgr...

How to parse HTML for minification in PHP?

I'm looking to write an algorithm to compress HTML output for a CMS I'm writing in PHP, written with the CodeIgniter framework. I was thinking of trying to remove whitespace between any angle brackets, except the <script>, <pre>, and <style> elements, and simply ignoring those elements for simplicity. I should clarify that this is whit...

processing $_POST in codeigniter

How do i do this in codeigniter? $cuisineArr = isset($_POST['cuisine']) ? $_POST['cuisine'] : array(); I read somewhere that using $_Post[''] direct is a not the right way and post() should be used instead. But how do i do the same in codeigniter? I'm getting an array from a group of checkbox, then converting it to csv. The non-codei...

Get last Inserted 'Id' while doing multiple entry to mysql in codeigniter

In my form, there are values to be inserted to multiple tables. After inserting to the first table, i have to insert the other values, along with the 'id' of the entry to first table as reference. What is the best way to do this? Is there any codeigniter specific way? ...

create thumbnail with codeignitor fixed size ;

how do i create thumbnail form original size ( any size) to 50 x 50 ( fixed size) link text when add images to lightbox all images in any size will resize to 50 x 50 dimention how to implement that with codeigniter image class ; imagine i have image with 600x320 dimensions when i re size it with maintain_ratio "on" it's gave me 50x27 ...

jQuery having trouble selecting things in different cases

Note: If you're 'just' a jQuery developer some things in this post may look a tad complex (Base62 encoding etc.) - it's really not. Although the more technical details are relevant to the question, the core is that jQuery won't select stuff with capitals. Thanks! Hi folks! So I have a list generated by Ajax. When you click the list's t...

How do you configure Codeigniter routing to ignore a specific segment string in the url

I'm not sure I'm going down the right path with this - and I am pretty new to routing, so if this is way off base, I apologize. What I'm trying to accomplish is having a link at the bottom of the page where the site visitor can select mobile or full screen. I want them to be able to do this from any page. When they select either one, t...

When I upload my CodeIgniter System to my Amazon EC2, why are all of my permissions messed up?

For some weird reason, my "system" folder has permissions of "000" when I upload it. This totally breaks CodeIgniter as I get all sorts of errors: Message: CI_Config::include(/[mysite]/system/application/config/assetlibpro.php) [ci-config.include]: failed to open stream: Permission denied ...

Can Codeigniter write_file write a UTF-8 file?

Hello, In CodeIgniter, I'm writing an XML file using write_file function. write_file('data.xml', $str_xml); But the encoding of the file is always ANSI. How can I have this file be encoded to UTF-8 automatically? ...

jQuery.post(), PHP and redirects

THIS PROBLEM IS NOW SOLVED. THANK YOU TO EVERYONE WHO REPLIED. Hello, I am trying to solve a problem that I may have approached from the wrong direction, so maybe someone could suggest a better solution. I am writing a little web app for work, that has a search function. When user submits a search string, form gets posted to a CodeIgn...

CodeIgniter + encodeURIComponent

Hi I'm trying to retrieve a url sent in the query strings in a codeigniter function: function recipe($url = ''){ $url = $this->uri->uri_string(); $url = ltrim($url, '/bookmarklet/recipe/'); log_message('info', 'URL: ' . rawurldecode($url)); However for some reason the url is always missing a '/' in the h...

redirection problem with Twitter Library for Codeigniter.

Hi there, I'm using Elliot's Twitter Library for Codeigniter framework (http://www.haughin.com/code/twitter/), the setup went well. But after clicking on allow button on the twitter auth page, it redirected back to the twitter auth page again. I think the problem is with the .htaccess of my server but I cannot get it to work. This is w...

Learning Management System using php codeigniter?

Is there any open source Learning Management Softwares that is developed using php codeigniter? a Web based software for delivering,tracking and managing training/education that focuses mainly on Class/session scheduling, Class enrollment/registration, Teachers/Trainers,Students and Lessons/Courses/Categories/Evaluation I'm a BSIT stu...

How do I load custom configuration files with codeigniter?

Hey all, I've just started to use codeigniter and I have a question. I am using arrays for defining certain values like: $gender = array ('male','female'); Or: $maritalStatus = array ('married', 'single', 'divorced'); I am using these kind of arrays in different views. My question is, is there a chance to put all of these arra...

How to close a Colorbox from a Controller in CodeIgniter?

I have a Colorbox (lightbox) loading a specific controller/view. Is there any way for me to close the colorbox from within the controller? ...

Make codeigniter behave on $_GET's ?

I've had a problem with CI handling $_GET and found a way to overcome it. The question is, can you see any security problem here? I have my urls all ways like /contacts /company/info And my default controller on CodeIgniter is called index I can make CI behave with $_GET as long as I follow the class/function/default_controller....

add a class to particular row in codeigniter using table class

Is it possible?? ...

PHP/codeigniter: Link not working when clicked, but fine if opened in new tab

On one particular page I have a button that toggles a certain field in the db. The function is function source_toggle_paid($event_id = null, $attendee_id = null) { $this->authentication->checkLogin(); // Check if the user is logged in // Check the parameters provided are null if ($attendee_id == null || $event_id == null)...

Is there a codeigniter auth class which allows face book login?

^ or whats the best auth class for codeigniter? ...