php - Use of aliases to shorten Class namespace -


i have class defined in namespace long name. call writing full name of namespace:

use super\long\name\of\namespace\myclass; $obj = new myclass; 

how can shorten long name of namespace?

i tried following:

use super\long\name\of\namespace short; use short\myclass; $obj = new myclass; 

but myclass not found anymore.


Comments

Popular posts from this blog

php - Displaying JSON data posts for blog using just the post id -

docusignapi - Documents restrictions within a package -

javascript - angular.forEach loop with $http.get -