[TYPO3] extension development.

Leo Barrientos C. lbarrientos at opensistemas.com
Tue Mar 13 14:27:53 CET 2007


Yes, i have been "Encapsulating" the functions created with extension
Kickstart in to a MVC  (Model - View - Controller) on an extension
called "opensistemas_casestudies".    It would be great that Kickstarter
can create a more "MVC style" files. I would like to help to do that!.




Hi Bernd, all

thanks for your reply.
I have tried Kickstarter a number of times, and mostly it works
wonderfully. Thanks for your advise.

Still, I am still puzzled on how much php code Kickstarter is supposed
to write by itself. 

Consider the function getFieldContent. Most often I have got just the
following definition (which by itself is not enough to get a working
extension):

-------------------------------------
function   getFieldContent($fN) {
                switch($fN) {
                        case 'uid':
return $this->pi_list_linkSingle($this->internal['currentRow'][$fN],
$this->internal['currentRow']['uid'],1);        // ...
                        break;
                        default:
        return $this->internal['currentRow'][$fN];
                        break;}}
------------------------------------

Once I got the extra case (My_field_name being a RTE textarea) too,
which however it do not understand how to reproduce 
                                
---------------------------------------
                case "My_field_name":
return
$this->pi_RTEcssText($this->internal['currentRow']['My_field_name']);
                        break;
---------------------------------------

So the question is: how do I exactly control which code Kickstarter is
going to produce by default?

Thanks for any further help.
ps is anybody working to improve kickstarter even more?
mario

-- 
---------------------------------------
Leo Barrientos C.
Ing. Software
http://leobarrientosc.blogspot.com
http://moe.opensistemas.com/projects/opensistemas_typo3/
+34 651675178
Madrid, España.
---------------------------------------



More information about the TYPO3-english mailing list