0

module.configこれが私のページの下の私のコードです

'router' => array(
    'routes' => array(
        'album' => array(
            'type'    => 'segment',
            'options' => array(
                'route'    => '/photos[/:action][/:id]',
                'constraints' => array(
                    'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                    'id'     => '[0-9]+',
                ),
                'defaults' => array(
                    'controller' => 'Photos\Controller\Photos',
                    'action'     => 'index',
                ),
            ),
        ),
    ),
),

そして私のコントローラーページで

public function uploadAction()
{

    //die('uploading page');
  $this->layout('layout/index');

    return array();
}

die works fine

私のフロントエンドページのコードは

これは、他のページにリンクしようとしているページです.....

 `<?php echo $this->url('photos',array('action' => 'upload_done')); ?>`

エラーが発生しています

Fatal error: Uncaught exception 'Zend\Mvc\Router\Exception\RuntimeException' with message 'Route with name "photos" not found' in

4

1 に答える 1