You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
namespace Application\Controller;
I have the code below, and i received a 404 error...
use Zend\Mvc\Controller\AbstractActionController;
use Zend\View\Model\ViewModel;
use SpiffyRoutes\Annotation as Route;
class IndexController extends AbstractActionController
{
public function indexAction()
{
return new ViewModel();
}
/**
* @route\Literal("/second",name="second")
*/
public function secondAction()
{
return new ViewModel();
}
}
The text was updated successfully, but these errors were encountered:
namespace Application\Controller;
I have the code below, and i received a 404 error...
use Zend\Mvc\Controller\AbstractActionController;
use Zend\View\Model\ViewModel;
use SpiffyRoutes\Annotation as Route;
class IndexController extends AbstractActionController
{
public function indexAction()
{
return new ViewModel();
}
/**
* @route\Literal("/second",name="second")
*/
public function secondAction()
{
return new ViewModel();
}
}
The text was updated successfully, but these errors were encountered: