Yii Framework Forum: Component usage - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

Component usage Rate Topic: -----

#1 User is offline   Raoul 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 645
  • Joined: 29-November 08
  • Location:Paris, France

Posted 30 November 2008 - 12:46 PM

hi,
I'm evaluating the yii framework and I must say that I like it. Based on samples, I try to use Filters, Action, Widgets etc ... My problem is that I'm not used to the 'component' concept (I was using CI, and no component were available) and unfortunatly, I'm sure how to start writing my own component, and what would be its best usage.
For instance, let's say I want to develop a very basic blog system. Would it be appropriate to write a component that would retrieve a post list depending on a category/sub category, visitor group, etc ... ?
Is there a sample code I could use for a start ?
Thanks for your help
8)

0

#2 User is offline   qiang 

  • Yii Project Lead
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,895
  • Joined: 04-October 08
  • Location:DC, USA

Posted 30 November 2008 - 01:44 PM

Welcome aboard!

A component is a self-contained software unit that can be as simple as a class, or as complex as a sub-application.

I suggest you read this tutorial section first:
http://www.yiiframew...ension.overview

For an example of a login portlet, take a look at: http://www.yiiframew...xtension/login/
0

#3 User is offline   Raoul 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 645
  • Joined: 29-November 08
  • Location:Paris, France

Posted 30 November 2008 - 02:05 PM

oh sorry, I skipped the extension chapter, I thought it was related to another type of "feature"... now everything is clear like pure water  ;)
Thanks for your help qiang, and for replying so fast  ;D
I'll continue my exploration of this great framework ...
cya
8)
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

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