首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >助燃器在电火花点火器中的作用

助燃器在电火花点火器中的作用
EN

Stack Overflow用户
提问于 2013-01-23 01:02:03
回答 1查看 37关注 0票数 0

我有:

代码语言:javascript
复制
 function fetchlinks(){
    ## include the simpledom helper #########################################################
    $this->load->helper('simpledom');
    $this->simpledom->file_get_html("http://www.thesite.net/thesitepath");
        ############################################################################################  
        $htmlToSearch = file_get_html("http://www.thesite.net/thesitepath");
        foreach($htmlToSearch->find('a') as $element){
            echo "<h1 style='color:red; '>".$element->href."</h1> <br />";
        }    
    }

我在这里调用并使用该函数:

代码语言:javascript
复制
$this->load->helper('simpledom');
$this->simpledom->file_get_html("http://www.thesite.net/thesitepath");

然后如何在我的foreach{}中使用^^行的内容

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-01-23 01:07:17

助手函数只是声明的函数,如果需要的话会加载它们。它们不是CI实例的属性。

请参阅这里的文件。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/14470803

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档