login  Naam:   Wachtwoord: 
Registreer je!
 Forum

[ZF] Modules werken niet (Opgelost)

Offline Oneday - 10/03/2011 22:36
Avatar van OnedayNieuw lid Hey iedereen ik heb modules geactiveerd bij zend framework, m'n application.ini ziet er als volgt uit:

  1. [production]
  2. phpSettings.display_startup_errors = 0
  3. phpSettings.display_errors = 0
  4. includePaths.library = APPLICATION_PATH "/../library"
  5. resources.view[] =
  6. bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
  7. bootstrap.class = "Bootstrap"
  8. appnamespace = "Application"
  9. resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
  10. resources.frontController.params.displayExceptions = 0
  11.  
  12. resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts/"
  13. resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
  14. resources.frontController.defaultControllerName = "index"
  15. resources.frontController.defaultAction = "index"
  16. resources.frontController.defaultModule = "index"


Wanneer ik naar de basislink van de site ga verwijst hij naar de index pagina, zoals ingestelt bij de defaultmodule.

Maar wanneer ik dan bijvoorbeeld /anderemodule/ achter de link plaats krijg ik een error dat de pagina niet bestaat, hoewel dat wel zo is.

Waaraan kan dit liggen?

~Oneday

2 antwoorden

Gesponsorde links
Offline avdg - 10/03/2011 23:05
Avatar van avdg PHP gevorderde Als ik jouw post leest, dan denk ik dat je alsof doet dat het formaat controller/action/module is. Het url formaat is echter module/controller/action en kan normaal ook gebruikt worden in vorm van controller/action of /action. In die gevallen neemt zf de standaard module en/of controller.
Offline lemoinet - 10/03/2011 23:57
Avatar van lemoinet PHP gevorderde je bent dit in je application.ini vergeten:

  1. resources.modules[] =
Gesponsorde links
Je moet ingelogd zijn om een reactie te kunnen posten.
Actieve forumberichten
© 2002-2024 Sitemasters.be - Regels - Laadtijd: 0.204s