Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 15670 | Rev 15674 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

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