Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 15673 | Ir a la última revisión | | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
15670 anderson 1
<?php
2
 
3
declare(strict_types=1);
4
 
5
namespace LeadersLinked\Controller;
6
 
7
use Laminas\Mvc\Controller\AbstractActionController;
8
use Laminas\View\Model\ViewModel;
9
 
10
// Create an action controller.
11
class DiscoveryContactProgressController extends AbstractActionController
12
{
13
    // Define an action "world".
14
    public function indexAction()
15
    {
16
        // Get "message" from the query parameters.
17
        // In production code, it's a good idea to sanitize user input.
18
        $message = $this->params()->fromQuery('message', 'hello');
19
 
20
        // Pass variables to the view.
21
        return new ViewModel(['message' => $message]);
22
    }
23
}