Welcome Guest, Not a member yet? Register   Sign In
Why can't we use static objects?
#1

(This post was last modified: 07-04-2015, 01:19 PM by rakibtg. Edit Reason: Code indentation )

Why codeigniter does not support static use of an object, or is there any to use static method i may missing?
Example:
PHP Code:
// the way we do is this
$this->input->post('username');

// can we do like this?
Input::post('username'); 

Or can we use any helper? like
PHP Code:
post('username');
view('profile', ['username' => 'rakibtg']); 

Thanks :=))
Reply


Messages In This Thread
Why can't we use static objects? - by rakibtg - 07-04-2015, 01:17 PM
RE: Why can't we use static objects? - by kenjis - 07-04-2015, 04:19 PM
RE: Why can't we use static objects? - by rakibtg - 07-05-2015, 08:32 AM
RE: Why can't we use static objects? - by kenjis - 07-04-2015, 09:51 PM
RE: Why can't we use static objects? - by rakibtg - 07-06-2015, 05:34 AM
RE: Why can't we use static objects? - by kenjis - 07-06-2015, 02:55 PM
RE: Why can't we use static objects? - by rakibtg - 07-06-2015, 11:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB