Questions tagged [zend-framework]

Zend Framework is an open source, object-oriented web application framework implemented in PHP 7.1 and licensed under the New BSD License. Zend Framework was archived on 1 January 2020 simultaneously with migration to and launch of Laminas Project, an official continuation under The Linux Foundation governance.

Zend Framework is an open source, object-oriented web application framework implemented in PHP 7.1+ and licensed under the new BSD license.

Zend Framework was archived on 1 January 2020 simultaneously with migration to and launch of Laminas Project, an official continuation under The Linux Foundation governance.

It is based on simplicity, object-oriented best practices, corporate friendly licensing, and a rigorously tested agile codebase with a main focus on building more secure, reliable, and modern Web 2.0 applications & web services.

Zend Framework provides open architecture based on Middleware or MVC, following PHP-FIG standards.

Information

Zend Framework-1 End of Life Announced : 28 September 2016

Features:

Zend Framework features include:

  • All components are fully object-oriented PHP 7.1 and are E_STRICT compliant

  • Use-at-will architecture with loosely coupled components and minimal interdependencies

  • Extensible MVC implementation supporting layouts and PHP-based templates by default

  • Support for multiple database systems and vendors, including MariaDB, MySQL, Oracle, IBM DB2, Microsoft SQL Server, PostgreSQL, SQLite, and Informix Dynamic Server

  • Flexible caching sub-system with support for many types of backends, such as memory or a file system.

Resources:

Zend is the company behind Zend Framework, but the correct naming is always Zend Framework or ZF for short.

20405 questions
99
votes
16 answers

how to create virtual host on XAMPP

I am sure this question is being asked many times but I am not encounter with a problem. I am using XAMPP where I configure Zend framework. XAMPP is running on port 8081 as 80 is being occupied by some Windows process I need to use virtual host for…
Paras Arora
  • 1,171
  • 2
  • 8
  • 16
81
votes
5 answers

Is en_UK an illegal locale?

So far I had always used 'en_UK' for British English. Today I got an error when using it with Zend Framework because the locale is not included in the long list of recognized locales. Here's just a short extract of that list: 'ee_GH' => true,…
markus
  • 40,136
  • 23
  • 97
  • 142
78
votes
14 answers

How to print exact sql query in zend framework ?

I have the following piece of code which i taken from model, ... $select = $this->_db->select() ->from($this->_name) ->where('shipping=?',$type) …
mymotherland
  • 7,968
  • 14
  • 65
  • 122
69
votes
6 answers

How to create WHERE IN clause with Zend_Db_Select

So I am trying to accomplish something like this: SELECT * FROM table WHERE status_id IN (1,3,4); using Zend_Db_Select... can't find how to do it :( Is it at all possible?
xelurg
  • 4,294
  • 9
  • 35
  • 37
69
votes
7 answers

Starting with Zend Tutorial - Zend_DB_Adapter throws Exception: "SQLSTATE[HY000] [2002] No such file or directory"

I have started to learn Zend Framework with the Book "Zend Framework in Action" in German. Right there where it starts to get interesting, my PHP Unit Test throws this Error: "Zend_Db_Adapter_Exception: SQLSTATE[HY000] [2002] No such file or…
Oliver
  • 695
  • 1
  • 6
  • 5
64
votes
10 answers

Running a Zend Framework action from command line

I would like to run a Zend Framework action to generate some files, from command line. Is this possible and how much change would I need to make to my existing Web project that is using ZF? Thanks!
Ariod
  • 5,757
  • 22
  • 73
  • 103
64
votes
1 answer

Zend Framework 1 vs Zend Framework 2 performance

Zend Framework 2 was just released and Zend offers support for ZF1 for only 18 months from now. I know they were working for new features in ZF2 and then they were going to do some major speed improvements to it since it was 5 times slower than…
tsergium
  • 1,176
  • 1
  • 14
  • 26
64
votes
2 answers

How can I make email template in Zend Framework?

I want to make email templates in Zend Framework. For example, Dear {$username$},
This is a invitation email sent by your {$friend$}.
Regards,
Admin I want to make this file, get it in Zend framework, set…
Billy
  • 15,516
  • 28
  • 70
  • 101
62
votes
4 answers

Change an associative array into an indexed array / get an Zend_Table_Row_Abstract as non-associative

Hi out there in Stackland. I was wondering if there was either a function or an easy way to change an associative array into an indexed array. To elaborate, I'm using the Zend framework, and I've got a point in my site where I take out a row of an…
Ethan
  • 5,660
  • 9
  • 44
  • 51
60
votes
2 answers

How to switch layout files in Zend Framework?

I'm sure it's a simple one-liner, but I can't seem to find it. How can I use a different layout file for a particular action? Update: This worked for me, thanks! // Within controller $this->_helper->_layout->setLayout('other-layout')…
Andrew
  • 227,796
  • 193
  • 515
  • 708
55
votes
15 answers

Running MySQL *.sql files in PHP

I have two *.sql files that I use when creating a new web site database. The first file creates all the tables. The second file populates some default records. I would like to execute these files from PHP. I also use the Zend_Framework, if that…
Sonny
  • 8,204
  • 7
  • 63
  • 134
52
votes
4 answers

Set Application_ENV via virtual host config and read this in PHP

I like how this works in Zend Framework. I can know which environment I'm currently using by checking APPLICATION_ENV constant in my controller. #ServerName #DocumentRoot SetEnv APPLICATION_ENV "development" …
BinaryButterfly
  • 18,137
  • 13
  • 50
  • 91
50
votes
11 answers

Zend Framework: How do I remove the decorators on a Zend Form Hidden Element?

I'm trying to remove the default decorators on a hidden form element. By default, the hidden element is displayed like this:
Hidden Element Label (if I had set one)
I don't…
Andrew
  • 227,796
  • 193
  • 515
  • 708
48
votes
7 answers

Is there a way to do an "INSERT...ON DUPLICATE KEY UPDATE" in Zend Framework 1.5?

I would like to use ON DUPLICATE KEY UPDATE in Zend Framework 1.5, is this possible? Example INSERT INTO sometable (...) VALUES (...) ON DUPLICATE KEY UPDATE ...
danielrsmith
  • 4,050
  • 3
  • 26
  • 32
42
votes
14 answers

Zend Form: How do I make it bend to my will?

I've read the manual many times, I've scoured the posts offered by Google on the subject, I have even bought a couple of books that deal with ZF. Now, why am I still confused? I can, using Zend_Form, make a form that validates and functions fine.…
rg88
  • 20,742
  • 18
  • 76
  • 110
1
2 3
99 100