Questions tagged [zend-framework]

The Zend Framework is a remarkable, PHP 7.1-based web application framework that operates under the New BSD License while remaining open source and object-oriented. As of the new year, on January 1st, 2020, an exciting event took place as the Laminas Project migrated and was officially launched. Under the governance of The Linux Foundation, it became the official successor to the Zend Framework.

When utilizing an iframe, the file surpasses the specified ini size

I am currently using fancy box iframe to showcase my page, containing a file upload button. However, when I click on the form submit button, I encounter the error message "File exceeds the defined ini size". Despite searching through various resources on G ...

The PHP strtotime function seems to be behaving oddly when used in conjunction with Zend_Feed, consistently displaying

An issue arises with Zend_Feed always updating the publish date to the current date and time. foreach($array['rss']['rows'] as $row) { try { $pubDate = strtotime($row['from']['value']); $entry = array( 'title' => ...

Extracting the location information from the Google Calendar API

I need assistance extracting the where attribute from an Event using the Zend GData Framework in php. Can anyone provide guidance on the correct format to retrieve that attribute? $eventFeed = $gdataCal->getCalendarEventFeed($query); foreach ($eventF ...

What is the best way to customize the content-type headers for a complete Zend Framework application?

I have come across this question before: Zend Framework how to set headers and I understand how to set headers on a per controller basis. $this->getResponse() ->setHeader('Content-type', 'text/html; charset=utf-8') Howeve ...

Subdomain-specific URL helper in ZF2

I currently have a website that consists of four subdomains: http://www.domain.com/ http://dev.www.domain.com/ # (development environment for www.domain.com) http://blog.domain.com/ http://dev.blog.domain.com/ # (development environment for blog.do ...

The update query inadvertently modifies all entries in the database rather than targeting a specific one

Having recently started using the Zend framework, I am encountering an issue when trying to update data in the database and grid. Instead of updating a specific row, all rows are being updated. Can someone please assist me with this? Below is my controlle ...

Is there a way to submit a Zend_Form without page reloading using Ajax?

How can I submit a Zend_Form without reloading the page using Ajax? Here is the code for creating a form that currently reloads the page when submitted. What changes or additions need to be made in order for this form to submit via Ajax (1. regular soluti ...

Architecture of Zend_Queue database

Currently, my email queuing and sending system utilizes Zend_Queue (http://framework.zend.com/manual/en/zend.queue.adapters.html) I am wondering if there is a method to change the default table names in Zend_Queue_Adapter_Db. The default names "queue" and ...

Implementing AJAX in Zend framework

I am interested in incorporating ajax functionality into the Zend Framework. Can you please provide me with a straightforward example? ...

zend_json is a structured data format that consists of an array composed of

Imagine I have the following scenario: $arr = array(some object with property a,b,c,d,etc); When you use Zend_Json::encode($arr); Rather than encoding the object within it as well, it simply returns an encoded empty array: [{}] This situation can be de ...

Changing the value stored in Zend_Registry

My current situation involves an array being stored in Zend_Registry: Zend_Registry::set('myArray', $myArray); I am now faced with the challenge of wanting to append a new value to this existing array. I understand that Zend_Registry is not ideal for mod ...

The downloaded file appears to be corrupt

I am currently developing a controller to handle file downloads from the server. The main functionality is contained within the index action: public function indexAction() { $storageName = $this->_getParam('storageID'); $fileName = $this->_g ...

The life cycle of a PHP request

Recently, I've found myself pondering the inner workings of the PHP VM and its request lifecycle for web applications. While I stumbled upon an informative article here, I can't shake the feeling that there's more to uncover. The idea that ...

Challenges with PHPUnit directory paths

I am currently working on a ZF application where I had abstract parent classes located in the library directory. Initially, Netbeans was able to generate test skeletons for the child classes effortlessly and I could run the tests without any issues. After ...

What is the best way to retain AJAX data even when navigating back without losing it?

After receiving an Ajax response, I display a set of data on my home page. When I click on any of the data, it takes me to another page. However, when I click the back button on the browser, it just navigates me back to the homepage without showing the A ...

Managing JSONP calls in ZEND is crucial for handling cross-domain requests

After conducting a search and not finding an answer, I have decided to ask the question myself. Can the Zend Framework handle JSONP calls? I came across this page: http://framework.zend.com/wiki/display/ZFPROP/Zend_Json_Server+-+Lode+Blomme However, I a ...

Personalized Assistance - PHP Helper Class

Greetings, I have developed a PHP Web application utilizing Zend Framework and MVC with a MySQL database. My next goal is to incorporate Context-Sensitive Help into the application, but after conducting research, I have been unable to find any helpful gui ...

Creating a single object from an array using Zend_Soap_Client

I'm currently facing an issue with Zend_Soap_Client while working on my project: <parent> <child><name>abc</name></child> <child><name>def</name></child> </parent> When there are mu ...

The Zend router fails to accurately identify parameters

I have encountered an issue with the following code: $routes = array( 'twitter_output' => new Zend_Controller_Router_Route( 'twitter/:username.:format', array('controller' => 'twitter', 'action' => 'index') ) ); My inten ...

Exploring the world of domain-driven design through the lens of

In continuation of my previous inquiry regarding Zend models architecture (special thanks to Bill Karwin), I have delved into some readings, including this article: as well as this question: How To Properly Create Domain using Zend Framework? Having ga ...

`Trigger a page reload when redirecting`

Currently, I am tackling some bug fixes on an older Zend Framework 1.10 project and encountering difficulties with redirection and page refresh. The issue: The task at hand is to make an AJAX call, verify if a person has insurance assigned, and prevent de ...

Zend: Designing models for a items database

In the process of developing two distinct models, namely products and product_manufacturers, I aim to streamline the retrieval and modification of manufacturers and products through the admin interface. The blueprint for these tables is outlined below (sub ...

Error encountered during Magento installation

After downloading the Magento community edition and sample data, I attempted to install Magento using XAMPP. The installation process seemed to be going smoothly until I encountered an error message after clicking on the install button. The error specifica ...

Zend Framework redirect problem: Controller specified is invalid

I'm currently working on a project using Zend Framework 1.12. When all the files are kept in the root folder, everything functions correctly. However, if I create a new folder and move all the files into it, nothing works as expected. This is my cur ...

Exploring the intricacies of the Zend Framework Bootstrap procedure and how resources are loaded from the application

Although I consider myself quite knowledgeable about Zend Framework and how it operates, there is one aspect that still eludes me: the process by which Zend Framework accesses resources from application.ini. I am aware that I can create my own protected _ ...

I'm encountering issues with running my installation script on Magento

Currently, I am in the process of enhancing the registration form with my module by adding a new field. For this purpose, I need to introduce an attribute. Although my "install script" serves as an upgrade to the customer entity, the issue lies in the fact ...

Creating modular MVC components in Zend Framework is a key skill that developers need to master

I've been facing challenges in creating modular reusable components within my Zend Framework application. I'm not talking about Zend Framework modules, but rather the ability to have a reusable MVC widget. The issues I'm encountering may be specific to my ...

Utilizing a variety of Zend pagination controls through AJAX and jQuery technology

Looking for assistance in implementing multiple Zend pagination in a view using AJAX. Single pagination is already working, but now the goal is to have more than one. This is the current setup:- Added to the bootstrap:- public function _initPaginator(){ ...

Developing a Content Management System using a Framework (Conceptualization)

I am seeking insight into theoretical approaches, so technical details are not a concern at this time. As I delve into concepts for creating a basic CMS, I find myself torn between using pure PHP with assorted libraries or developing it within an MVC fram ...

What is the best way to retrieve models from the default module in Zend_Framework?

I am currently restructuring my application to be more modular by utilizing modules in the Zend Framework. Here is an overview of my updated project structure: configs/ application.ini layouts/ filters/ helpers/ ...

Ajax is coming back with a value that is not defined

Currently, I am working on a search function that is responsible for searching a name from the database. When the user clicks "add", the selected item should appear below the search field so that it can be saved in the database. However, I am encountering ...

Magento is loading the catalog/product/view.phtml file twice

I am working on creating a Magento sidebar box that can display products from a specific category. I have developed a file named most_sold_list.phtml which generates a list of products in a designated category, containing the following code... <?p ...

Personalizing Authentication Service for ZfcUser

I have a unique implementation of my AuthenticationService that I want to integrate into the ZfcUser Module, but I am having trouble configuring it. The current implementation is not allowing me to set this class within the module. Path: vendor\zf-co ...

Utilizing AJAX and PHP to enhance Zend_Config_Ini

As I develop my own CMS, I encountered a challenging issue that I couldn't find a solution for on Google... My dilemma lies in creating an edit_settings.php file using AJAX and PHP to integrate my Zend_Config_Ini for parsing and writing purposes with the ...

Is there a way to reveal the hidden HTML element within Zend_Form_Element_Select for printing?

Currently, I am working on creating a form manually with extensive JavaScript. On the server side, I rely on Zend_Form classes for input validation and more. I am wondering if there is a method to render a specific element like Zend_Form_Element_Select wi ...

Plugin for jQuery Validation: Verify if input is NOT an email address

I am currently updating a small Zend e-commerce website and we have been experiencing issues with robot inputs filling in email addresses in every field. To prevent this, I am looking to implement form validation that checks if the field does not contain a ...

Retrieving feedback with Zend Framework 1

I'm struggling to come up with the right query to select all comments associated with a specific image and retrieve the authors of those comments. I want to formulate a query like this: select comment where comment_id == image_id && user_id(table ...

What is the process for implementing a "where" condition in the Zend Lucene search engine?

Recently, I have been utilizing Zend Lucene for a search functionality in my project. $index = new Zend_Search_Lucene(Yii::getPathOfAlias('application.'.$this->index_file)); $results = $index->find('PHP'); foreach ($results as $result) { echo $ ...

Identifying browsers with Zend Framework versus JavaScript

Currently, I am working on developing an application that demands the capability to upload large files. After much consideration, I have opted to utilize the FormData object as it allows me to provide progress updates to the user. Sadly, Internet Explorer ...

Leveraging sub classes in Zend_Rest_Server

The documentation for Zend_Rest_Server and Zend_Rest_Client is seriously lacking, leading me to face frustrating issues repeatedly. To improve my API methods, I decided to use Zend_Rest_Server() and set the server class to "X", which extends my "api_serve ...

Exploring the benefits of APCu, Zend Cache, and setting up virtual

Recently, I have been experimenting with APCu user data caching in PHP 5.5 using Zend Cache from ZF1, along with Apache virtual hosts (using mod-php). Surprisingly, I encountered some unexpected outcomes during my tests. Interestingly, when I added data t ...

The hyperlink in the Zend view has been encoded with unusual symbols

Using Zend view with a phtml template file, I am attempting to render a link. <a href="<?php echo $this->link; ?>" target="_blank"> Encountering an issue with the URL link: in some cases, special characters such as & and = are being co ...

Unable to connect to phpMyAdmin through the command line

After successfully installing MAMP, I am able to access it from localhost:8888 and phpmyadmin from localhost:8888/MAMP. Currently, I am working on a project using zend framework 2 and running the basic Album module on my local host. However, I have encount ...

Using a Select Query to Retrieve Multiple Rows from a Join Table in a Collection in Magento

Is it possible to execute a Select Statement in _preparecollection within Magento when the main table is joined with another table that has 2 rows containing 1 parent ID? The current tables available are: Main Table: https://i.stack.imgur.com/DWrep.png ...

What is the best way to exclude the dd and dt html elements when displaying a Form element in ZF?

Currently, I have implemented a Zend_Form_Element_Select in my view. $t=new Zend_Form_Element_Select(....); ... ... echo $t->render(); While the drop down and options display correctly, the select element is also enclosed within <dt> </dt&g ...

Encountering a TableGateway Select issue in Zend Framework 2

I am looking to retrieve the total number of reservations made at $reservation_datetime. Although I have written this code, I encountered an error. An error occurred: Argument 1 passed to Reservations\Model\ReservationTable::Reservations\ ...

What is preventing Apache from forwarding my cURL request to PHP when the data contains brackets [ ]?

Currently, I am experimenting with a JSON RPC implementation by sending a post request using curl. According to the json rpc spec, the parameters must be enclosed in an array using brackets. However, when I try to send the following post request, it never ...

What strategies can be implemented to enhance the performance of Zend Lucene?

I am currently facing challenges in optimizing the speed of my Zend Lucene index, which contains approximately 1 million documents. Searching through it sometimes takes up to 0.4 seconds, which is not acceptable. My goal is to have search results returned ...

The flashmessenger fails to display messages during the loading of a page via ajax

I'm encountering an issue with a form that sends data using the ajax post method. Whenever I set flash messenger in the action method, the message doesn't display (I have to refresh the page to see it)! How can I handle the flash messenger to s ...

Why is the var_dump returning null?

Greetings, I am currently utilizing Zend Framework (PHP) and encountering an issue with the output of a select option value in var_dump after sending a POST request. Here is the code snippet: <div class="entry"> <form action="<?php echo $this ...

Error when trying to access wamp

Struggling to set up Zend on Wamp Server, but all I keep getting is: Forbidden You are not authorized to access /blandit/public on this server. Is there a step-by-step guide available for configuring it? ...

Using the Zend HTTP library, Privoxy, Tor, and cURL work together seamlessly

Seeking expert assistance as I am confronted with a puzzling situation. Allow me to provide some context on what I am attempting and the current setup. Initially, I had a script that successfully posted over an https form using Zend_Http_Client. My server ...

The submitted form did not come from the anticipated source on the EC2 server

Recently, I began the process of migrating a PHP zend based web application to AWS EC2 as I am new to PHP. However, upon trying to log in to the site after completing the migration, I encountered the following error: The form submitted did not originate fr ...

There appears to be a disconnection issue with the PHP Zend Framework 2 and

Hey there, I have a PHP daemon set up to manage requests from RabbitMQ. However, after running for a day, it stops functioning due to encountering the error "MySQL has gone away." PHP Warning: PDOStatement::execute(): MySQL server has gone away in /var/ ...

Updating data with Zend Framework 2 using the TableGateway Object

public function updateData($table, $conditions = array(), $data_array = array()){ print_r($data_array); $adapter = $this->tableGateway->getAdapter(); $projectTable; if($table != null){ $projectTable = new TableGateway($tab ...

The PHP blocking code in Zend Server not only blocks the response of the current ajax call but also impacts the handling

I encountered a peculiar problem. Suppose I have an ajax call like this; $.ajax({ url:"url1.php", }) Following this ajax call, I have another ajax call as follows; $.ajax({ url:"url2.php", success:function(data){console.log(data);} }) ...

Secure your domain through Zend unit testing

Is there a way to retrieve the domain name in unittest? If not, how is this typically addressed? In general, there is no need for the domain name in UnitTest because you can use something like /edit.html and it works correctly. However, for Selenium test ...

Difficulty displaying response from Ajax request in Zend Framework

I am encountering an issue with Zend Ajax. Here is my JavaScript code: function deleteNewsCategory(cId) { var conf = confirm("Are you sure you want to delete the item?"); if(conf) { $.ajax({ dataType: 'json', url: '/ajax/deletenewscat ...

Using Zend 1 to display a different controller within a controller

My goal is to update the current layout to request the controller contents through AJAX instead of refreshing the page every time a user clicks on a menu item. To simplify, I want to load a controller from another controller. Let's assume we have a co ...

Can the .htaccess files be merged together?

Currently, I am facing the challenge of overhauling an existing website that is riddled with spaghetti code and relies on rewrite rules to create friendly URLs. Unfortunately, there are critical issues within the architecture and database structure that c ...