V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
no13bus
V2EX  ›  问与答

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

  •  
  •   no13bus · Apr 19, 2014 · 3520 views
    This topic created in 4401 days ago, the information mentioned may be changed or developed.
    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 replies    1970-01-01 08:00:00 +08:00
    haiyang416
        1
    haiyang416  
       Apr 19, 2014   ❤️ 1
    你应该检查以下服务器的 rewrite 设置,这个跟 composer 没有什么关系。
    no13bus
        2
    no13bus  
    OP
       Apr 19, 2014
    @haiyang416 感谢已发
    no13bus
        3
    no13bus  
    OP
       Apr 20, 2014
    @haiyang416 原来slim的文档是你翻译的呀。赞。我也想看看这个短小精悍的php框架源码
    haiyang416
        4
    haiyang416  
       Apr 20, 2014 via Android
    @no13bus 额,那个是之前自己看 slim 的时候做的,但是翻译得很挫,现在没用它也就放那儿没整理了。所以看文档还是直接看英文的,结合源码一会儿就看完了。
    no13bus
        5
    no13bus  
    OP
       Apr 20, 2014
    @haiyang416 只是用过thinkphp,看slim的时候有些不适,尤其是flashNow还有什么next,还有钩子啥的的东东,看完了文档之后还是不太清楚怎么写代码。源码的话是不是需要什么特殊的php用法知识?
    haiyang416
        6
    haiyang416  
       Apr 20, 2014
    @no13bus Slim 源码非常简单,你只要看看就知道,最重要在就三个部分:route、request 以及 response。基本上就是 HTTP 协议的抽象,至于 hooks,middleware之类的,看懂流程就很清楚了。
    no13bus
        7
    no13bus  
    OP
       Apr 20, 2014
    no13bus
        8
    no13bus  
    OP
       Apr 20, 2014
    @haiyang416 你现在还用slim吗?还是说用那个流行的laravel了?
    haiyang416
        9
    haiyang416  
       Apr 20, 2014
    @no13bus 额,Laravel 我是在用 SLIM 之前用的,那时候也看了它的源码,但是在 laravel 4 的源码放出来之后就换到 slim 了。那时候也翻译过 laravel 3 的文档.......不过非常不喜欢 laravel 4的各种语法糖包装就没用了。
    这里指的的是个人项目的框架切换,其他的情况不在内。
    现在嘛正在在研究 symfony2 的源码。如果你看过 laravel 的源码,就可以知道,它直接使用了 symfony 的 HTTP 组件。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4077 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 10:21 · PVG 18:21 · LAX 03:21 · JFK 06:21
    ♥ Do have faith in what you're doing.