Reputation: 79786
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 exactly refer to) and how i could reuse them for my next project?
are codeigniter and kohana component based frameworks?
Upvotes: 1
Views: 259
Reputation: 1156
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.
Upvotes: 1