No consigo mostrar datos del controlador al modelo
os dejo el controlador el modelo y el application.ini
Controlador
<?php
class IndexController extends Zend_Controller_Action
{
public function indexAction()
{
//bbddç
$dato= new Application_Model_datos();
$x = $dato->test();
$this->view->titulo = $x;
$this->render('new');
}
}
modelo
<?php
class Application_Model_datos
{
public function test(){
return ('yay');
}
}
?>
application.ini
[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
resources.modules[] = "admin"
[staging : production]
[testing : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
[development : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
alguna solución? gracias