IndexController sınıfta indexAction yöntemi ile bir sorun

0 Cevap php

Zend Framework v1.11.0.I kullanarak im benim IndexController.php aşağıdaki kodu var.

<?php
 class IndexController extends Zend_Controller_Action
 {
  public function indexAction()
  {
   echo 'Web site home';
  }

 }
?>

Ama, ben giderseniz: http://projectname i boş bir sayfa olsun ve ben gidersem: http://projectname/index i Hata 404 olsun.

I kelime init tarafından indexAction sözcüğü değiştirmek ve sonra gidin Ancak, eğer: http://projectname i 'Web sitesi ev' yankılandı olsun.

Bu nasıl tespit edilebilir?

Teşekkür ederiz.

0 Cevap