Yii import or include

守給你的承諾、 提交于 2019-12-05 03:11:06

Try to do Yii::import('ext.payu.payU', true) because default one-parameter Yii::import() function call means:

hey, just add this path to the known aliases list and do not require() it now

and you have to do new payU() for this to work.

Import works the follow way: Open Directory and Load the Class within the php file ; condition : the name of class are indetical to name of file.

Instead Include , loads all classes into php file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!