Welcome Guest, Not a member yet? Register   Sign In
HMVC | Undefined property: $session | $this->session is null
#11

[eluser]oukarai[/eluser]
ok i solve that by change Login extends CI_Controller
to MX_Controller

but i dont konw the reason and the difference between them
#12

[eluser]InsiteFX[/eluser]
You need to test your code to see if the is_logged_in is be set.

You can use ech var_dump print_r etc to debug your code!

I would start by making sure the is_logged_in is getting set in the sessions userdata.

InsiteFX
#13

[eluser]oukarai[/eluser]
well i solved the promble by change Login extends CI_Controller
to extends MX_Controller

but i dont konw the difference between them
#14

[eluser]InsiteFX[/eluser]
If you use CI_Controller then it uses Modular Seperation. If you use MX_Controller then it uses Modular Extensions.

Read the HMVC Doc's for more information on the differences of the two.

That was the next thing I was going to have you try.

I always use Modular Extensions.

InsiteFX
#15

[eluser]oukarai[/eluser]
ok i had read the HMVC Doc’s one more time
i dont know what's the differences between Modular Seperation and
Modular Extensions

i think that Modular Seperation is application/models

and Modular Extensions is application/medules/XX

is it right???
#16

[eluser]InsiteFX[/eluser]
Nope!

Modular Extensions allows for calling other libraries and models from the other modules.

Modular Seperation will not allow this.

InsiteFX
#17

[eluser]oukarai[/eluser]
thank you for you answer and for sovling the problem with me ,my son

i will be here when i have some prombles
its will be very soon




Theme © iAndrew 2016 - Forum software by © MyBB