I search a good resources with examples to use a doctrine memcached and zend framework.
i search in google but not found, i need resource that Combine all this things.
using Doctrine_Cache_Memcache in zend framework.
thanks
...
The Zend_Form_File is generating an error:
Warning: Exception caught by form: Method getImageValue does not exist Stack Trace: #0 /var/www/vhosts/mp3.al/library/Zend/Form/Decorator/Image.php(137): Zend_Form_Element->__call('getImageValue', Array) #1 /var/www/vhosts/mydomain.al/library/Zend/Form/Decorator/Image.php(137): Zend_Form_Elemen...
I am getting this error:
Warning: Cannot modify header information - headers already sent by (output started at E:\www\dev\elearning1\WebProjects\elearning\public\test.php:1) in E:\www\dev\elearning1\WebProjects\elearning\public\test.php on line 3
This is my entire PHP file:
<?php
header('Content-Type: text/html; charset=utf-8')...
I am trying to implement google authentication on my site using the google federated login approach http://code.google.com/apis/accounts/docs/OpenID.html#oauth which combines openid and oauth together. I want to use the oauth access token generated via the above flow to access the gmail imap using oauth : http://code.google.com/apis/gmai...
I'm using some Zend libraries outside of the Zend Framework in a small project.
I'm using Zend_Db and Zend_Paginator but when I'm trying to set up the pagination using Zend_Paginator_Adapter_DbTableSelect I get an error that it can't find the class.
Fatal error: Class 'Zend_Paginator_Adapter_DbTableSelect' not found in C:\xampp\htdocs\...
I have a Zend_Form_Element_MultiSelect element. I would like the output to be something like this:
<select id="users" multiple="multiple" name="users[]">
<option value="1" class="role-1">User 1</option>
<option value="2" class="role-1">User 2</option>
<option value="3" class="role-2">User 3</option>
</select>
Is there a way t...
Basically i need to have this query done through zend framework.
SELECT k.id AS ID ,k.name AS NAME ,k.ppu_sell AS PRICE, k.type as TYPE FROM `inventory` as k UNION
select m.id AS ID, m.name AS NAME, m.price AS PRICE, 'menu' as TYPE FROM menu as m
...
Hi
I have been going mad with this, I have found some threads on this but none of them solve my problem.
I have my bootstrap.php file for testing which looks like this
define("PHPUNIT", true);
require_once("/Applications/XAMPP/xamppfiles/htdocs/Common/test/public/index.php");
My index.php file does not call run() on the application ...
Hi
I was wondering when to call from the view a Custom View Helper like this one
<?php
class Zend_View_Helper_MyHelper
{
public $view;
public function setView(Zend_View_Interface $view)
{
$this->view = $view;
}
public function myHelper()
{
return $this->view->escape(’This is being output from the custom helper <br
/>’);
}
}
?>
and an...
Hi
I have been trying to use PHPUnit to test an application. I have it all working, but cannot test redirects.
My redirects are occurring inside an Acl Controller Plugin, not inside an Action in a Controller.
I have changed them to use the suggested format of
$r = Zend_Controller_Action_HelperBroker::getStaticHelper('redirector');
$r...
I have these two models:
class Application_Model_List extends Zend_Db_Table_Abstract
{
protected $_name = 'list';
protected $_primary = 'list_id';
protected $_dependentTables = array('Application_Model_Task');
public function getUserLists($user)
{
$select = $this->select()->from($this->_name)->where('list_us...
Hi,
I've recently inherited a medium-sized php site which is horribly coded. It violates every best-practices methodology, from MVC to DRY, is vulnerable to SQL-injection and everything in between.
I've visited the other questions and already put everything on a VCS and am considering the framework alternatives. However I'd like your ...
Warning: db2_connect() [function.db2-connect]: Statement Execute Failed
on execution it showing warning.
it showing line 65 and it is 'i5_naming' => DB2_I5_NAMING_ON,
in zend studio when i look code it showing call to unidentified function on db2_connect.
what are these options?
i try to connectdirectly using db2_connect with ju...
I have a Zend Framework application that I am trying to tweak so I can use with an iPhone application. Everything in my ZF application requires that you are logged in first.
In the browser you go to myapp.com/auth/login and get a login form. When you successfully authenticate, a cookie is set in order to remember that you are logged in...
Hey,
I am creating websites via Zend Framework and I've been wondering about this for quite some time now...
Imagine that you have created the best articles module and you usually add meta_keywords/meta_description database entries per article, so that when the view renders it populates the meta fields in question with the data entere...
Hi,
When setting up new ZF Projects i normaly have this directory structure:
application
modules
default
controller
forms
view
models
admin
controller
forms
view
models
language
shared
models
library
public
I use only modules when e.g the layout is diffrent, or a diffrent database is used, or of course when its a very spe...
I am just getting started with Zend Search Lucene and am testing on a GoDaddy shared Linux account. Everything is working - I can create and search Lucene Documents. The problem is when I try to index my whole table for the first time I get a HTTP 500 Internal Server Error after about 30 seconds. If I rewrite my query so that I only s...
Hello
A similar problem to mine is in this thread, but it doesn't use Zend_Session so is different from my issue.
I have successfully got PHPUnit working using Zend Framework's ControllerTestCase class. I can log in a user and write successful tests for that log in, so that is fine:
$this->request->setMethod('POST')->setPost(array('us...
Hi,
I am using Zend_Oauth_Consumer which requires a number of config values to be passed. Currently i am passing an array into the constructor like so:
$config = array(
'callbackUrl' => 'http://www.domain.com/twitter/callback',
'siteUrl' => 'http://twitter.com/oauth',
'consumerKey' => 'XXXXXXXXXXXXXXXXXX',
...
Hi,
I'm trying to write a unit test with phpunit for a model that uses doctrine 2. I want to mock the doctrine entities but I really don't have a clue of how to do this. Can anyone explain to me how I need to do this? I'm using Zend Framework.
The model that needs to be tested
class Country extends App_Model
{
public function find...