【问题标题】:Code Igniter Model unable to use url->segmentCodeigniter 模型无法使用 url->segment
【发布时间】:2017-02-05 17:33:38
【问题描述】:

当我尝试获取 url 段时出现此错误

严重性:通知

消息:未定义的属性:Site::$url

文件名:core/Model.php

This is the code of model class 型号and this is function in controller 控制器

查看

【问题讨论】:

  • 只是提示下次尽量不要显示您的代码图像将代码添加到您的问题中

标签: codeigniter


【解决方案1】:

用uri替换url

$this->uri->segment(3);

【讨论】:

  • 这表示 Site/Delete/fname 这里 fname 是 2 段?
  • @JunaidYousafLodhi 如果有效,请不要忘记接受答案。
猜你喜欢
  • 2014-12-18
  • 2011-08-06
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-04-10
  • 1970-01-01
相关资源
最近更新 更多