Things to do in Cape Town, the Helderberg, and the Cape Winelands

Tag zend

Ubuntu Server: How To Enable OPcache for PHP 7 on Apache

PHP is what is known as an interpreted coding language, meaning that unlike compiled apps that have already been compiled down into bytecode (i.e. you have to compile your application first so that the OS can run it), PHP scripts… Continue Reading →

Quick way to prevent your Zend Controller from handling a Folder

If you have a folder which you need to access in the standard way without your Zend Controller handling it for you (maybe a direct file download outside of your Zend web application), the easiest and quickest way to do… Continue Reading →

When Your Zend Framework Project returns Page Not Found Errors but Everything is Configured Correctly

It can be pretty frustrating. Your Zend Framework project is configured 100% correctly. Mod Rewrite is enabled and working on your server, the .htaccess file is configured correctly and working, all your controllers are correctly created and specified, all with the necessary index actions, your modules are healthy, in short everything is looking 100% like all the examples taught you. Yet for some reason when you try and browse your site, you keep getting Page Not Found, Controller not specified error messages!

Zend Framework: How to Build a Dynamic Layout by Setting Variables in your Controllers

I have a Zend Framework website that is broken up into modules. Accordingly, I want my single layout.phtml Layout script to dynamically change ever so slightly depending on what module or rather controller I hit – in my case change the header image. So how do we do this?

How to Create a Zend Framework Project that Uses Modules

If your website can be logically split into a number of different functionalities, it makes sense to group those functionalities accordingly. In Zend terminology we are talking about modules, literally the folder splitting of logically grouped pieces of functionality. However, by default a generated Zend Framework project isn’t modular and to get the thing properly modularized, here’s what you have to do.

How to create Menus and Breadcrumbs in Zend Framework using the Config .ini File

To create navigation menu items in the Zend Framework by storing all the information in your config application.ini file turns out to be a relatively simple affair.

Zend: How to fix the 404 Problem in a Zend Framework Project

If you have a nice and shiny new Zend Framework project all set up but are still getting nasty browser 404 errors when attempting to hit URL other than the home page (instead of the expected errors dealt out by the error handler controller), the root of your problem is actually quite simple:

Worth Reading: Zend Framework in Action (Rob Allen, Nick Lo, Steven Brown)

Let me start off if you want to learn to program, or learn to program in PHP specifically, you don’t learn by starting off using a framework. That is not going to teach you anything other than making you unable to solve small problems in the most efficient manner.

How to Create a Zend Project from the Command Line with zf

To generate an empty project shell using the Zend Framework is pretty easy thanks to the powerful zf command line utility.

« Older posts

© 2021 An Exploring South African — Powered by WordPress