Сделал хэлпер с show_403(), по аналогии с show_404().
Код выложил в googlecode.
error_403.php для /application/errors/ прилагается :)
Заметки об используемых в работе языках программирования, фреймворках, инструментах и технологиях.
Новая версия сайта находится по адресу https://www.dev-notes.ru/
Сделал хэлпер с show_403(), по аналогии с show_404().
Код выложил в googlecode.
error_403.php для /application/errors/ прилагается :)
/**
* Class registry
*
* This function acts as a singleton. If the requested class does not
* exist it is instantiated and set to a static variable. If it has
* previously been instantiated the variable is returned.
*
* @access public
* @param string the class name being requested
* @param bool optional flag that lets classes get loaded but not instantiated
* @return object
*/
function &load_class($class, $instantiate = TRUE)
/**
* Class registry
*
* This function acts as a singleton. If the requested class does not
* exist it is instantiated and set to a static variable. If it has
* previously been instantiated the variable is returned.
*
* @access public
* @param string the class name being requested
* @param string the directory where the class should be found
* @param string the class name prefix
* @return object
*/
function &load_class($class, $directory = 'libraries', $prefix = 'CI_')