drktvjp713333 2011-03-31 10:42 采纳率: 0%
浏览 53

如何使用PHP codeigniter实现关键字特定的页面调用

How to implement keyword specific page invocation using PHP codeigniter

Binary search Tree Implementation.

for e.g. in above URL keyword "binary-search-tree-implementaion" is method name or parameter for specific controller. because most of things are dynamic then how web site is going to manage all those things?

I want to implement it for my web site like this

http://example.com/search/digital-camera-price-in-india

  • 写回答

3条回答 默认 最新

  • duanduan8439 2011-03-31 11:04
    关注

    I'm not familiar with CodeIgniter, but usually a URI structure like /search/digital-camera-price-in-india would route to the Search controller and digitalCameraPriceInIndia action.

    /search/digital-camera-price-in-india
    
    => SearchController::digitalCameraPriceInIndiaAction()
    

    If you want to route similar URIs (different products for example) to a catch-all method, you've have to setup custom routing.

    The CodeIgniter documentation for routing is here

    评论

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器