component in cakephp 2.0.5

Discussion in 'PHP' started by techimtiyaz, Jan 19, 2012.

  1. #1
    Hi everyone,
    I am using cakephp 2.0.5. Can you please tell me how to create custom component in it, so that i can use it in multiple controller.
     
    techimtiyaz, Jan 19, 2012 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    28,899
    Likes Received:
    4,555
    Best Answers:
    123
    Trophy Points:
    665
    #2
    If you look in the help files you will find the template for a basic component - copy that and add to it. Then add your component's name to the list of active components in your controller.

    If you are nervous about getting started, then start with something simple like echo'ing "hello world"
     
    sarahk, Jan 19, 2012 IP