internationalization - php-intl conflicts with custom Locale class -


i working on website , pages doesn't work after installing php5-intl library on server. after hours of debugging 've found out problem name of class in codes named locale.

is there other solution rather renaming class?

sounds namespace conflict. have class called locale? give namespace:

<?php  namespace my;  class locale {    // } 

then can say:

use my\locale; 

if ever have code uses both classes, can alias one:

use locale; use my\locale mylocale; 

then can new mylocale(); , there won't conflict. hope helps!


Comments

Popular posts from this blog

minify - Minimizing css files -

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -