[TYPO3-dev] My first (for me) advanced extension

Mads Brunn mads at typoconsult.dk
Fri Mar 17 12:30:57 CET 2006



Brian Bendtsen wrote:
 >
 > - Do I place this function in the class_myextension_pi1.php file or
 > do I have to create another?


You don't have to put it in class.myextension_pi1.php but that would be 
the most obvious thing to do (not sure I understand this question).


 > - Where do I place the form? Above file or my html template file?


For a start you can just implement it in the php-code but as you move 
forward you should take the time to look at how other plugins (e.g. the 
tt_news plugin) is using html-templates. Especially if you want to 
publish this extension in the TER.


 > - How do I only display the accept_button when a user is logged in?

<pseudocode>

if($GLOBALS['TSFE']->loginUser){
	execute code when a user is loggged in
} else {
	execute code when a is NOT logged in
}

</pseudocode>



Hope this was helpfull.

Best regards

Mads Brunn




More information about the TYPO3-dev mailing list