* zin: add helper and commonModel alias to namspace zin

This commit is contained in:
Hao Sun
2023-03-03 14:40:59 +08:00
parent 0c3b4c71d5
commit 1b2d45dd1a
+16
View File
@@ -1,6 +1,22 @@
<?php
namespace zin;
class helper
{
public static function __callStatic($prop, $args)
{
return call_user_func_array(array('\helper', $prop), $args);
}
}
class commonModel
{
public static function __callStatic($prop, $args)
{
return call_user_func_array(array('\commonModel', $prop), $args);
}
}
function createLink($moduleName, $methodName = 'index', $vars = '', $viewType = 'json')
{
\helper::createLink($moduleName, $methodName, $vars, $viewType);