class Controller_Admin extends Controller_Base
{
// protected $_db = 'content';
/**
* @var User Object Instance
*/
protected $user;
public function before()
{
parent::before();
$auth = Auth::instance();
$auth->auto_login();
if ($auth->logged_in())
{
$this->user = Auth::instance()->get_user();
$this->template->navigation = $this->_get_navigation();
$this->template->styles = array_merge($this->template->styles, array('css/admin.css','css/forms.css'));
}
}
// some more stuff that shouldn't affect anything
}
Note that I currently have the protected $_db = 'content' commented out because I was only able to run with the 'default' database config. Anyway, all my other admin controllers extend Controller_Admin. Controller_Base extends Controller_Template and has a session variable and some other stuff; all the other non-admin controllers extend Controller_Base. class Model_Ormbase extends ORM {
protected $_db = 'content';
} class Model_Otherormmodel extends Model_Ormbase {
// stuff
}
class ORM extends Kohana_ORM {
protected $_db = content;
}
...must be where I went wrong. I thought the salt pattern was just a "pseudo-random" collection of numbers. What's a salt pattern anyway?they must be in ascending order
What's a salt pattern anyway?
It looks like you're new here. If you want to get involved, click one of these buttons!