Welcome Guest, Not a member yet? Register   Sign In
Add $this->load->view to all functions?
#9

[eluser]Fredrik-s[/eluser]
[quote author="InsiteFX" date="1303697189"]You cannot do this Controller is a CI reserved word!
Code:
<?php defined('BASEPATH') OR exit('No direct script access allowed');

if ( ! class_exists('Controller'))
{
    class Controller extends MY_Controller {}
}

// should be something like this! application/core/Admin_Controller.php
class Auth extends Controller {
<?php defined('BASEPATH') OR exit('No direct script access allowed');

if ( ! class_exists('Admin_Controller'))
{
    class Admin_Controller extends MY_Controller {}
}

class Auth extends Admin_Controller {

InsiteFX[/quote]

Thanks for answer.

I'm using this authentication library http://codeigniter.com/wiki/Ion_Auth_-_L...th_System/

Strange that it is coded with reserved name. I think I will change library.


Messages In This Thread
Add $this->load->view to all functions? - by El Forum - 04-24-2011, 02:54 AM
Add $this->load->view to all functions? - by El Forum - 04-24-2011, 03:32 AM
Add $this->load->view to all functions? - by El Forum - 04-24-2011, 09:48 AM
Add $this->load->view to all functions? - by El Forum - 04-24-2011, 09:56 AM
Add $this->load->view to all functions? - by El Forum - 04-24-2011, 10:13 AM
Add $this->load->view to all functions? - by El Forum - 04-24-2011, 10:21 AM
Add $this->load->view to all functions? - by El Forum - 04-24-2011, 01:16 PM
Add $this->load->view to all functions? - by El Forum - 04-24-2011, 03:06 PM
Add $this->load->view to all functions? - by El Forum - 04-24-2011, 03:30 PM
Add $this->load->view to all functions? - by El Forum - 04-24-2011, 03:53 PM



Theme © iAndrew 2016 - Forum software by © MyBB