V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
no13bus
V2EX  ›  问与答

slim 和 laravel 框架的时候 我直接下载的框架 没有用 composer,结果打开网址的时候总是出现 Internal Server Error 错误

  •  
  •   no13bus · 2014-04-19 13:04:43 +08:00 · 3095 次点击
    这是一个创建于 3666 天前的主题,其中的信息可能已经有所发展或是发生改变。
    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    就是这个错误。
    9 条回复    1970-01-01 08:00:00 +08:00
    haiyang416
        1
    haiyang416  
       2014-04-19 13:29:08 +08:00   ❤️ 1
    你应该检查以下服务器的 rewrite 设置,这个跟 composer 没有什么关系。
    no13bus
        2
    no13bus  
    OP
       2014-04-19 13:39:39 +08:00
    @haiyang416 感谢已发
    no13bus
        3
    no13bus  
    OP
       2014-04-20 13:25:47 +08:00
    @haiyang416 原来slim的文档是你翻译的呀。赞。我也想看看这个短小精悍的php框架源码
    haiyang416
        4
    haiyang416  
       2014-04-20 13:33:44 +08:00 via Android
    @no13bus 额,那个是之前自己看 slim 的时候做的,但是翻译得很挫,现在没用它也就放那儿没整理了。所以看文档还是直接看英文的,结合源码一会儿就看完了。
    no13bus
        5
    no13bus  
    OP
       2014-04-20 16:09:05 +08:00
    @haiyang416 只是用过thinkphp,看slim的时候有些不适,尤其是flashNow还有什么next,还有钩子啥的的东东,看完了文档之后还是不太清楚怎么写代码。源码的话是不是需要什么特殊的php用法知识?
    haiyang416
        6
    haiyang416  
       2014-04-20 18:27:50 +08:00
    @no13bus Slim 源码非常简单,你只要看看就知道,最重要在就三个部分:route、request 以及 response。基本上就是 HTTP 协议的抽象,至于 hooks,middleware之类的,看懂流程就很清楚了。
    no13bus
        7
    no13bus  
    OP
       2014-04-20 19:02:46 +08:00
    no13bus
        8
    no13bus  
    OP
       2014-04-20 19:03:12 +08:00
    @haiyang416 你现在还用slim吗?还是说用那个流行的laravel了?
    haiyang416
        9
    haiyang416  
       2014-04-20 19:12:40 +08:00
    @no13bus 额,Laravel 我是在用 SLIM 之前用的,那时候也看了它的源码,但是在 laravel 4 的源码放出来之后就换到 slim 了。那时候也翻译过 laravel 3 的文档.......不过非常不喜欢 laravel 4的各种语法糖包装就没用了。
    这里指的的是个人项目的框架切换,其他的情况不在内。
    现在嘛正在在研究 symfony2 的源码。如果你看过 laravel 的源码,就可以知道,它直接使用了 symfony 的 HTTP 组件。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2230 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 03:45 · PVG 11:45 · LAX 20:45 · JFK 23:45
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.