I an redirection (in some cases) from a controller to the error controller, action 'not-logged-in' using the redirector helper. My problem is the following: I want to pass an argument in the $_POST array (an URL from where the redirection happened) so the user will be able to return to that page after performing a login.
How can i plac...
So my problem is kinda weird, it only occurs when I test the application offline (on my PC with WampServer), the same code works 100% correctly online.
Here is how I use the helper (just example):
<a href="<?php
echo $this->url(array('module' => 'admin',
'controller' => 'index',
'action' => ...
Hi,
I have seen Zend certified engineers growing fast with upper hand over others.
I am also planning to take this exam.
I just wanted to know what areas of programming should I be more focused on when
preparing for this exam. Any help from zend certified engineers will be greatly appreciated.
EDIT
Also suggest good resources about t...
I am working in the error controller of my default module but I have other modules/controllers that have errors. Their errors are sent to the default/error controllers but the layouts that are used are the ones from the module that threw the error. I want to only use the default modules layout for all errors.
...
For a standard method, I know one can specify return type in the comments such as:
/**
* Load this entity from the database with the specified primary key.
* @param int $Key
* @return BaseEntity
*/
public static function Load($Key)
{ ... }
I would like to have the return type change depending on the subclass. Something like:
* @...
How can i do the followin tasks
public function addToCache($id,$items)
{
// in zend cache
}
public function getFromCache($id)
{
// in zend cache
}
The first method should take an id and items which should be cached.
The second method should just take an id of an cached object, and should return the content of the cache of that it...
I've got a project that I am setting up file uploads for. The project is in Zend, but I am using PHP's $_FILES array and move_uploaded_file to save the files. This was working perfectly on my Windows Vista computer but won't save the file on Windows 7.
It creates a new folder for every upload no problem, but won't save the file and ...
There are several 'best Eclipse features' topics, with some great information, but there's much that isn't applicable to Zend Studio.
So, Zend Studio users, what are your best timesavers?
...
Is there a blessed way to run a Zend_Application from the command line? That is, I want to run a shell script that invokes a Zend_Application, loads its configuration, and then calls a specific controller action OR run an arbitrary command line script with access to the applications configurations, models, etc.
I can think of a few w...
The following is a drop down menu I am trying to add to a Zend Form. Currently the value of the form is 0 for Running and 1 for Triathlon. Instead I want the values to be the same as the labels. What am I doing wrong? I checked Google but seems like I am doing it right. I have checked this against another one and they seem to be the ...
Lets say yy only option right now is to work on files from my jump drive that I keep on my keychain. I've got a few computers I can use to code on, but none that I can install anything on or alter in any way. Could I get started and use the 'powerfulness' and functionality of the zend framework by just downloading the files to my jump dr...
I am trying to create a login system with Zend that when a user tries to access a restricted page they will be taken to a login page if they aren't signed in. The issue I'm having is getting the URL they were trying to access before hand. Is there a Zend Function that will return everything after the base Url? For example, I need "mod...
I want to create a Zend Controller Test Case with Zend Studio 7.0.
(from Zend documentation)
"To create a new Zend Controller Test Case:
1. In PHP Explorer view, right-click the Controller file containing the classes you would like to test and select New | Zend Framework Item | Zend Controller Test Case."
But I can see only "Zend C...
One of the original designs of the Zend engine, if I recall, was that it was to be relatively easy to embed for other languages one might wish to create. Basically, the PHP syntax without all the PHP modules. Is this still the case?
...
Hello!
Is it possible in Zend View helper (extends Zend_View_Helper_Abstract) get info about module/controller/action in which that helper was called ?
...
Hey guys, I'm starting with Zend, and trying to understand the way it works (getting there), and with Acl classes, people seem to declare all the roles and resources in one file. Now to me this seems a bit of a waste of system resources if the person is only logging in as a basic user, or even just a guest/visitor to the site. So I was t...
I have a generally straight forward web service that I've written (converting code to ZF from a Java implementation of the same service and trying to maintain the same wsdl structure as much as possible). The service loads a PHP class, rather than individual functions. The PHP class contains three different functions within it.
Everyth...
Hi everyone,
I am trying to configure Zend Server CE based on the instructions in the book "Pro Zend Framework Techniques - Build a Full CMS Project".
The book has me do the following:
Alter httpd.conf from:
DocumentRoot "C:\Program Files\Zend\Apache2/htdocs"
<Directory />
Options FollowSymLinks
AllowOverride None
Order...
I have a folder ( i mean a project)which is connected the server (svn)
my requirement is to show the svn updation number and the updated date, in a page
$info = @file('.svn/entries');
then i displaying the values from the the array $info
echo $info[9] should come 2010-01-11T06:21:33.250281Z.But the date is comming a another date 201...
I'm having a problem with chaining some routes using another variable at the end. I'm using wild card sub domains.
Like this: http://eric.mysite.dev/mypage1
mypage1 is going to be a GET variable. So what I want is http://mysite.dev/donate/now/index/id/eric/pagename/mypage1
I have it working fine without the pagename like this:
$router=...