开发者

question about component-based frameworks

开发者 https://www.devze.com 2022-12-19 08:44 出处:网络
i read about that with component-based frameworks, like yii, you could reuse every component for you next project.

i read about that with component-based frameworks, like yii, you could reuse every component for you next project.

could someone give a real-life example of components (i hear this word all the time, but don't know what they ex开发者_开发百科actly refer to) and how i could reuse them for my next project?

are codeigniter and kohana component based frameworks?


Kohana, Yii, and CodeIgniter are all OO frameworks. They let you easily extend what is provided with your own functionality.

If you were making a website about books, for example, you could create a Book object that encapsulated whatever functions and properties you need to describe and manipulate books.

Later, when you do another website that involves books, you can simply re-use the Book object created for the first site.

0

精彩评论

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

关注公众号