module.config.phpнастраиваем роитинг, например:
'console' => [ 'router' => [ 'routes' => [ 'some-action' => [ 'options' => [ 'route' => 'app controllerName actionName', 'defaults' => [ 'controller' => SomeController::class, 'action' => 'actionName' ] ] ] ], ], ],
* * * * * /usr/bin/php /var/www/public/index.php app controllerName actionName >/dev/null 2>&1
most tutorials are at least 4 years old
I am trying to get the Request in my Controller.
It's a simple matter of $this->getRequest() but this only leaves me with something behind the interface of Zend\Stdlib\RequestInterface. it only has two properties Content and Metadata.. I wanted the HttpRequest
then i run it thorugh the debugger and let it stop.. now the IDE displays the request object as type Zend\Http\PhpEnvironment\Request and gives me everything i want
all with autocomplete in the IDE and everything, but when I let the debuggergo it changes the type back to the interface
Also my IDE doesn't display the docs(ctrl+q) correctly.. did I configure incorrectly or is this just.. the way of php? So I don't have any type information until runtime??
i have php application which is using zend framework and mysql db,now my requirement is to convert the database into postgresql,is it possible to do that?,i tried setting following into application.ini file but its not working,can anyone suggest some solution regarding this?
resources.db.adapter = pdo_pgsql
resources.db.params.host = 'localhost'
resources.db.params.username = 'postgres'
resources.db.params.password = 'postgres'
resources.db.params.dbname = 'sentrifugo'
resources.db.isDefaultTableAdapter = true