Yii Framework Forum: where to put own helper class? - Yii Framework Forum

Jump to content

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

where to put own helper class? Rate Topic: -----

#1 User is offline   augustin 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 45
  • Joined: 07-April 10

Posted 29 April 2010 - 04:51 AM

where is the best place to put own helper class? in protected/extensions or elsewhere?
0

#2 User is offline   Junior - df9 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 416
  • Joined: 24-May 09
  • Location:Brazil

Posted 29 April 2010 - 05:15 AM

View Postaugustin, on 29 April 2010 - 04:51 AM, said:

where is the best place to put own helper class? in protected/extensions or elsewhere?


I think that this is a personal decision and depends on the projects requirements and structure. I usually put helper class files under protected/helpers

so you'd import app.helpers.<your_class_name>

hope it helps

:)

regards!
______________________________________
Junior
df9.com.br
Linux Registered User #364954
GNU/Linux: together we're ready!
0

#3 User is offline   augustin 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 45
  • Joined: 07-April 10

Posted 29 April 2010 - 05:49 AM

thanks
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