Hello everyone,
I am creating a from using the Zend Framework version 1.10.7. But I am getting an annoying notice of which I want to get Rid. The notice means that somewehere i have a problem with an array. I just can't find out where it is.
Any Help, idea's?
Notice: Array to string conversion in /var/www/Zend/ZendFramework-1.10.7...
I'm using Doctrine 1.2 with Zend Framework, and it's working just fine. Now I want to start using the results cache and query caching capabilities to reduce the load on DB server that powers the application. Oh, I'm also using Zend_Application and placing code in modules.
Anyway, I setup my connections to Doctrine in the overall Boots...
I set my loggers up in my Bootstrap.php like so:
$logger = new Zend_Log();
if($environment->debug == '1')
{
$stream = @fopen('/var/www/html/rta/rta.log','a',false);
if(!$stream){ throw new Exception('Failed to open log stream'); }
$writer = new Zend_Log_Writer_Stream($stream);
$logger->addWriter(...
Very likely I'm going about this in the wrong way entirely. I'm completely new to the framework..
The site I am developing has two "parts" that are mainly separate. An informational/community half, and a commerce half. I'm using the following directory structure:
--application
----default
------controllers
------layouts
------models
--...
I'm coding a zend framework application using the the standard mvc paradigm with an added service layer to take care of application/business logic. It seems quite popular to put your access control into your services, rather than your modules/controllers/actions, however, I have only seen simple examples with static roles and permissions...
I'm storing all my dates in ISO-format, so all of them look like this:
2010-08-17T12:47:59+00:00
Now, when my application starts, I register the timezone the current user resides in. In my case, this would be "Europe/Berlin":
date_default_timezone_set("Europe/Berlin");
However, when Zend_Date parses ISO dates, it overrides the defa...
I want to use Zend_Cache_Frontend_Output to cache certain sections of my page, I have the cache working but can't get the view helper to render into the cache (the cache entry has data but not the view being rendered). Here's my code but can someone tell me the correct method:
if (!($this->_outputCache->start('page_'.$this->getReque...
I have a ZF website at domainA.com and I'd like to alias domainB.com to something like: domainA.com/photos/album so that album would be the root of domainB.
How might this be accomplished?
...
Hi,
I have strange problem. When I submit form, the whole web site redirects to index. Form method is post. When I change it to get, everything goes right. So what is the problem ?
Form code:
<form action="<?php echo $this->baseUrl('/search/general'); ?>" method="post">
<table class="wf">
<tr>
<td>
<a href="#" oncl...
I have a next structure of my project:
/application
/modules
/default
/layouts
...
/news
...
/configs
/layouts
common.phtml
Header and footer on all pages are the same. I have a block with changing content for different modules. It is not work now. Can you help me. May be you did th...
I wanted to write unit tests for my Zend Framework/Doctrine 2.0 application, but I don't quite understand how to set up unit testing in ZF. Also, I would like to include Doctrine 2.0 in those unit tests. How would I go about setting this up? Can you point me to an example?
Thank You
...
Is it possible to pull rows from a Google Docs spreadsheet using PHP?
In SQL I would use something like:
SELECT * FROM table WHERE field = 'value' LIMIT 1
Is there a way to do this? I've heard you are supposed to use a 'Zend' framework, but I haven't been able to figure that out either. Any help would be appreciated
...
I was wondering if it was at all possible to create a rss(or atom) feed with Zend_Feed that would be on a secured website (With Zend_Auth).
How would users be able to subscribe to my feed?
How would feedreaders handle authentification?
Is there any pitfalls I should be aware of (one I can think of is users who use outlook, IE, and ot...
Hello,
I would like to build an XML over HTTP provisioning interface using Zend Framework. Should Zend_XmlRpc_Server be used for this purpose? If so, can you recommend any guides on using it? (Specifically the part retrieving incoming XML and parsing it.)
...
I've just created a plugin,
Is it possible to modify the param or do setParam in a plugin? if not what is a better approach?
...
I previously posted this question (Reading Google docs spreadsheet) and got a good answer that instructed me to use the Zend Framework. I've never used it before, and I'm fairly certain I'm setting it up wrong. It says to "Simply download the framework,
extract it to the folder you would like to keep it in, and add the library directory
...
in zend framework, is there anyway i can check if a route exists from code?
example
say the following routes/urls are valid (point to controller/action)
/users
/users/1 // /users?id=1
/users/page/1 /users?page=1
/users/tagged/tagname/page/1 /users?tagged=1&page=1
if the user tries to goto /users/nonexistantpage it should fail. soe...
how can i append query strings to a url? i could of course do a (from controller action)
$currUrl = $this->getRequest()->getRequestUri();
$newUrl = $currUrl . '/something/else';
if the requestUri looks like /users thats fine. but what if the url looks like /users?page=1? then i will end up with something like /users?page=1/something/e...
i need advice on how i can implement this action helper. currently, i have something like
class Application_Controller_Action_Helper_AppendParamsToUrl extends Zend_Controller_Action_Helper_Abstract {
function appendParamsToUrl($params = array()) {
$router = Zend_Controller_Front::getInstance()->getRouter();
$url = $...
Hi. Who to create openid registration as on this site?
...