PHP code example of zenify / modular-presenter-mapping
1. Go to this page and download the library: Download zenify/modular-presenter-mapping 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/ */
zenify / modular-presenter-mapping example snippets
use Zenify\ModularPresenterMapping\Contract\Application\PresenterMappingProviderInterface;
final class MyExtensionPresenterMapping implements PresenterMappingProviderInterface
{
/**
* {@inheritdoc}
*/
public function provide()
{
return [
// module => it's namespace, "*" is for presenter name
'PayPal' => 'My\Package\Presenter\*Presenter'
];
}
}
$this->redirect('PayPal:Payment');