码迷,mamicode.com
首页 >  
搜索关键字:routes    ( 707个结果
nodejs环境 + 入门 + 博客搭建
express项目标准目录结构: bin/ node_modules/ # 保存node.js的module扩展文件,如模板、数据库接口,可以根据package.json生成 public/ # 静态资源 routes/ # 存放了MVC概念中controller的处理部分,路由信息在app.js中 ...
分类:Web程序   时间:2016-03-24 20:17:52    阅读次数:530
Laravel Routing笔记
所有route被定义在app/Http/routes.php文件中,文件里包含最基础的route和group。默认的group是提供Web中间件的group。只有Web中间件内的Group才可以访问session以及CSRF保护。 Router允许注册的route类型包括: 如果需要同时满足多种请求
分类:其他好文   时间:2016-03-13 17:27:17    阅读次数:169
yii框架的调试插件yii-debug-toolbar
1,下载地址https://github.com/malyshev/yii-debug-toolbar.git2,yii框架配置3,更改main.php文件‘log‘=>array( ‘class‘=>‘CLogRouter‘, ‘routes‘=>array( array( ‘class‘=>‘ext.yii-debug-toolbar.YiiDebugToolbarRoute‘, ), //uncommentthe..
分类:其他好文   时间:2016-03-06 01:25:53    阅读次数:225
nodejs实现本地上传图片并预览功能
app.js中代码 app.post('/uploadUserImgPre',routes.users.uploadUserImgPre); routes/users.js下代码 exports.uploadUserImgPre = function(req, res, next) { //生成mu
分类:Web程序   时间:2016-02-25 16:56:40    阅读次数:246
CF 602C The Two Routes(dij+邻接矩阵)
( ̄▽ ̄)" #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; const int ...
分类:其他好文   时间:2016-02-25 13:41:31    阅读次数:196
Asp.net 5 (MVC6) Areas 分区
1. Startup.cs 类的 Configure方法中, 加入Area路由设置代码: //app.UseMvcWithDefaultRoute(); app.UseMvc(routes=> { // add the new route here. routes.MapRoute(name: .....
分类:Web程序   时间:2016-02-24 10:57:31    阅读次数:232
ASP.NET的路由系统:路由映射
总的来说,我们可以通过RouteTable的静态属性Routes得到一个基于应用的全局路由表,通过上面的介绍我们知道这是一个类型的RouteCollection的集合对象,我们可以通过调用它的MapPageRoute进行路由映射,即注册URL模板与某个物理文件的匹配关系。路由注册的核心就是在全局路由
分类:Web程序   时间:2016-02-18 22:43:26    阅读次数:387
带扩展名的路由失效的问题
在设置路由时,发现设置以下路由,系统不能识别 routes.MapRoute( name: "Default1", url: "{controller}/{action}/{id}.html", defaults: new { controller = "Article", action = "De
分类:其他好文   时间:2016-02-16 14:57:28    阅读次数:156
Laravel 路由(一)
参考:http://laravelacademy.org/post/398.html 以下代码在:laravel文件夹/app/Http/routes.php文件中更改填写 1.路由 GET 请求 格式: Route::get('请求页面',function(){ return 返回值; }); 示
分类:其他好文   时间:2016-02-03 00:16:50    阅读次数:382
《ASP.net MVC 4开发指南》 第一天
省略一二章,直接切入第三章。 1、vs2012 后新增一种特殊的注释方式: //TODO 记得以后要处理我哦; 该注释方式,不必多说,很实用。以前本人都是用#warning 来提醒自己,这是种很不友好的方式。 2、关于路由中这句话存在的意义 routes.IgnoreRoute("{resource
分类:Web程序   时间:2016-01-28 20:47:41    阅读次数:141
707条   上一页 1 ... 52 53 54 55 56 ... 71 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!