Welcome Guest, Not a member yet? Register   Sign In
A3M - Account Authentication & Authorization Module - Mushmellow
#26

[eluser]diZzyCoDeR[/eluser]
@Natedogg386 -- I banged my head against the wall all evening trying to figure why my .htaccess wouldn't work, but I needed to change the config.php file to match this:
Code:
$config['uri_protocol']    = "ORIG_PATH_INFO";
** try all the different types (AUTO didn't work for me either)

@peng kong

I'm running on a shared host (php 5.2.?) and I'm getting these
Quote:Message: Undefined property: Account_model::$db

Filename: models/account_model.php

Line Number: 40

Fatal Error: Call to a member function get_where() on a non-object in {filename}
thrown on
Code:
return $this->db->get_where('a3m_account', array('username' => $username))->row();

I tracked it down (I think) to needing to use __Construct() method.. although, before I go changing all the classes, do I have this right? Is anyone else exhibiting this misfortune?

..should be this..(?)
Code:
class Account_model extends Model {
    
    /**
     * Constructor
     */
    function __construct() //CHANGE FROM: Account_model()
    {
        // Call the Model constructor
                parent::__construct(); //CHANGE FROM: parent::Model();
        }


Messages In This Thread
A3M - Account Authentication & Authorization Module - Mushmellow - by El Forum - 02-01-2011, 12:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB