Tag Archives: zend-framework

Stop layout rendering for Ajax request with custom routing

How can I stop Layout rendering, when sending request through AJAX..
The problem I face is json data is echoed on the browser, not passed to tha call back function of jquery
here’s my script

jQuery.ajax({
    url: "/getPrivileges",
    type: "POST",
    

Continue reading

Tagged , , , , | Leave a comment

Get Instance of selfwriten Zend_Controller

I have an Callback-Method like setStatusCallback().
Now, I want to overgive the Action-Method statusAction() which is placed in my User_IndexController-Class.
I know, that I can overgive a Callback-Method to setStatusCallback() like setStatusCallback(array(&$obj, 'statusAction'));…
Next Probelm ist now, when I write Continue reading

Tagged , , , | Leave a comment

Doctrine automatically create all the database tables?

is there any way to tell doctrine automaticaly create schema tables without using this command :

doctrine:schema:update --force

Continue reading

Tagged , , , | Leave a comment

Setting up zend framework

I’m trying to set up Zend framework on my netbeans.When I run the application I get the following error:

Warning: require_once(Zend/Application.php) [function.require-once]: failed to open stream: No such file or directory in C:Documents and SettingsmarybDesktopZENDZendFrameworkQuickstart-20100208publicindex.php

and the following error:

Fatal 

Continue reading

Tagged , , | Leave a comment

How to get the actual image from Picasa using Gdata

I am trying to output the actual URL to the high resolution image of a photoentry. A photo entry Zend_Gdata_Photos_PhotoEntry… of the Gdata contains the data of photo stored in Picasa.
Currently, I found to methods to output URLs to Continue reading

Tagged , , | Leave a comment

PHP Session Expiration – When does it refresh?

I’m using Zend with a session expiration set to 1,800 seconds. I was wondering if this session expiration time refreshes back to 1,800 seconds every time I make a request from the browser to the server on behalf of the… Continue reading

Tagged , , | Leave a comment

Zend Server “Caching” of JS and CSS files

I’m running Zend Server in a CentOS VM on Vitrualbox and I’m having a problem with linked JS and CSS assets being “cached”. I say “cached” because they aren’t, in the true sense, being cached, but rather when I add… Continue reading

Tagged , , , , | Leave a comment

PHP – instanceof v === null

Is there a specific benefit of using instanceof instead of === null before initializing objects in php.
I see code like this all the time in the Zend framework:

if (!self::$_httpClient instanceof Zend_Http_Client) {
        /**
         * @see Zend_Http_Client
         */
        #require_once 

Continue reading

Tagged , | Leave a comment

phpunit testing with ajax and zend framework

i have a problem with writing tests for my action that gets called by jquery via ajax. i don’t know how to catch the data that is being sent back to the view, by the action, so that i could… Continue reading

Tagged , , , | Leave a comment

Is it safe to develop for older versions of Zend Framework?

Our vendor-supported server’s O/S only supports PHP 5.1.6, which limits us to ZF 1.6. The current version of Zend Framework requires a higher version of PHP.
We’re struggling to decide whether to adopt ZF because of this incompatibility. Is it… Continue reading

Tagged , | Leave a comment
52 pages