
[英]using Doctrine With laminas project issue : "Class does not exist"
我剛剛在我的 Laminas 項目中安裝了 Doctrine。 我添加了一個數據庫連接並在應用程序文件夾(Application\Entity)中生成了我的實體。 我將我的實體設置添加到應用程序文件夾中的 module.config.php 文件中。 我創建了一個新用戶,包括路由在內的一切都運行良 ...
[英]using Doctrine With laminas project issue : "Class does not exist"
我剛剛在我的 Laminas 項目中安裝了 Doctrine。 我添加了一個數據庫連接並在應用程序文件夾(Application\Entity)中生成了我的實體。 我將我的實體設置添加到應用程序文件夾中的 module.config.php 文件中。 我創建了一個新用戶,包括路由在內的一切都運行良 ...
[英]What is the method return type declaration for json in zend framework
在 API 的 zend 框架中,我使用$this->_helper->json($data)返回 json 數據 在這里我想聲明此方法的返回類型。 通常對於 json_encode 返回類型是字符串,但這里是方法返回類型中的 delcare 的確切 retun 類型。 ...
[英]How do I alter my unit test to utilise mocks within the setUp function?
我有一個相對基本的 phpunit 測試,其中包含 1 個設置 function 和 2 個測試 - 我仍在學習 phpunit 所以請原諒我的無知:) 注意 - 我正在使用 Zend 2 框架。 我希望以下 phpunit 測試使用模擬,但我不確定這將如何工作? ...
[英]getting error while using zend email validation:: PHP Fatal error: Uncaught Error: Class 'Zend\Validator\AbstractValidator'
我正在嘗試在注冊時驗證 email 以確保沒有垃圾郵件。 為此,我了解到 Zend FrameWork 對此很有用。 所以要嘗試我遵循的以下步驟: 我從https://framework.zend.com/downloads/archives下載了ZendFramework- 2.4.13.zip ...
[英]Extending module but keep no-overwrite template map
我一直在尋找如何在其他項目中重用我的用戶模塊。 由於我為每個客戶都有自定義功能,因此我決定創建: 一個要打包的通用UserModule 一個名為UserCustom的擴展模塊 UserModule 有以下視圖:登錄和添加(用於注冊)。 UserCustom 正在擴展 Module.php ,僅此 ...
[英]Zend Framework compability with Lucene 8.4.1
我正在使用 Lucene 3.5.0 創建索引。 帶有 PHP-7.1.12 的 Zend-Framework-1.8.2 用於搜索索引。 我已將 Lucene 從 3.5.0 升級到 8.4.1。 現在使用 Lucene 8.4.1 創建索引。 但是搜索索引會出錯。 我相信我需要升級 Zend-F ...
[英]How do i handle the russian language?
問題:文本在 MySQL 中損壞。 問題 A. 文本通過網絡服務發送如下 B、Controller收到短信需要插入到MySQL: MySQL 列是utf8_general_ci(其他語言英文沒問題)。 編輯: 在插入到 MySQL 之前,數據以俄語正確顯示。 但在插入ТермінР...
[英]PHP Guzzle could not resolve host on localhost, but works on server
我有這個 Zend 2 應用程序,我正在使用這個 Azure AD 庫進行身份驗證。 幾個月來一切都運行良好,但突然間它在我的本地主機上停止工作。 奇怪的是它在我們的服務器上仍然可以正常工作。 我不認為這是圖書館本身的問題,這就是我在這里尋求幫助的原因。 每當我嘗試使用以下代碼獲取 oauth2 ...
[英]problem when create project with zend framwork using wamp server
強文本我正在使用 wamp 版本:2.4 php 版本 7.1 當我嘗試在 wamp 的 www 中創建項目時遇到這樣的問題,請幫助建議。 非常感謝 作曲家: { "name": "zendframework/skeleton-application", "description": "Zen ...
[英]ZF2 Soap Request - Send parameters
我正在嘗試向客戶端的 API 端點發送 SOAP 請求。 我對 SOAP 一點也不熟悉,所以很難讓它發揮作用。 來自客戶的文檔 我能夠創建 WSDL 但不確定如何通過發送參數 我也不確定RequestTicket的相關性是什么。 我應該將它添加到網址嗎? 答案可能很簡單,但經過大量搜 ...
[英]Is it possible to use HTML form in Zend Framework instead of ZendForm?
是否可以在 Zend Framework 中使用 HTML 表單而不是 ZendForm? 特別是對於 phtml 文件? 如果是這樣,提交表單時 <form action "abc.php"> 如何工作。 我應該在模型中定義 abc.php 嗎? 僅在 Zend 框架上的幾個星期知識 ...
[英]EntityManager persist expects parameter 1 to be an entity object, NULL given zend doctrine
我有這個 addaction controller 並且我得到這個異常錯誤雖然用戶正在添加。 錯誤: ..................................................... ........................................... ...
[英]only Last 7 days from Todays Date in zend forms
我的開始只顯示過去 7 天,並以 zend 形式與今天的日期進行比較,所有過去的日期都應該禁用,除了過去的 7 天。 我試圖在屬性部分設置 min 選項但不起作用。 下面是我的代碼 ...
[英](xampp zend framework2) server responded with a status of 500 ()
我在 windows 上有 Xampp,我正在使用 zend 框架 2。我有這個錯誤:localhost 當前無法處理這個請求。 http 錯誤 500 當我刪除我的 index.php 的代碼時,我認為它可以工作,但是當我讓上面的代碼時,問題仍然存在。 索引.php: 1-我重新安裝了 xa ...
[英]Can we run Zend framework 2.0.5 or 2.x.x version on PHP 7.3 or any latest version?
我的 Zend 框架版本是 2.0.5 在原項目中,希望能夠方便使用php 7.3版本 Zend 框架 2.0.5 或 2.xx 支持 php 7.3? 還是升級zf3? ...
[英]can't use css file zf2 (Zend\View\HelperPluginManager::get was unable to fetch or create an instance for inlineStyle)
我有一個 css 和 js 文件,我想使用它並從 controller 調用它,對於 js 這些行完美地工作: $serverUrl = $this->baseUrl(); $headScript = $this->getServiceLocator()->get('view ...
[英]How to include UTF-8 BOM to a CSV export with Zend
I have the option to export some data in my project to a.csv file, i already have the charset set to UTF-8 in the response headers, however, Excel wo ...
[英]Laminas - Unable to render template “xxxxxxx” resolver could not resolve to a file
該項目已從 Zend Frame work 2 手動移植到 Laminas。 這里的問題是 module.config.php 的設置方式與其他正在運行的模塊相同。 但是我遇到了這個錯誤。 我檢查了通常的罪魁禍首,例如文件拼寫或丟失,沒有其他模塊使用相同的路由名稱。 Laminas 的另一部分是否 ...
[英]Can I run window and linux containers at the same time? Docker
我有一個需要 linux 操作系統的 zendframework 2 網站,並且該網站使用在 windows 操作系統(IIS)上運行的搜索引擎。 如何使用docker同時運行網站和搜索引擎? 我是 docker 的新手,如果有人可以幫助解決 docker-compose.yml 和 Docker ...
[英]What is version of Zend Framework?
我們以前的一位開發人員使用過這個類,但我找不到這個類的 Zend 版本和文檔 use Core\\Db\\BaseModels\\BaseDbTable; 請耐心等待,我剛剛開始我的 zf 培訓 謝謝 ...