从数据库CI

时间:2017-05-19 14:57:35

标签: php codeigniter

我有一个网站,如果完全动态,从页面构建,菜单等现在之前,使它动态我为客户端制作静态页面,然后他告诉我让一切都动态!

我正在使用summernote编辑器进行动态编辑现在summernote有一个自定义html选项,我们可以在其中编写代码,所以我只是简单地从静态页面逐个复制代码并将html添加到夏天注释自定义html编辑器方面!现在一切都运行正常,但是在前端会发生什么呢?base_url()变量没有像往常那样回显路径,现在页面的数据是从数据库接收的,变量语法很好我也自动加载了我的配置文件中的 url 但仍然无法在此处运行代码演示。

HTML

    <?php include "includes/header-others.php" ?>
        <div id="parent_margin">
            <div class="container generic generic_diagnostic">

        <?php
        print_r($text[0]->page_data); //this line is printing the result from database
?>

        </div>
    </div>
<?php include "includes/footer-others.php" ?>

数据如何存储在db

中的示例
<img onclick="blur_image(this.id)" src="<?=base_url()?>images/ourteam_1.png" class="img-responsive"/>

我不知道这是什么问题!在静态页面和dyamic页面上使用相同的html代码时,datab来自db,它不会回显base_url()的值。

0 个答案:

没有答案
相关问题