Ben Zend uygulama dönüştürmek istediğiniz bir uygulama var. Ben Zend sonraki görevleri yaparak devam etmek zorunda ama onlar çalışıyor gibi önceki sayfalar çalışmalıdır. Php proje mevcut çok basit bir dizin yapısı ile basit bir php proje ve tüm dosyaları tek bir klasörde bulunmaktadır.
Ben ayrı bir zend proje (test) oluşturulacak ve kamu klasöründe varolan tüm proje dosyaları koydum. I test/public klasörüne işaret yerel ana ayarlandığında kullanım test.dev. Ben tarayıcıda test.dev kullandığınızda sonra index.php, mevcut projenin denir ve mevcut projenin başlangıç sayfası gösterilir. Şimdi bir denetleyicisi (kişi) ve eylem (indeks) oluşturuldu. Ben kullandığınızda şimdi test.dev/person/index sonra mevcut proje içeriği ilk ve daha sonra sayfanın sonunda person/index (denetleyicisi / eylem) içerik gösterilir gösterilmiştir.
Url denetleyici ve eylem o zaman sadece zend proje dosyaları içeriği göstermeli ve url bir dosya olduğunda, o zaman sadece bu dosyayı göstermelidir varsa ben istiyorum.
benim test/public/index.php dosya şu anda bu gibi.
<html>
<head>
</head>
<body>
This is existing project's index content.
</body>
</html>
<?php
// Define path to application directory
defined('APPLICATION_PATH')
|| define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));
// Define application environment
defined('APPLICATION_ENV')
|| define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));
// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(
realpath(APPLICATION_PATH . '/../library'),
get_include_path(),
)));
// Determine the protocol to use (http or https).
if (APPLICATION_ENV == 'production') {
define('HTTP_PROT', 'https://');
} else {
define('HTTP_PROT', 'http://');
}
/** Zend_Application */
require_once 'Zend/Application.php';
// Create application, bootstrap, and run
$application = new Zend_Application(
APPLICATION_ENV,
APPLICATION_PATH . '/configs/application.ini'
);
$application->bootstrap()
->run();
?>