I've added the following to my application.ini
:
[development : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
includePaths.library = APPLICATION_PATH "/../library"
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
autoloadernamespaces[] = "DP_"
This way, within my controller, I can say new DP_Form_Login()
, and it will load the form class from library/DP/Form/Login.php
. Is there a way then, to make it so that my controller class (which I've now called DP_Controller_Login
, and placed in to library/DP/Controller/Login.php
will be called when I access /login
?