现在,你已经有一个可以工作的模型了,接下来我们会创建一个基本应用,刚开始很简单,我们会慢慢地往里面加一些方法,如:浏览、阅读、编辑、添加及删除。
切换至命令行环境,进入SYSTEM目录,输入make-app 命令来创建基本的应用类及相关的目录。
$ ./script/solar make-app Acme_App_Blog Making app. Creating app directory. Creating app Layout directory. Creating app Locale directory. Creating app Public directory. Creating app View directory. App class 'Acme_App_Blog' extends 'Acme_Controller_Page'. Preparing to write to 'SYSTEM/include/'. Writing app class. Writing locale file. Making public symlinks for 'Acme_App_Blog' ... Making public directory docroot/public/Acme/App ... done. Making public symlink for Acme_App_Blog ... done. ... done. Done. $
现在,你可以通过浏览http://localhost/index.php/blog来查看你刚才建的那个应用了。