PHP code example of heimrichhannot / contao-member_plus

1. Go to this page and download the library: Download heimrichhannot/contao-member_plus library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

heimrichhannot / contao-member_plus example snippets


// config.php
$GLOBALS['TL_HOOKS']['modifyDCRegistrationPlusForm'][] = array('MyClass', 'modifyDCRegistrationPlusFormHook');


// MyClass.php

public function modifyDCRegistrationPlusFormHook(&$arrDca, \Model $objModule)
{
	// manipulate the datacontainer and add fields, change labels and more
	$arrDca['fields']['firstname']['eval']['placeholder'] = &$GLOBALS['TL_LANG']['tl_member']['myCustomFirstnamePlaceholder'];
}