开发者

how to zend zf create partial

I'm creati开发者_如何学Pythonng a partial manually by creating a partials folder in layouts/scripts/partials and then creating the mypartial.phtml. Is there a command to do this quicker, like maybe?

zf create partial

I don't think this exists but is there something similar or anything quicker than this manual way


zf create view is about as close as you get at the moment. zf --help will give you all the commands.

As much as I like code generation tools as time savers, what benefit would you really get here if such a command existed? Creating a partial is as simple as creating a blank file on the file system - Zend Tool can't guess any of the contents. You can always do touch layouts/scripts/partials/something.phtml if you happen to have the terminal window open already.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜