codeigniter

Is there a native CodeIgniter function that does the reverse of $this->db->escape()?

I was looking for a function that does the reverse of $this->db->escape() to get the original string when it was still unescaped. I have tried searching for it in the Codeigniter docs. I don't think I can find one. I also tried finding a native PHP function for it( since it uses mysql_real_escape_string when using MySQL) but so far the...

is there any view page caching for codeigniter

Hello, I am using codeigniter db query caching and i would like to cache my view pages just like codeigniter CI caching instead of cache whole page i would like to different pages for logged in users and not logged in users so could someone please tell me is there any view page caching system for codeigniter or db query caching is best ...

codeigniter upload config

How to specify more than one configuration in config/upload.php ? ...

Sending multiple email from codeigniter

Hi friends i am creating newsletter in codeigniter. Is there a way to send multiple email with CI email lib or should i use third party ? ...

Is it okay to load models in Helpers in CodeIgniter?

I'm trying to use helpers to handle processes that involve multiple models. Is this okay in terms of best practices? ...

PHP based web application and mass mailing

I have developed a web application where students across the country come and register for some academic purpose. The users are expected to be around 100k within next year. I need to send all of these people periodic mails. The web app is developed using codeigniter. The php script can run for 3000 seconds. But still the app is unable ...

eclipse and codeigniter

I am new to using eclipse for php and am struglling with something that should be very simple. I use codeigniter - how can i add my codeigniter project to a new project in eclipse? ...

Dynamically load class for global access (like codeigniter does)

Here is the basics of my framework: class CPU { public function load_class($class) { include_once($class . ".php"); $this->$class = new $class; } public function load_controller($class) { include_once($class . ".php"); $class = new $class; $class->index(); } public function ...

CodeIgniter Views

Ok I have adopted a CodeIgniter Setup, My route.php in config looks like this: $route['default_controller'] = "development"; My development.php controller looks like this: class Development extends Controller { function Development() { parent::Controller(); } public function Index() { $this->load->view('index'); } functio...

Using simplemachine forum functions in a codeigniter controller

I'd like to use codeigniter to write an interface to an existing simplemachines forum. I'm aware of the SSI api, but that provides limited functions like showing 10 most recent posts. I'd like access to all the native SMF functions so I can show all my boards, and all the posts in the boards. Are there one or more files I can include ...

JSON & PHP - Building up the rows correctly

So I've got an object containing several rows from a database (using PHP). How should I organize them into an array to pass through JSON? For example, say I want to list some users. I've already done the correct query, and have an object called $u foreach($u as $user) { $rows['name'] = $user->firstname . $user->lastname; ...

Codeigniter callback validation problems

I want to create a callback function that is used during validation to check if the username / email address is already in the database... problem is I just cant seem to get it working So this is the callback function: function callback_username_available($username) { if($this->user_model->username_available($username)) { ...

PHP Thread Direction

Hello, I am looking for a starting point to get a threading project started. I have a need on my server to take a starting WEB page, and based on the results, possibly parse out up to 20 additional pages. My intention would be to parse these pages concurrently. We are using CodeIgniter on the server, but not finding a ton of directio...

serving different content based on the domain in codeigniter

I'm going to develop a website in codeigniter. But not sure if the methor i'm going to use is the best approach. There will be many addon domains for the same site. But content will be filtered based on the domain used to visit the site. For Example If a user comes from the domain siteusa.com then the content will be shown filtered a...

foreach error with codeigniter

Hey im using codeigniter and i got this error A PHP Error was encountered Severity: Notice Message: Undefined variable: query Filename: views/nyheder_view.php Line Number: 2 A PHP Error was encountered Severity: Warning Message: Invalid argument supplied for foreach() Filename: views/nyheder_view.php Line Number: 2 my controlle...

Why codeigniter etc disallow get variables

Why is it that codeigniter and perhaps other mvc frameworks disallow the use of get variables. Is it security? DO they think that get is overused and abused? I think that both post and get have their places and should be used for their intended uses? Can anyone offer an explanation for me? ...

scriptaculous ajax autocompleter

Hi there. Pls I am using scriptaculous ajax autocompleter, and I am having difficulties trying to get it to do what i want. You know when you start typing in the search form and a drop down list possible results start coming up, from that list I am trying to get it that when i click on one of the possible answers, it performs another s...

jQuery Javascript loading continuously in CodeIgniter

Hi all, I am developing one application using PHP, jQuery, Javascript in CodeIgniter. I included script.js file in view file. The problem is the view file is continuously loading again and again with in the result div called "new". Please help me. Below are the files and code. View file <?php $this->load->view('header'); ?> <scrip...

Multi Translator for Codeigniter

hello, does anyone know how to make translate multi language page in codeigniter, some plugin or something? Thanks ...

Codeigniter global_xss_filtering

In my codeigniter config I have $config['global_xss_filtering'] = TRUE;. In my admin section I have a ckeditor which generates the frontend content. Everything that is typed and placed inside the editor works fine, images are displayed nice, html is working. All except flash. Whenever I switch to html mode and paste a youtube code piece...