ATK4 jobeet 项目
我找到了你关于 jobeet 项目的文档。 我正在逐步测试(最后的 4.1b1 版本),但在第 3 天我出错了,我认为:
模型类别
class Model_Category 扩展 Model_Table { 公共$entity_code='类别'; 公共 $table_alias='c'; //…………
模型工作
class Model_Job 扩展 Model_Table { 公共$entity_code='工作'; 公共 $table_alias='j'; //.......
?
现在,从这里调用generate.html后出现错误
PathFinder_Exception 无法包含 Model\.php 附加信息: 类型:php 尝试位置:数组([0] => D:/xampp/htdocs/atk4jobeet/lib/Model\.php [1] => D:\xampp\htdocs\atk4jobeet\atk4/lib/Model\.php [2 ] => D:/xampp/htdocs/atk4jobeet/atk4-addons/mvc/Model\.php [3] => D:/xampp/htdocs/atk4jobeet/atk4-addons/misc/lib/Model\.php )
这是类page_generate扩展Page_SchemaGenerator中的问题吗? 它正在等待 GET[model] param,但第三天写道:
如果您愿意 Agile Toolkit 为您生成 SQL CREATE 代码,您可以为此设置一个页面。代码生成器作为一个类存在,但您需要启用它才能使用它。添加包含以下内容的文件 page/generate.php:
class page_generate extends Page_SchemaGenerator {}
问题出在哪里?
I found your doc about jobeet project.
I'm testing (last 4.1b1 version) it step by step, but in day 3 I've error, I think:
model Category it'd be
class Model_Category extends Model_Table { public $entity_code='category'; public $table_alias='c'; //...........
model Job it'd be
class Model_Job extends Model_Table { public $entity_code='job'; public $table_alias='j'; //.......
Right?
And now, from here I've error after call generate.html
PathFinder_Exception Unable to include Model\.php Additional information: type: php attempted_locations: Array ( [0] => D:/xampp/htdocs/atk4jobeet/lib/Model\.php [1] => D:\xampp\htdocs\atk4jobeet\atk4/lib/Model\.php [2] => D:/xampp/htdocs/atk4jobeet/atk4-addons/mvc/Model\.php [3] => D:/xampp/htdocs/atk4jobeet/atk4-addons/misc/lib/Model\.php )
Is it problem in class page_generate extends Page_SchemaGenerator?
It waiting for GET[model] param, but day3 write:
If you are willing for Agile Toolkit to generate SQL CREATE code for you, you can set up a page for that. Code generator exists as a class, but you need to enable it in order to use it. Add file page/generate.php with the following content:
class page_generate extends Page_SchemaGenerator {}
Next navigate to http://localhost/jobeet/generate.html in your browser, pick Category model and click Generate button. The schema code will be shown on the right. You can also click "Generate" checkbox and "create" statement will be evaluated by sql automatically. Once you create 'Category' proceed to create 'Job'.
Where problem is?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,实际上我在编写 jobeet 文档时对生成器进行了更改。根据您的情况,您可以将 ?model=Job 添加到 URL 中。否则你可以使用 git 版本。
顺便说一句 - jobeet 存储库中有一个 day3 的分支:
https://github.com/romaninsh/ jobeet/树/day3
Yes, actually i have done changes for the generator while writing jobeet doc. In your case you can add ?model=Job to the URL. Otherwise you can use git version.
BTW - there is a branch for day3 in the jobeet repository:
https://github.com/romaninsh/jobeet/tree/day3