For proper CakePHP conventions, how would I go about storing pieces of a script file that I would put together in execution?
===

I'm working on a little project in which CakePHP will be outputting script which will be interpreted by another client.

Thus far I have a layout setup which properly displays the script and only the script.  I simply set it into an array, which each new line as a new row in the array.  The view then just rolls through a foreach to display them, no problem.  This is working perfectly.

Now what I would like to do is have cake slice and dice different pre-made script portions together.  Basically I would store 'methods' as individual files of some kind, which can then be called by cakephp as needed and put together to make a single script.

What I'm wondering is:  
a.  If I'm following the cake conventions, where and how should these text files be stored?  
b.  What's the easiest way to call these files and set them into an array?

Thanks so much!