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
Post a Comment