Welcome Guest, Not a member yet? Register   Sign In
POST data in model
#1

[eluser]maadmac[/eluser]
Quick question:

There shouldn't be any problem with invoking the Input class in a model, correct? Something like this:

Code:
<?php

class Test_model extends Model {

    function __construct() {
        parent::Model();
    }
    
    function test_function() {
        $this->session->set_userdata('some_data') = $this->input->post('some_data');
        }
?>

I've seen it in other posts in the forum, so I'm fairly sure it should work, but I was having some trouble earlier with empty variables and am wondering if it's related...


Messages In This Thread
POST data in model - by El Forum - 10-26-2007, 12:36 PM
POST data in model - by El Forum - 10-26-2007, 01:18 PM
POST data in model - by El Forum - 10-26-2007, 01:35 PM
POST data in model - by El Forum - 10-26-2007, 03:08 PM



Theme © iAndrew 2016 - Forum software by © MyBB