寻找 PHP 的 Kohana 初学者教程
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/394175/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Searching for a Kohana Beginner's Tutorial for PHP
提问by Andreas Grech
I am going to try to build a PHP website using a framework for the first time, and after some research here and there, I've decided to try to use Kohana
我打算第一次尝试使用框架构建一个 PHP 网站,经过这里和那里的一些研究,我决定尝试使用Kohana
I downloaded the source from their website, and ran the downloaded stuff on my web server, and was then greeted with a 'Welcome to Kohana!' page, and nothing more...
我从他们的网站下载了源代码,并在我的网络服务器上运行下载的内容,然后收到了“欢迎来到 Kohana!”的问候。页面,仅此而已...
I've tried to find some beginner tutorials on the web as regard this particular framework, but to my surprise, came up with almost nothing (only this one, but it's not a great deal of help)
我试图在网上找到一些关于这个特定框架的初学者教程,但令我惊讶的是,几乎什么都没有(只有这个,但它没有多大帮助)
I am not new to PHP and neither am I new to the MVC concept, but I am very new to PHP Frameworks...so can anyone point me to a Kohana tutorial somewhere on the web that will help me get started in building my website using this framework, from scratch ?
我对 PHP 并不陌生,对 MVC 概念也不陌生,但我对 PHP 框架非常陌生......所以任何人都可以指点我在网络上某处的 Kohana 教程,这将帮助我开始构建我的网站从头开始使用这个框架?
P.S. As I said, I want a beginnerstutorial as regarding this case.
PS 正如我所说,我想要一个关于这种情况的初学者教程。
[UPDATE]
[更新]
I am currently reading the Official Guide...we'll see how that goes.
我目前正在阅读官方指南……我们会看看情况如何。
采纳答案by Andreas Grech
The "Kohana Tutorial" pages are pants. Not so much for their content, but for the fact that they have a pretty damn unorganised wordpress blog and finding useful info isn't exactly made easy. What they need is a post/page at http://learn.kohanaphp.comthat lists the most important tutorials, rather than forcing you to wade through the whole blog.
“Kohana 教程”页面是裤子。不是因为他们的内容,而是因为他们有一个非常该死的无组织的 wordpress 博客,并且找到有用的信息并不容易。他们需要的是http://learn.kohanaphp.com上的一个帖子/页面,其中列出了最重要的教程,而不是强迫您浏览整个博客。
Anyway, rant over, I'd start here:
无论如何,咆哮结束,我会从这里开始:
http://zacklive.com/hello-world-tutorial-for-kohana/15/
http://zacklive.com/hello-world-tutorial-for-kohana/15/
Then:
然后:
http://learn.kohanaphp.com/2008/03/26/blog-tutorial-1/
http://learn.kohanaphp.com/2008/03/26/blog-tutorial-1/
http://learn.kohanaphp.com/2008/03/28/blog-tutorial-part-2/
http://learn.kohanaphp.com/2008/03/28/blog-tutorial-part-2/
Other articles of interest:
其他感兴趣的文章:
http://www.ninjapenguin.co.uk/blog/2008/06/21/kohana-pagination-tutorial/
http://www.ninjapenguin.co.uk/blog/2008/06/21/kohana-pagination-tutorial/
http://learn.kohanaphp.com/2008/04/25/using-auto_modeler-to-write-quicker-code/
http://learn.kohanaphp.com/2008/04/25/using-auto_modeler-to-write-quicker-code/
http://www.ninjapenguin.co.uk/blog/2008/06/29/practical-kohana-hooks-example-phpids/
http://www.ninjapenguin.co.uk/blog/2008/06/29/practical-kohana-hooks-example-phpids/
http://learn.kohanaphp.com/2008/04/14/5-tips-to-help-you-find-something-youre-looking-for-in-kohana/
http://learn.kohanaphp.com/2008/04/14/5-tips-to-help-you-find-something-youre-looking-for-in-kohana/
And, of course, Google.
当然,还有谷歌。
回答by Andreas Grech
I had exactly the same problem! After a few searches I found the Kohaha101.pdf. This guide/tutorial really got me started!
我遇到了完全相同的问题!经过几次搜索,我找到了 Kohaha101.pdf。本指南/教程真的让我开始了!
Link:[http://pixelpeter.com/kohana/kohana101.pdf1
链接:[ http://pixelpeter.com/kohana/kohana101.pdf 1
Good luck and enjoy Kohana!
祝你好运,享受 Kohana!
回答by Barry
回答by Barry
Learning Kohana is a pain. There is some information out there but it's all over the place and Google is your best ally. The support forums are pretty good but it's very much a framework for PHP geeks. It addresses all of the fundamental flaws of PHP and provides a clean MVC design pattern but nothing more.
学习 Kohana 是一种痛苦。那里有一些信息,但到处都是,谷歌是你最好的盟友。支持论坛非常好,但它非常适合 PHP 极客的框架。它解决了 PHP 的所有基本缺陷,并提供了一个干净的 MVC 设计模式,仅此而已。
The advantage of such a minimal approach is that it's lean and lightning fast. When things don't work you will find the need to go through the libraries as sometimes it's easier to understand what methods/properties are available or how they work by looking through the underlying code. It would be nice for somebody to donate some money and for the team to pump it into proper documentation as it's the achilles heel of the whole project.
这种最小方法的优点是它的精简和闪电般的速度。当事情不起作用时,您会发现需要浏览库,因为有时通过查看底层代码更容易理解哪些方法/属性可用或它们如何工作。有人捐赠一些钱并且团队将其注入适当的文档会很好,因为这是整个项目的阿喀琉斯之踵。
回答by alex
Kohana Primeris pretty good.
Kohana Primer非常好。
回答by Riho
Here is one link: Kohana TutorialBut anyway - just enter word: Kohana tutorial into Google and your question is answered.
这是一个链接:Kohana 教程但是无论如何 - 只需在 Google 中输入单词:Kohana 教程,您的问题就会得到解答。
回答by petsagouris
Just wanted to tell everyone that the Kohana 101 has been transfered to the wiki and it is (and will be) up to date with the current stable versions of the Kohana framework.
只是想告诉大家,Kohana 101 已经转移到 wiki 并且它是(并且将会)与 Kohana 框架的当前稳定版本保持同步。
回答by Olical
Just adding on to the list! I wrote one a little while back: http://flowdev.tumblr.com/post/1351061705/kohana-tutorial
只是添加到列表中!我不久前写了一个:http: //flowdev.tumblr.com/post/1351061705/kohana-tutorial
Most of my blog posts are about Kohana.
我的大部分博客文章都是关于 Kohana 的。
回答by Volomike
I agree. I guess since the transition from 2.x to 3.x, the docs need to be improved. Anyway, I weeded through the basics and brought up a blog article about how to get started fast:
我同意。我想自从从 2.x 过渡到 3.x,文档需要改进。无论如何,我梳理了基础知识,并提出了一篇关于如何快速入门的博客文章:
http://voloreport.com/learn-kohana-mvc-php-in-under-an-hour1
http://voloreport.com/learn-kohana-mvc-php-in-under-an-hour1
The first part that I wrote starts with a discussion about what MVC is, and why Kohana. In Part 2, I go on to explain how to install and use Kohana.
我写的第一部分首先讨论什么是 MVC,以及为什么是 Kohana。在第 2 部分中,我继续解释如何安装和使用 Kohana。
回答by Rohjay
Most recent now is 3.1 - took a little toolin' through the website, but I found this - hope it helps someone:
最近的版本是 3.1 - 通过网站获取了一些工具,但我发现了这个 - 希望它可以帮助某人:
http://kohanaframework.org/3.1/guide/kohana/
http://kohanaframework.org/3.1/guide/kohana/
And more specifically for tutorials:
http://kohanaframework.org/3.1/guide/kohana/tutorials
更具体的教程:http:
//kohanaframework.org/3.1/guide/kohana/tutorials

