如何在codeigniter中集成图像积垢库

如何在codeigniter中集成图像积垢库,codeigniter,Codeigniter,这里我上传了视图文件。但我无法编写控制器功能。我想知道如何安装image_crud库,以及如何在数据库中上传多个图像并将图像存储在文件夹中。下载图像,然后解压缩软件包 将文件放在相应的codeigniter文件夹中 config>>image_crud.php 控制器>>图像\u examples.php 库>>image\u crud.php,image\u moo.php 视图>>example.php CI文件夹根目录中的资源 在你的网址上 同时导入包中提供的示例数据库 <!DOCT

这里我上传了视图文件。但我无法编写控制器功能。我想知道如何安装image_crud库,以及如何在数据库中上传多个图像并将图像存储在文件夹中。

下载图像,然后解压缩软件包

将文件放在相应的codeigniter文件夹中

config>>image_crud.php

控制器>>图像\u examples.php

库>>image\u crud.php,image\u moo.php

视图>>example.php

CI文件夹根目录中的资源

在你的网址上

同时导入包中提供的示例数据库

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
<?php 
foreach($css_files as $file): ?>
    <link type="text/css" rel="stylesheet" href="<?php echo $file; ?>" />
<?php endforeach; ?>
<?php foreach($js_files as $file): ?>
    <script src="<?php echo $file; ?>"></script>
<?php endforeach; ?>
<style type='text/css'>
body
{
    font-family: Arial;
    font-size: 14px;
}
a {
    color: blue;
    text-decoration: none;
    font-size: 14px;
}
a:hover
{
    text-decoration: underline;
}
</style>
</head>
<body>
    <div>
        <a href='<?php echo base_url?>images_examples/example1'>Example 1 - Simple</a> |
        <a href='<?php echo base_url?>images_examples/example2'>Example 2 - Ordering</a> |
        <a href='<?php echo base_url?>images_examples/example3'>Example 3 - With group id</a>
    </div>
    <div style='height:20px;'></div>  
    <div>
        <?php echo $output; ?>
    </div>
</body>
</html>