php_error错误处理使用demo

DC9AE427-5699-47CE-9C29-8A85FF7686AA

官网地址:http://phperror.net/

<?php

//set the options in an array
$options = array(
          'snippet_num_lines' => 10,
          'background_text'  => 'xxtime',
          'display_line_numbers' => true
  );

//require the script and run the function passing the options ar argument
require('php_error.php');
php_errorreportErrors( $options );

//create a generic class with a private attribute
Class MyClass {
    private $name;
}

$class = new MyClass();
//try to set the value for the private attribute to generate an error
$class->name = "testing private attribute";

highcharts图表插件,优秀js图表

最近使用百度得echarts开始感觉还不错,越用这越觉着不爽
于是研究一款新得图表插件 highcharts
貌似 facebook twitter yahoo visa 都用这个
很华丽,值得一试
http://www.highcharts.com/

F8FC1553-C313-46DD-976A-DFFD7B514D44

laravel 路由配置

<?php

use IlluminateSupportFacadesRedirect;
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the Closure to execute when that URI is requested.
|
*/

Route::get('/', function()
{
	return Redirect::to('/home');
});

// 指定路由
Route::get('/login', 'PublicController@login');
Route::get('/logout', 'PublicController@logout');
Route::get('/guide', 'PublicController@guide');
Route::controller('/test', 'LaravelControllerHomeTestController');

//Route::any('/home', 'HomeHomeController@anyIndex');
Route::controller('/error', 'LaravelControllerErrorController');
Route::controller('/home', 'LaravelControllerHomeIndexController');
Route::controller('/product', 'LaravelControllerHomeProductController');
Route::controller('/document', 'LaravelControllerHomeDocumentController');

// Manage
Route::group(
    array('prefix' => 'manage'),
    function() {
    	Route::controller('/index', 'LaravelControllerManageIndexController');
    	Route::controller('/category', 'LaravelControllerManageCategoryController');
    	Route::controller('/article', 'LaravelControllerManageArticleController');
    }
);
Route::controller('/manage', 'LaravelControllerManageIndexController');