Ver Mensaje Individual
  #16 (permalink)  
Antiguo 21/06/2011, 11:57
castrovega7
 
Fecha de Ingreso: junio-2011
Mensajes: 51
Antigüedad: 12 años, 10 meses
Puntos: 3
Respuesta: Llamar un view helper desde el layout

Cita:
Iniciado por masterpuppet Ver Mensaje
El problema es que no esta en el path lo que declaraste en el application.ini, podes postear el application.ini y el environment que tenes seteado ?
por supuesto.

application.ini

Cita:
[production]
phpSettings.display_startup_errors = 0
phpSettings.display_errors = 1
phpSettings.date.timezone = "Europe/Madrid"
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.layout.layoutPath = APPLICATION_PATH "/layouts/scripts/"

autoloaderNamespaces[] = "ZendX"

resources.modules[] = ""
buscador.resources.frontController.defaultControll erName = "buscador"


resources.db.adapter = PDO_MYSQL
resources.db.charset = utf8
resources.db.params.host = xxx
resources.db.params.username = xxx
resources.db.params.password = xxx
resources.db.params.dbname = xxx
resources.db.isDefaultTableAdapter= true

resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
resources.view.helperPath.Application_View_Helper = APPLICATION_PATH "/views/helpers"

[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

enviroment:(dentro del fichero index.php)

Código PHP:
Ver original
  1. // Define application environment
  2. defined('APPLICATION_ENV')
  3.     || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));

El environment es el definido por defecto al crear el proyecto, no lo he modificado.