Yii Framework Forum: Yii中的Gii必须用吗? - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Yii中的Gii必须用吗? yii建站流程 Rate Topic: -----

#1 User is offline   chenyan 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 11
  • Joined: 25-January 13

Posted 28 January 2013 - 08:47 PM

以前用过的框架有tp和ci,这次因为要改一个公司的网站,所以才接触yii,发现这个的资料不是一般的少啊,看了网上的教程,貌似都是从-》安装,-》建立模型,-》创建CURD.这几步,而这些都是依靠gii这个脚手架工具,我看了一下,那个公司原网站的配置文件中main.php就没有gii的配置,我想那个人在建站的时候可能没用到gii吧。我的疑问是这样的:yii是不是可以不用gii?如果可以不用,那自己写代码,MVC模式和tp,ci又有何区别呢?比如文件夹命名方式,我看了一下,就视图文件夹命名来说,貌似和tp没有区别,请大牛解答,小弟不胜感激。
0

#2 User is offline   ft3561572 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 17
  • Joined: 16-January 13

Posted 28 January 2013 - 09:12 PM

自己写完全没问题啊,gii只是为了方便
0

#3 User is offline   hehbhehb 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 50
  • Joined: 24-February 12

Posted 28 January 2013 - 09:15 PM

熟悉Yii之后一般都不用gii; MVC都是大同小异,Yii还集成了一些东西,比如jquery等
0

#4 User is offline   chenyan 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 11
  • Joined: 25-January 13

Posted 28 January 2013 - 09:38 PM

View Postft3561572, on 28 January 2013 - 09:12 PM, said:

自己写完全没问题啊,gii只是为了方便

gii按模块来的话,弄的也只是类似于表单的输入输出吧,因为依据是数据库嘛,我想也只能实现类似于登录,留言板,电话簿之类的简单应用,自己想弄网站的话貌似也用不上,我理解的对吗?
0

#5 User is offline   chenyan 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 11
  • Joined: 25-January 13

Posted 28 January 2013 - 09:40 PM

View Posthehbhehb, on 28 January 2013 - 09:15 PM, said:

熟悉Yii之后一般都不用gii; MVC都是大同小异,Yii还集成了一些东西,比如jquery等

是啊,但是我找的唯一一篇稍好完整的视频教程也是从gii开始的,而且不是那么系统,不像是tp的教程那样,最起码从控制器,模型,视图来的话,不求细,大概说说也好啊,而且翻译成中文的三本书籍立面也不是系统说的,我都不知道从何入手了。。。。
0

#6 User is offline   ft3561572 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 17
  • Joined: 16-January 13

Posted 30 January 2013 - 10:10 PM

官方有中文权威手册啊,还有blog的中文教程,看看就明白了
0

#7 User is offline   DaFei 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 04-February 13

Posted 04 February 2013 - 02:58 AM

工具嘛,尤其是目前疯狂追求效率的时代。
0

#8 User is offline   Larry Li 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 27
  • Joined: 03-March 11

Posted 22 March 2013 - 08:48 AM

应该自己重写 gii。
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users