Welcome Guest, Not a member yet? Register   Sign In
Global $data array?
#3

[eluser]Zero-10[/eluser]
Thanks for the response! Unfortunately I couldn't understand how to setup constants from the documentations and the other threads in the forums. I do need it for different controllers, models, views and possibly libraries in the future so I'm sure the constants approach would be favorable.

I would need something like this:
Code:
$this->load->model('articles/get_article','',TRUE);

if ($this->phpbb_library->isLoggedIn() === TRUE)
        {
            $data = array(
                                'id'            => $this->phpbb_library->getUserInfo('user_id'),
                                'username'      => $this->phpbb_library->getUserInfo('username') etc...

Could you please provide an example on how I could implement it within config/constants.php please? It looks like gibberish and it seems like everyone secretively understands how it works but me :/


Messages In This Thread
Global $data array? - by El Forum - 07-03-2011, 06:43 AM
Global $data array? - by El Forum - 07-03-2011, 07:29 AM
Global $data array? - by El Forum - 07-03-2011, 04:46 PM
Global $data array? - by El Forum - 07-03-2011, 05:37 PM
Global $data array? - by El Forum - 07-03-2011, 06:38 PM
Global $data array? - by El Forum - 05-10-2012, 06:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB