Bonjour je suis entrain de faire le tuto : Débuter avec Zend Framework 1.10 (approche MVC)
et j'ai une erreur
layout.phtml
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3 An error occurred Application error
dès que je retire cette ligne je n'ai plus le message mais je n'ai pas ma vue qui s'affiche.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 <?php $this->headMeta()->appendHttpEquiv('Content-Type', 'text/html;charset=utf-8'); $this->headTitle()->setSeparator(' - '); $this->headTitle('Tutoriel Zend Framework'); echo $this->doctype(); ?> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"> <head> <?php echo $this->headMeta(); ?> <?php echo $this->headTitle(); ?> <?php echo $this->headLink()->prependStylesheet($this->baseUrl().'/css/site.css'); ?> </head> <body> <div id="content"> <h1><?php echo $this->escape($this->title); ?></h1> <?php echo $this->layout()->content; ?> </div> </body> </html>
application.ini
je ne sais pas pourquoi si vous avez une idée merci
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30 [production] phpSettings.display_startup_errors = 0 phpSettings.display_errors = 0 includePaths.library = APPLICATION_PATH "/../library" bootstrap.path = APPLICATION_PATH "/Bootstrap.php" bootstrap.class = "Bootstrap" appnamespace = "Application" resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers" resources.frontController.params.displayExceptions = 0 phpSettings.date.timezone = "Europe/Paris" ressources.db.adapter = PDO_MYSQL ressources.db.host = localhost ressources.db.username = root ressources.db.password = root ressources.db.params.dbname = tuto resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts/" resources.view.doctype = "XHTML1_STRICT" [staging : production] [testing : production] phpSettings.display_startup_errors = 1 phpSettings.display_errors = 1 [development : production] phpSettings.display_startup_errors = 1 phpSettings.display_errors = 1 resources.frontController.params.displayExceptions = 1
Partager