dongli7236 2012-06-25 13:35
浏览 61

加载火花库时,Codeigniter 404页面抛出错误

I’m running into a problem tonight that i just can’t figure out. I’m loading the spark for the Carabiner Asset Library

$this->load->spark('carabiner/1.5.4', array('library' => 'carabiner')); 

I’m running into an error/ no error loading the spark in these senarios:

default_controller/foo <- foo method does not exist, 404 loads fine

other_controller/bar <- bar is a method in other_controller, method load fine

other_controller/wakawaka -> wakawaka does not exist, Message: Undefined property: Error::$carabiner

$this->carabiner->config($carabiner_config); 

is the line php/codeigniter is complaining about

Carabiner is being loaded in a MY_controller where default_controller and other_controller both extend MY_controller

I commented out the config line above and got the same error on the next spark i had to load and call, Template.

Any idea what’s going on?

  • 写回答

1条回答 默认 最新

  • duanji1043 2012-07-11 09:27
    关注

    If you load the carabiner in MY_Controller constructor make sure you call the parent constructor in controllers that extend it.

    评论

报告相同问题?

悬赏问题

  • ¥15 目详情-五一模拟赛详情页
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?
  • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line