App.php
protected static function _setCustomConfigFiles( )
		{	
			/* custom config files */
			$files = array( '..' , '.' , 'app.php' , 'db.php' , 'debug.php' , 'init.php' , 'modules.php' ,
											'paths.php' , 'auth.php' , 'debug_ajax.php' );
			$scanned_directory = array_diff( scandir( ptc_path( 'root' ) . '/app/config' ) , $files );
			if ( !empty( $scanned_directory ) )
			{
				foreach ( $scanned_directory as $file )
				{
					$option_name = str_replace( '.php' , '' , $file );
					$options = Module::merge( ptc_path( 'root' ) . '/app/config/' . $file );
					if ( ptc_array_get( $options , '_load' ) )
					{
						$options = call_user_func( ptc_array_get( $options , '_load' ) , $options );
					}
					static::option( $option_name , $options );
				}
			}
			static::_loadModulesConfig( );
		}
protected static function _setCustomConfigFiles( )
		{	
			/* custom config files */
			$files = array( '..' , '.' , 'app.php' , 'db.php' , 'debug.php' , 'init.php' , 'modules.php' ,
											'paths.php' , 'auth.php' , 'debug_ajax.php' );
			$scanned_directory = array_diff( scandir( ptc_path( 'root' ) . '/app/config' ) , $files );
			if ( !empty( $scanned_directory ) )
			{
				foreach ( $scanned_directory as $file )
				{
					$option_name = str_replace( '.php' , '' , $file );
					$options = Module::merge( ptc_path( 'root' ) . '/app/config/' . $file );
					if ( ptc_array_get( $options , '_load' ) )
					{
						$options = call_user_func( ptc_array_get( $options , '_load' ) , $options );
					}
					static::option( $option_name , $options );
				}
			}
			static::_loadModulesConfig( );
		}
protected static function _setCustomConfigFiles ( ) { /* custom config files */ $ files = array ( '..' , '.' , 'app.php' , 'db.php' , 'debug.php' , 'init.php' , 'modules.php' , 'paths.php' , 'auth.php' , 'debug_ajax.php' ) ; $ scanned_directory = array_diff ( scandir ( ptc_path ( 'root' ) . '/app/config' ) , $ files ) ; if ( ! empty ( $ scanned_directory ) ) { foreach ( $ scanned_directory as $ file ) { $ option_name = str_replace ( '.php' , '' , $ file ) ; $ options = Module :: merge ( ptc_path ( 'root' ) . '/app/config/' . $ file ) ; if ( ptc_array_get ( $ options , '_load' ) ) { $ options = call_user_func ( ptc_array_get ( $ options , '_load' ) , $ options ) ; } static :: option ( $ option_name , $ options ) ; } } static :: _loadModulesConfig ( ) ; }
Load custom config files
Load custom config files