Akelos Readme Txt Nix

如果你想迅速的开始akelos,请先读一下README.txt,然后检查一下源码。第一步是在*nix系统下实施的:

(1) 用/usr/bin/env php -v检查一下'env php'是否为你工作了。如果没有看到结果,你可以通过php -v (e.g. PHP 5.1.2 (cli) (built: Sep 6 2006 22:04:21)…)获得期望的结果。如果这样的话,你将不得不在script/console, script/generate, script/migrate, script/setup and script/test的第一行重新定制你的PHP路径。

(2)建立你的项目(最起码使得public文件夹在你的docroot的目的路径之内)。

  ./script/setup /your/project/destination/path

(3)确保,你的项目的目录对于webserver user来说是可写的。(这点是非常重要的,不然开始的时候你会遇到很多麻烦)例如可以用以下方式:

   chgrp www-data /your/project/destination/path -R && chmod g+w /your/project/destination/path -R。

(4)点击你的浏览器,URL指向目的路径。并且配置Akelos或者用这种方式:

  cp config/DEFAULT-config.php config/config.php
  然后根据你的需要来编辑它。 

(5)生成几个models,controllers和tables,让我们开始吧。

  ./script/generate model Article
  ./script/generate scaffold Blog
  (你也许需要追加force=true 去覆盖已经存在的scaffold.css)
  ./script/generate model Article force=true。
 
gettingstarted_cn1.txt · Last modified: 2008/07/01 08:43 by liyh
 

The Akelos Framework was created by Bermi Ferrer and other contributors.
Potions of the code and documentation have been ported from Ruby on Rails.

The Akelos Framework is released under the LGPL license.

"Akelos", "Akelos Framework", and the Akelos logo are trademarks of Bermi Labs All rights reserved.

Wiki driven by DokuWiki