php - Invalid arguments for console cron route in Zend Framework 2 -


I am trying to create a cron app in my zf2 project but always gave me the following message:

Failure reason: Invalid argument or no argument provided

My code is:

module.config.php

  'controller' = & gt; Array ('Synchronization controller \ cron' = & gt; 'Synchronization controller \ console' = & gt; array ('route' => array ('path' = & gt; array ('user reset-password' = & Array ('option' = & gt; array ('path' => User reset password [- ('Controller' => Synchronization controller 'index', 'action' = & gt; 'password' );), 'Cron' = 'array (' option '=> array (' path '=> cron [full | center]' ',' error '=> array (' controller '=' & Gt; Synchronization  

CronController.php

  > Class CronController extstra CtActionController  

{

  public function full action () {$ request = $ this-> getRequest (); if (! The public function center action () {}   ("Hi");} return request " / Pre> 

}

given a match php binary Is in the path that you You can call from the Applications folder:

php public / index.php cron complete

or simply

Php public / index.php cron (from the root default for full action)


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -