关于zend framework的几个小问题
关于zend framework的几个问题.
一.我的程序目录结构是
library
modules
--company
--controllers
--ViewController.php
index.php
现在的访问地址是 127.0.0.1/user/index/view/id/88
怎么变成 127.0.0.1/user/view/id/88这种形式呢.不要index
第二个问题.
我想把 127.0.0.1/user/index/view/id/88这个URL变成 127.0.0.1/user/88
这种简洁形式.应该怎么定义路由呢.用下面的方法一直不行.
$route->addRoute('user',
new Zend_Controller_Router_Route('/user/:id',
array(
'controller'=>'index',
'action'=>'view'
)
)
) ;
用了一直报错说
Uncaught exception 'Zend_Controller_Action_Exception' with message 'Action "view" does not exist and was not trapped in __call()' in
请大家帮忙看看!不甚感激!
------解决方案--------------------
我虽然不懂php 这个肯定很好解决 自己去找路径在哪里默认的就好了
------解决方案--------------------
没用过ZF,但是CI的路由是正则匹配的。

熱AI工具

Undresser.AI Undress
人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover
用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool
免費脫衣圖片

Clothoff.io
AI脫衣器

AI Hentai Generator
免費產生 AI 無盡。

熱門文章

熱工具

記事本++7.3.1
好用且免費的程式碼編輯器

SublimeText3漢化版
中文版,非常好用

禪工作室 13.0.1
強大的PHP整合開發環境

Dreamweaver CS6
視覺化網頁開發工具

SublimeText3 Mac版
神級程式碼編輯軟體(SublimeText3)

OOBELANGUAGE錯誤Windows 11 / 10修復中出現問題的問題
