php - Fatal error: Class 'Zend_Locale' not found -
i'm developing web app zend framework 2.
i want achieve urls current locale automatically built-in, i.e. /locale/controller/action/etc. wrote this:
<?php $locale = new zend_locale(); ?> <ul class="nav"> <li> <a href="/<?php echo $locale->getlanguage(); ?>/devices">devices</a> <ul> <li> <a href="/devices/add"><img src="img/navbar/add.png" alt="+"> add</a> </li> </ul> </li> <li> <a href="/<?php echo $locale->getlanguage(); ?>/favorites">favorites</a> <ul> <li> <a href="/favorites/add"><img src="img/navbar/add.png" alt="+"> add</a> </li> </ul> </li> </ul>
and put in navbar.phtml file include in way
include("navbar.phtml");
in application/view/layout/layout.phtml.
but, this
fatal error: class 'zend_locale' not found in blabla\module\application\view\layout\navbar.phtml on line 3
what's wrong? forget "use"? sorry i'm newbie in php.
installation of php intl
extension must.
Comments
Post a Comment