Welcome Guest, Not a member yet? Register   Sign In
Message: Undefined property: ::$input or $uri
#1

[eluser]Unknown[/eluser]
Well after 3 hours I finally solved it.
I'm new to codeigniter soo, I had to look core codes to understand the reason.
The loader doesnt load them as "input" or "uri"

The result of
Code:
$this->load->_base_classes
that used in Controller class to load base classes is:

Code:
Array
(
    [benchmark] => Benchmark
    [hooks] => Hooks
    [config] => Config
    [utf8] => Utf8
    [urI] => URI
    [router] => Router
    [output] => Output
    [Input] => Input
    [lang] => Lang
    [loader] => Loader
)

So loader load them as "urI" and "Input"

I dont know why it does like that but using
Code:
$this->Input->post("post") | $this->urI->segment(2)
instead of
Code:
$this->input->post("post") | $this->uri->segment(2)
works at Codeigniter 2.0

Can you guys know why it does this?


Messages In This Thread
Message: Undefined property: ::$input or $uri - by El Forum - 02-06-2011, 09:50 AM
Message: Undefined property: ::$input or $uri - by El Forum - 02-07-2011, 08:54 AM
Message: Undefined property: ::$input or $uri - by El Forum - 01-29-2012, 01:44 PM
Message: Undefined property: ::$input or $uri - by El Forum - 01-29-2012, 05:55 PM



Theme © iAndrew 2016 - Forum software by © MyBB