zend-framework

Specifying Parameters in Zend_GData when using an Oauth Token?

So, I figured out how to get an access token from Google using the Zend_Oauth library in 1.10. Now lets say I want to get my contacts... $config = array( 'consumerKey' => 'zzz', 'signatureMethod' => 'HMAC-SHA1', 'consumerSecret' => 'xxx' ); $token = unserialize($_SESSION['GOOGLE_ACCESS_TOKEN']); $client = $token->ge...

How to fix Zend session incorrect data ('css')

I have coded a simple admin module with ability to paginate records and sort them by some column. And when I sort and then call some other action on the records it should redirect the user back to index page with the same sort parameters as there were before. But after I call the indexAction() with parameters like this /admin/users/inde...

Zend Framework - JQuery - Date Picker - Format Date to YYYY-mm-dd

Hi, Im using a JQuery DatePicker in a Zend Framework based application Form. Here is the code for the date picker $this->addElement('datePicker','movie_release_date', array( 'label' => 'Release Date:', 'required'=> false ) ); By default, when you pick the date, it is stored in the text input li...

Zend Framework: How to POST data to some external page (e.g. external payment gate) without using form?

Hi, I would like to have a user redirected to an external credit card gate. Of course I have to POST some user info to that gate, but I don't know how exactly can I do this. I know that I could do this by generating a html form with hidden or read-only fields and have a user click "Submit" button. But this solution is not perfect, beca...

Zend Framework - Last Code to Execute Before Layout is Rendered

I want to execute some code right before the layout is rendered, after all other code is executed. Where would I put that code? I am specifically trying to modify the files referenced in the headLink, headScript, and inlineScript view helpers before they're used by the layout. Here are the steps I want to take: Loop over the files i...

Zend Framework Amazon S3. How to create subfolder in a bucket?

How to create subfolder in a bucket? $s3->createBucket creates only a bucket if I tried $s3->create('bucket/subfolder') it says: bucket name contains invalid characters. tried this either: $s3->registerStreamWrapper("s3"); mkdir("s3://bucket/subfolder"); didn't work either. P.S: credentials are valid. so don't tell me that I'm passi...

Zend_Auth - Forced to use Zend_DB for quick installation/use?

Hello, i am thinking of using Zend_Auth as the Authentication "mechanism" (component) for a web site. After a quick look a realized that for Database Table Authentication i will also have to use the Zend_Db component. Has anyone tried this approach? Am i forced to use and/or extend/implement the Zend_DB methods/interfaces in order to ha...

Problem with using Jquery.ajax over .load on Zend

Right now, what i'm trying to do is to replace a label on the front page with a block of html. Right now, the page basically has: <label id="replace"></label> the js currently has: $(document).ready(function(){ $("#replace").load('/test'); }); the Zend class function has: public function indexAction(){ $this->_helper->layout()...

Get Wordpress to Coincide with Zend Framework at the base level

Hi all, I have a current wordpress blog with the blog posts URLs structured as http://somedomain.com/2010/02/postname I'm now installing a zend framework implementation at the base level http://somedomain.com/ I DON'T want my blog to have a different url structure. like http://somedomain.com/blog/2010/02/article-name Any ideas on ...

Zend Framework: How should I unit test my Mapper in Zend_Db?

Hello, How would I test my mappers in Zend_Db? Each of my model will have 3 classes: The Model The Mapper The DbTable Here is my Unit Test: <?php // Call Model_BugTest::main() if this source file is executed directly. if (!defined("PHPUnit_MAIN_METHOD")) { define("PHPUnit_MAIN_METHOD", "Model_ArtistTest::main"); } require_once...

Getting a response from the mailserver, if the email has been sent

We recently had the problem that important timed emails could not be sent by the mailserver but the Zend_Mail send() function didn't return false since the email was successfully delivered to the mailserver. In our situation the mail cue was jammed up due to some thousends of non sendable emails produced by a couple of cron jobs. How ...

Debugging Zend Framework project with NetBeans / XDebug

Hello, Has anyone been able to set up NetBeans debugging of a Zend Framework project? I have XAMPP running locally on my machine, as well as NetBeans 6.8. From the looks of phpinfo(), XDebug is properly installed on XAMPP. I start debugging session with NetBeans, it connects to XDebug and the page opens, however it will not stop at any ...

zend framework - poll creating

Hi, i'm studying zend. Now i have the following idea: i have a page users/index that contains all users and users/view/id/5 that shows info. Also i want to make some kind of rating users. That means, that user can click smth like user/rulez/id/5 and give a vote to user#5 and that must be redirected to page user/index(or user/view/id/5) ...

zend_date relative time

Hi, i want to make stackoverflow timestamps(X minutes ago, etc). How i can make it using zend_date? I found http://stackoverflow.com/questions/1639892/how-to-calculate-time-passed-with-php-or-zend-date this realisation, but it uses other library. Are there any different ways? ...

Zend Form AJAX popup with jQuery

How to do the following: I want to have a link [upload image] which pop ups modal form, and when user populates it, the form is processed. (The question is not about uploading, this may be a contact form or anything). My problem is, how to display the form and server side validation messages when validation fails. I have found this tu...

Retrieving a Google Calendar Event with Zend_Gdata Library Using Event URL

I'm trying to retrieve a Google Calendar event using the Zend Gdata library. When I create an event I store in my database the event URL returned by the insertevent method. Initially I thought I could just use this URL to then delete the event later on. After a little research I realized that you actually need a special URL which is the...

I am using an INI file format to create a Zend Form but I cannot seem to get the options array filled in from the ini.

Is there a way I can get my the following function ported correctly to the the Zend_Form_Element? I have a custom element and i am passing my own options in for the details of what I am working on: below is the PHP and following will be the INI $html = $this->helper->formBlah(array( 'name'=>'foo', 'value...

Create Zend controller

I am using ubunto & want to create zend controller, 7months ago i created about 5 controllers in my application & it works fine but when now i try to create another one using sajid@salman-laptop:/var/www/vcred$ zf.sh create controller verifier It show error message like: An Error Has Occurred String could not be parsed as X...

Modify Stack in the Zend HeadScript View Helper

I am trying to attack this problem from a completely different angle, because it doesn't look like I can achieve my goal that way. I want to loop over the item stack in the HeadScript View Helper, and make modifications to it. The documentation for this and some of the other view helpers makes this statement: HeadScript overrides e...

Zend_XmlRpc_Server, Apache 2 and 301

I've written a very simple XML-RPC server application using Zend Framework 1.9, and it's running in an Apache 2 server on Windows. The application is in a virtual directory, defined with an "alias" directive. My problem is that calls to the application from a client always seem to return a 301 error - "moved permanently", causing the cl...