0
我已经设法使用YII和GII创建了几个表单,但我会说实话,我不完全理解它。如果任何人都可以向我解释这一点,我会很感激。如何使用GII(通过YII)生成视图后访问视图?
基本上,我在这里创建存取的创造者:
index.php/gii/form
我后,填充:
Model Class: Product
View Name: createProduct
View Path: application.views (default)
Scenario: createProduct
当我生成的代码,我结束了一个名为“createProduct.php文件“位于:
protected\views\createProduct.php
- 如何访问这个观点?我想这样的事情应该工作:http://mysite.com/createProduct(但事实并非如此)
- 我该怎么做,如果我想改变的链接是:http://mysite.com/admin/products/createProduct
任何帮助将不胜感激!
你指出我在正确的方向,但底线是,我不得不阅读更多的东西让它对我有意义。现在我懂了。谢谢。 – coderama