Welcome Guest, Not a member yet? Register   Sign In
Howto make a login/auth .. thing ;)
#1

[eluser]DynamiteN[/eluser]
Hi, i have started to use Matchbox and was wondering how i should go about when i want to make .. i guess a login/member controller...

i have my main controller in "modules/home/controllers/main.php"

this is then the main controller (the default)

Code:
<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Main extends Controller {
    
    function __construct() {
        parent::Controller();
    }
    
    function index() {
        
        $data['heading'] = "Main View";
        $this->load->view('main_view', $data);
    }

}
and in the main_view file i have this to include the header
Code:
<?php $this->load->view('inc/header'); //including the header that's in "views/inc" folder ?>

and this to include the footer
Code:
<?php $this->load->view('inc/footer'); //including the footer that's in "views/inc" folder ?>

in my header i then include a file called "user_view" that also resides in the "views/inc" folder
Code:
<?php $this->load->view('inc/user_view'); ?>
just so that i can organise a little better and know whats where and such.


the thing is i just dont know where to start or how to do exactly,
i have looked at those different libraries for auth and such in the wiki.
but feel like i would benefit much more if i get to experiment and find out how do it for my self from scratch
and hopefully in the end get a app that i am satisfied with and know exactly what it does and so fourth...

if anyone has any ideas or useful links with some tutorials where i can learn more about this,
i've been looking alot on different sites and following tutorials, but there really aint that much just about this :/..

Thanks for any help at all .. Smile


Messages In This Thread
Howto make a login/auth .. thing ;) - by El Forum - 07-25-2010, 05:02 PM
Howto make a login/auth .. thing ;) - by El Forum - 07-25-2010, 05:43 PM
Howto make a login/auth .. thing ;) - by El Forum - 07-25-2010, 08:42 PM
Howto make a login/auth .. thing ;) - by El Forum - 07-25-2010, 11:08 PM
Howto make a login/auth .. thing ;) - by El Forum - 07-26-2010, 08:41 AM
Howto make a login/auth .. thing ;) - by El Forum - 07-26-2010, 11:23 AM
Howto make a login/auth .. thing ;) - by El Forum - 07-26-2010, 02:49 PM
Howto make a login/auth .. thing ;) - by El Forum - 07-26-2010, 02:53 PM
Howto make a login/auth .. thing ;) - by El Forum - 07-26-2010, 05:03 PM
Howto make a login/auth .. thing ;) - by El Forum - 07-27-2010, 08:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB