zend-framework

Trying to find an open source mailing list system to integrate into my Zend Framework application

I'm looking for a simple, open source mailing list application (or library) that I can add to my Zend Framework application. I can't seem to find any that are decent, and once I have, not quite sure how I will integrate it (due to MVC). Has anyone done this? ...

How to use Zend_Mail_Transport_Smtp with hosted Google Apps?

So I'm under the impression that bad things will happen if I don't use Zend_Mail_Transport_Smtp when sending lots of emails. Problem is...I can't figure out how to set it up. I host my website through DreamHost, and have my email (and other domain specific apps) through google. So to access my email, I go to mail.mydomain.com, which take...

How can I escape complex sql in Zend Framework?

I have the following sql (a simplification of the real problem): SELECT * FROM t WHERE myname LIKE '%{$input}%'; How do I escape the $input? I can't use the quoteInto (unless I miss something). As $sql=$DB->quoteInto("SELECT * FROM t WHERE myname LIKE '%?%'",$input); Will give me SELECT *...

How do I implement Direct Identity based OpenID authentication with Zend OpenID

Hi Guys, I'm using the Zend framework and the openid selector from http://code.google.com/p/openid-selector/ - however I find I can't login using sites like Google and Yahoo as they use direct identity based login system whereby one is just redirected to a url as opposed to entering a unique url of their own for authentication. I've che...

Trying to find an AJAX file upload solution for Zend Framework using jQuery...

I'm trying to create an "upload file, and email as an attachment" form where the file starts uploading after it has been selected (like Gmail), before sending the email. I would also like to implement a progress bar to show the status of the upload. There should be all sorts of examples out there, but I just can't find them! Do you kn...

How does one unit test the addition of a row to a database with Zend Framework & PHPUnit?

To test inserting/update of a row, I've written a test to simulate a post, to check that it redirects, and to check that the newly inserted/updated text is on the page. The code works, but not the test - can you tell me why it's wrong? public function testEditProduct() { $request = $this->getRequest(); $request->setMethod('POST...

passing variables in a mvc pattern

Hello, I have built a system that conforms to the mvc pattern in PHP. The controllers and actions are part of the urls in my application. So I have: www.example.com/controller/action/ So now I am looking for a way to pass on variables. For forms I just use the post method, but sometimes I would just like to link to a different page an...

How can I attach two Radio Buttons in Zend Framework to one ID?

I am trying to create radio buttons with Zend Framework. This is the way I want to do it: ()Yes ()No John Smith ()Yes ()No Peter Fallon I want to attach two radio buttons to one ID: Thanks Ok now I am getting how this works, thanks for your patience. Well this is what I have. class ListForm extends Zend_Form { public functio...

Where do I save partial (views) in Zend Framework, to be accessible for all Views in my App?

I have several view Partials (like paginator partial) which I want them to be available To all view scripts in my application. Is there a directory I can put partial vies in, and they will be available to all? Or, how do I define such a directory? ...

Integrating jQuery, jQuery UI, and jQuery Themes with the Zend Framework

Update: this question refers to an older version of Zend Framework. To see how to integrate jQuery with a Zend Framework 1.9.4 (1.8+) application refer to this question. I think I understand the basic concepts, but I must be going wrong somewhere. I'm trying to integrate jQuery, jQuery UI, and jQuery Themes into my Zend Framework appl...

What is the best way to create a "fully" modular ZF-based application?

For the past time I have been working on a Zend Framework based webshop application that we are building from scratch. The application has been successfully been set up for several clients, but we are stumbling upon more and more problems regarding extensibility and modularity of the application. A lot of clients require a lot of differ...

Populating a FilteringSelect datastore from an onChange event.

I'm trying to bind an onChange event of one FilteringSelect to populate another FilteringSelect. // View dojo.addOnLoad(function () { dojo.connect(dijit.byId('filterselect1'), 'onChange', function () { dijit.byId('filterselect2').store = new dojo.data.ItemFileReadStore( { url: "/test/autocomplete/id/" + dijit.by...

How to generate random password, or temporary URL, for resetting password in Zend Framework?

I have a basic authentication process that uses Zend_Auth_Adapter_DbTable. I have login and logout actions on my Authentication Controller. Now I want to create a function to reset forgotten passwords by automatically generating a password, saving the new password, and sending them an email with the newly generated password. What would ...

Zend Framework: How to get default param?

How do I get the 'default' param if not specified? Consider the following: http://localhost/controller/action/id/123 In my controller, I can get the value of 'id' using $request = $this->getRequest(); $id = $request->getParam('id'); If the URL is http://localhost/controller/action/456 how do I get the value of 456? What is the ...

Zend_Db_Table: What happens when insert results in an error?

This is probably an easy question to answer, but I don't see it mentioned in the documentation... What happens when insert results in an error? Is an exception thrown? What type? I'm trying to understand what would happen when trying to insert duplicate data in a column that is unique. So I feel like I need to do some checking first......

Zend Framework: How best to go about retrieving the first name of an authenticated user?

I can get the username by doing this: public function indexAction() { $this->view->username = Zend_Auth::getInstance()->getIdentity(); } "username" is the column in the table that validates the identity. "firstname" is also a column in that table. Does Zend_Auth only store the username? Or is there a way to access other columns fr...

Class Zend_Test_PHPUnit_ControllerTestCase could not be found

When I run phpunit to test my controller there always comes the message: Class Zend_Test_PHPUnit_Controller_TestCase could not be found ... All require_once are executed and run without errors. My files: Test.php: <?php require_once 'bootstrap.php'; class indexTest extends Zend_Test_PHPUnit_ControllerTestCase { protected functi...

Zend Framework: How to unset data rows in a Zend_Db_Table_Rowset object

I would like to iterate over the data rows stored in a Zend_Db_Table_Rowset object and then drop/unset some of the rows, if they don't fulfil certain criteria. I could use toArray() to get only the data rows from the object and then it would be easy to unset the rows I don't need. But since I want to keep my object for further use I don...

serving images from a filespool using zend framework

Hi, I have a quick question about how to serve data from a repository in a application that I am writing using the Zend Framework. My current structure is: /application /filespool /library /public In the filespool are a number of user identifiable folders that contain user content that is uploaded via forms, mainly jpg/png and pdf. ...

How to do pop before smtp with Zend Mail ?

Hi All I just started to use Zend Mail Compoment and i need pop before smtp, but in the zend mail doc no mention about that. Can anyone advise on that ? Thanks ...