codeigniter

CodeIgniter - Disallowed Key Characters via $_GET

I am getting echoed "Disallowed Key Characters." in my CodeIgniter application when I have a http_cookie sent via GET from a SSL relay site (a payment gateway) to my application. My question is if there's any way that I can get this http_cookie through this "_clean_input_keys" (defined in system/libraries/Input.php) method that cause thi...

Im having trouble getting SWFUplader to play ball in my codeigniter application

I have this peice of code in my handler.js, I'm getting the correct serverData value throught ajax, ( Well it's echoed correctly un the alert box) but no matter what, i just cant seem to enter either of the 'if' blocks. I have double checked the type and it is a string. Something is definetly funky. function uploadSuccess(file, serverDa...

CodeIgniter - accessing $config variable in view

Pretty often I need to access config variables in views. I know I can pass them from controller to load->view(). But it seems excessive to do it explicitly. Is there some way or trick to access $config variable from CI views without disturbing controllers with spare code? ...

Fatal error: Call to a member function getAttribute() on a non-object in C:\xampp\htdocs\giftshoes\system\database\doctrine\Doctrine\Record.php on line 1424

I am getting following error message when using Doctrine ORM in Codeigniter. Please help me... ------------------Doctrin Table Defination------------- abstract class BaseShoes extends Doctrine_Record { public function setTableDefinition() { $this->setTableName('shoes'); $this->hasColumn('sku', 'integer', 11, arra...

Content cacheing with PHP and CodeIgniter

I have a couple of things I'm working on, namely a page that issues five or six cURL requests and processing content on them. I'm working with CodeIgniter on a LAMP stack but am open to other options. Naturally I would prefer to not rewrite the application. I would like to know if there are any ready-made / easily learned caching metho...

PayPal for Indian Rupees(INR) any solution

I am developing online shopping website, In shopping website all product are priced in Indian Rupees(INR). I am going to integrate My shopping cart to paypal payment gateway. I knew that pay pal does not support INR. So i have to convert INR to USD. Is there Any API service to convert INR to USD as automatically ?, If yes, give the detai...

php script for currency conversion

hi, i want php script for currency conversion help me please..... ...

Order by Domain Extension Name using CodeIgniter Active Record Class

$extension = “SUBSTRING_INDEX(domain_name, ‘.’, -1)”; $this->db->order_by($extension, “asc”); It says: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘asc LIMIT 50’ at line 44 But its working when I didn’t used the $this->db->order_by Active Record...

Codeigniter Form validation problem

Please please please can someone help me $this->load->library('form_validation'); $this->load->helper('cookie'); $data = array(); if($_POST) { // Set validation rules including additional validation for uniqueness $this->form_validation->set_rules('yourname', 'Your Name', 'trim|required'); $this->form_validation->set...

CodeIgniter - the right way to create "block" elements on web page

Hello. I've been searching for a solutions for this problem a while but haven't seen any "valid mvc" solution for this. I hope I can explain my problem clearly enough for you guys. I need to create a dynamic block of HTML on my website. (eg. a block containing user's latest blog comments). I have a template view file (a file containing...

Codeigniter 404 can't find index.php (only on real server, not on virtual server)

Hey, I got a working webpage with CodeIgniter. I did now just upload it to my webserver and it gives me a 404 error. The browser address is "web-page.com/folder/en/about" The baseurl in the config is "web-page/folder/" Also this is in the config.php, I did try AUTO but it does not work either. $config['index_page'] = ""; $config['ur...

How to scale a PHP application (servers, mysql, memcache)

Hi, I'm currently creating a website for a social project in switzerland. And before there is an overflow of user, I want to prepare the application to scale. I answered by myself many questions but some are left. I explain what I want to do. First at the beginnning, the Application will have only one server (short time) with DNS...

Doctrine Fatal Error - Unknown relation alias

I am getting following error message: Doctrine_Table_Exception: Unknown relation alias shoesTable in /home/public_html/projects/giftshoes/system/database/doctrine/Doctrine/Relation/Parser.php on line 237 I am using doctrine 1.2.2 with Codeigniter My Code is below: (BaseShoes.php and Shoes.php is auto generated) ------------BaseShoes-...

Codeigniter directory_map()

Hi all, I'm trying to use the directory_map('source directory',false) function to scan through user uploaded folders/files. It works and spit out the result in a multilevel array format. I wouldn't know how deep is the multi level array would be. How do I iterate the array and display it in a readable format (e.g. in html (ol/ul) tags)...

The requested URL /index.php/blog/scaffolding/add was not found on this server.

I am new in Codeigniter i am seeing the Video blog tutorials from Codeigniter but when i am useing scaffolding and try to add something give me like this massage. <?php class Blog extends Controller { function Blog() { parent::Controller(); $this->load->scaffolding('entries'); } function index() { $data['title'] = "T...

CodeIgniter: Where should a particular functionality go ?

Here is a quick overview of the controllers functionality in most of the application: controller loads a specific model, gets data from it, formats the data and passes the formatted data to the view. Now there is a search page, which needs to do a search query over entire database (all models). It needs to show each type of data in i...

codeigniter: how to redirect after login to current controller (php_self in regular php)

Well it's not really a problem but I check if the user exist and log them in and redirect to site/members_area, but I don't want to send the user to a specific page but i want to reload the current controller. So if I login in index/home I would like to be redirected at index/home, how should I proceed? in regular php I would put in the...

[codeigniter] extra white space

Hi all, i getting extra space at the beginning of page ( output ), the thing is i didn't edit any file, i just uploaded the codeigniter framework to my server, and in the welcome page i get that space , in localhost i don't get it, i changed all files to utf8, checked if there is any space before ( there is no ?> ) did someone had to d...

how to make variables in pre_controller hooks global to all controllers?

in my pre_controller hook i have this code for doctrine: $manager = Doctrine_Manager::getInstance(); $conn = Doctrine_Manager::connection($db[$active_group][‘dsn’]); then in my controller i have this code to use doctrine connection i’ve created: $conn->export->createTable(‘test’, array(‘name’ => array(‘type’ => ‘string’))); $conn-...

CodeIgniter Unable to Access Error Message Error

Hi, I've created this registration form for registering new users to a website using CodeIgniter. My problem is, whenever I enter a username that already exists in my database, instead of giving me my error message which explains this to the user, it instead gives me this error message: Unable to access an error message corresponding...