Hello,
I've got a really weird problem with ZF (at least for ZF newbie): I can not access my existing controller and its action method.
No problems with:
localhost/
localhost/index
localhost/index/index
localhost/index/about
But, I've set route like this: /localhost/test, pointing to index controller and indexAction and I see 404 ev...
I am trying to read some settings from php.ini using zend. The API that I am using is
long zend_ini_long(char *name, uint name_length, int orig)
But it always returns 0. I have double checked the name and also made sure that the value I am specifying in php.ini is greater then 0. Is there anything I am missing?
...
So I have an app that uses the Zend amazon web services client. I am now getting an error from the service, and I want to see the raw request and response.
I can't find a way to do this in the docs! This class implements Zend_Rest_Client so it seems like there should be a rawResponse() method but there isn't. This is on a production se...
Hi,
I am relatively new to the Zend Framework.
I understand the usage of Zend_Table and can obtain data using the Zend functions from the table associated with that class.
For example I have a video table and in another table I have the association between the video and what category it is in.
Im a little stumped how to active a sele...
Hi, iam trying to implement an Searchmachine into my site. Iam using Zend_Search_Lucene for this.
The index is created like this :
public function create($config, $create = true)
{
$this->_config = $config;
// create a new index
if ($create) {
Zend_Search_Lucene_Analysis_Analyzer::setDefault(
new Zend_...
The other day I was looking into Zend Server and I was wondering why I would use this? OK, they say it's all tested and mission critical and Enterprise ready etc. But to me that's just the marketing department talking.
Is anyone out there using this product and if so can you share your experiences with it and maybe you could also elabor...
So followed all the basic tutorials. Am using Zend 1.8 but i keep getting this exception when using Zend_Auth_DB. Any ideas, there is only one row in the table.
Exception information:
Message: The supplied parameters to Zend_Auth_Adapter_DbTable failed to produce a valid sql statement, please check table and column names for validity.
...
I'm trying to figure out how to redirect to a new page (different application, controller, action) and maintain the current POST data.
My app is validating the POST data and if a certain criteria is met, I want to redirect to a different location, but make sure the POST data is passed as POST data to that new page. Here's a rough exampl...
I want to generate a dynamic site using Zend_Layout.
My layout (/application/layouts/scripts/layout.phtml) contains the following lines:
...
<body>
<?php echo $this->render('header.phtml') ?>
<div id="content"><?php echo $this->layout()->content ?></div>
<?php echo $this->render('footer.phtml') ?>
...
Hi,
I'm wondering if I can use a constructor within a class I am writing to provide a Zend_Amf gateway. When I do:
$server = new Zend_Amf_Server();
$server->setClass('Foo');
$response = $server->handle();
echo $response;
Does foo's constructor get run here? The reason for asking is that I need my 'Foo' class to access other objects a...
I'm using charles proxy to debug a zend amf response. The headers are coming back as:
HTTP/1.1 200 OK
Date: Sat, 29 Aug 2009 10:04:32 GMT
Server: Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8k DAV/2 PHP/5.3.0
X-Powered-By: PHP/5.3.0
Content-Length: 33
Content-Type: text/html; charset=utf-8
Should the content type be application/x-a...
Hey SO,
I'm trying to include a premade messageboard, Phorum, into one of my Zend projects. Phorum is a relatively large and intricate web of PHP includes. My website already has a signup, so I'm trying to combine the two login systems into one.
What I've done is to make a controller that includes the Phorum index.php. This will l...
Hello, I have read the answers to a question asking whether Zend PHP certification is worth the effort:
http://stackoverflow.com/questions/165999/zend-php5-certification-does-it-matter
I was wondering whether anyone has completed the Zend Framework Certification? Is it worth doing? I know they have a 'Yellow Pages' directory of certif...
I have yet another weird annoying thing going on with Zend.
Basically, I have the following code after creating a user domain:
$this->auth = Zend_Auth::getInstance();
$this->view->user = $this->user = $this->auth->getIdentity();
$this->user->idSite = $idSite;
$this->user->urlSite = $urlSite;
$this->auth->getStorage()->write($this->user...
I've been using Zend and need a search. The Zend docs aren't great so I had a couple questions that are easy to answer but not directly obvious. I'm using Lucene to search an SQL database
How do I associate the index of my item with the text of that item. So if they search and find the item, how do I get its index returned? As far ...
Is there any way to pass a callback to java code, from C. And the call returns immediately. Later on, after completing the task, the java code can invoke that callback.
I have a C extension for php that calls a java store to store some items in it. The items can be retrieved from store in synchronous and asynchronous methods (I provide...
I'm validating user entered date string in YYYY-MM-DD format using Zend_Validate::is($value,'Date').
this call causes this hierarchy:
Zend_Validate::is()
Zend_Validate_Date->isValid()
Zend_Date::isDate()
Zend_Locale_Format::getDate()
Zend_Locale_Format::_parseDate()
and then fials with this exception:
Zend_Locale_Exception: Unable t...
Environment:
WindowsXP,
Eclipse Galileo,
Zend Community Edition
(I have configured Eclipse to use the PHP binary in Zend.)
I configured the Apache document root within Zend to point to my Eclipse project folder. So I can use URLs like this:
<form action="http://localhost/myscript.php">...
But this doesn't work work:
<form action...
Hi Guys,
I'm getting the following error migrating my code across from my Windows dev machine to my linxu production machine. I'm aware there are always separator and case sensitivity issues (which I have fixed), however this one seems to be coming from the Framework itself.
My controllers are all following the convention (Uppercase f...
I have a method which loops over an array of objects and commits an update statement per object (a total of 15 objects with 5 fields each). This may have to be performed hundreds or even thousands of times a second, depending on the level of traffic we get.
What is the best way (aside from hardware considerations) to ease the load this ...