我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

创建类自动加载器的实例

I have class autoloader and if i call $class = new myClass, everything is ok, class loaded, instance created.

I want to create instance of class like this $this->className->myMethod($args);` first create class className and call className's method myMethod?

Is it possible? Can someone post me example, please? Opencart script call modules like this $this->model_catalog_category->getCategory($category_id).

近期文章

  • 覆盖特定类的PHP命名空间
  • 用PHP处理Android中的数组POST
  • 我无法删除字符串中的一系列单词
  • Utf8_bin和大写/小写搜索结果
  • 网站因入门流程过多而崩溃
  • 如何将多个数据从视图发布到控制器?
  • PHP MAILER向一个收件人发送多封电子邮件
  • 在谷歌图片中获取所选图像图像网址
  • 下拉列表不适用于data-native-menu =“false”
  • php搜索脚本仅提取第一个条件
  • MySQL:选择最后N行,而SUM less则编号
  • 使用谷歌搜索API的不同数量的结果
  • 如何使用php获取所选文本框值的值
  • 如何在extbase插件中插入外部API
  • Mediawiki自定义搜索引擎:查询期间与MySQL服务器的连接丢失
  • $ this with $ row PHP
  • 用ajax在javascript中的php代码
  • Bootstrap在localhost上完美运行但不在VPS上运行
  • 高级搜索选项在gridview中不起作用(使用YII框架)
  • 通过Curl登录9gag并提升一些主题

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华