Hola, logre que funcionara y si a alguien le sirve es importante:
1. Ver que todas tus librerias estan subidas correctamentamente al servidor y en la ruta correcta, en mi caso /carpeta/carpetaproyecto/librery/Zend
2. Si tu
proyecto esta dentro un subdirectorio y no en la carpeta root a mi me funciono:
En mi bootstrap.php
Código:
protected function _initBaseUrl()
{ $this->bootstrap('view');
$view = $this->getResource('view');
$view->getHelper('BaseUrl')->setBaseUrl('/carpeta/carpetaproyecto/public');
}
En mi layout llame asi:
Código:
<?= $this->headlink()->prependStylesheet($this->baseUrl('/src/css/estilo.css'));?>
<?= $this->headScript()->prependFile($this->baseUrl('/src/jquery.js'));?>
<a href=" <?= $this->baseUrl('/modulo/controlador/action')?>">
En mis controladores:
Código:
public function init()
{ $this->initView();
$this->view->baseUrl = $this->_request->getBaseUrl();
}
En sus vistas:
Código:
<a href="<?= $this->baseUrl('/modulo/controlador/action')?>">
En ajax no tuve problemas esto llamaba a la url completa:
Código:
$.ajax({
type: "POST",
url: "<?=$this->url(array('controller'=>'controlador','action' => 'action'));?>",
data: "id="+id,
success: function() {}
});
Y tuve que agregar date.timezone en application.ini porque el servidor me mandaba este error:
Strict Standards: strtotime() [<a href='function.strtotime'>function.strtotime</a>]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting solo agregue esto:
Código:
phpSettings.date.timezone = "zonahoraria"
Hasta el momento esta funcionando... muchas gracias!!!