codeigniter

    0热度

    2回答

    我有搞清楚如何使这种情况下的路线很难:http://wwww.domain.com/category-slug/product-slug我认为这是恩容易的事情,我很快加入这一行route.php $route['([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)'] = "products/show"; 但,这也是重定向我的每一页像http://wwww.domain.com/admi

    0热度

    3回答

    我正在使用codeigniter,并且指向我的类别的链接无法正常工作。也许我不明白框架的一些设置。我在设定这个基础URL我的配置文件: $config['base_url'] = 'http://hms.loc'; 但是,当我点击“主页”类别或任何其他类别的链接看起来像: http://localhost/hms/ 但它应该是: http://hms.loc 当我点击了 “房间” 类别

    0热度

    2回答

    嗨,我有这张表有多行。 我想知道如何在此表的每一行中获得某些数据。在这张表中,我需要获得学号数据,并附上成绩单。 <tbody> <?php foreach ($class_list_view as $student) { ?> <tr> <td class="studentnumber"><?= $student->studentnumber ?></td>

    0热度

    2回答

    我想在我的项目中使用https://www.verot.net/php_class_upload_download.htm库来调整图像大小。然而,当我提交的形式,它给这个错误 我已经加载库中自动加载和我改名库“my_upload”并给出了相同的类名。 不过,我不知道为什么会发生错误。 这里是我的控制器: <?php class Blog extends CI_Controller{

    1热度

    1回答

    正在使用codeigniter,并且是codeigniter的新手。我将物品添加到购物车表中。现在我想将复制购物车记录放入我的tblShoppingCart表中? 任何一个可以给我举例复制车记录到另一个表的?公众 function purchase() { $userid = $this -> session -> userdata('user_id'); foreach

    3热度

    1回答

    我有一个问题想问你,我还没有找到一个解决这个,所以我有2个表: 分类: id category 1 BBA 2 BSCS 3 BEE sub_category: id category_id sub_category_name 1 1 Accountant 2 1 Manager 3 1 Sales 4 2 Data Adminsitrator 5

    0热度

    2回答

    我有两个简单的功能点击我的页面与js,第一个是改变css活跃在当前li和另一个是只重新加载内容。 变化积极李 $(".list li").on("click", function(){ $(".list li").removeClass('active'); $(this).addClass('active'); }); 重装内容仅供 $('.content').load

    -1热度

    2回答

    我试图实现只有登录用户才能访问的基本部分。我overrided是CI_Controller,如下: //file created in application/core/MY_Controller.php class Auth_Controller extends CI_Controller { function __construct(){ parent::__cons

    -3热度

    1回答

    少见ID一个表中检索数据我有两个表 表1 ID : 1 2 3 4 5 6 7 NAME : abc abcd abcde xy xyz lmn lmno 表2 ID : 1 2 3 4 NAME : abc abcd abcde xy 我怎样可以得到以下 ID : 5 6 7 NAME : xyz lmn lmno

    0热度

    1回答

    的方法 /user/role/authenticate 在我的网络服务器API确实需要在用户名和密码的形式HTTP认证。 我使用下面的代码从不同的前端访问我的web服务器的API,这是用CodeIgniter设计的。 $URL='http://.../user/role/authenticate'; $ch = curl_init(); curl_setopt($ch, CURLOPT_U