Hey guys,
I'm using before() my DRY classes to set properties and call functions each tier of my application needs. For example:
public function before($data = null)
{
parent::before(null);
self::_check_browser();
//These functions will provide globals in our views
self::_check_lang_exists();
$minify = self::_minify();
self::_set_globals($minify);
//System wide notifications (the bar at the top)
$data = $this->_check_notifications();
$this->template->ie_conditionals = View::factory('common/ie_conditionals');
$this->template->notification = View::factory('common/notification.jade', $data);
$this->template->css = View::factory('common/css.jade', $minify, false);
$this->template->title = '';
$this->template->description = '';
$this->template->keywords = '';
}
Anyway, everything works fine, but there are error messages in my log files that I'd like to get cleaned up:
Error - 2011-08-05 21:09:50 --> 2048 - Declaration of Sell_Base::before() should be compatible with that of Site_Base::before() in /Users/calvinfroedge/htdocs/froedge/fmslumberhandling/code/fuel/app/classes/base/sell_base.php on line 9
I'm pretty sure it's an inheritance issue. I googled 'should be compatible with PHP' and came up with some old bugs on php.net. Anyone have any idea how to resolve these? It's not preventing my application from running but I like to clean up after myself = )