zend-framework

Magento: How to determine if customer aborted checkout process

I'm working on a custom module that needs to know if/when a user has aborted the checkout process. "Aborting" simply means they landed on the checkout's indexAction but didn't complete the process. It's absolutely essential that I know if/when this happens. I was thinking maybe set a session variable that they've entered checkout. On ...

How do I get Zend working with IIS 7.0 (rewrite module v2) and windows 2008?

My website seems to only load the index page regardless of what path it is given. Does anyone know of any known issues with getting Zend working correctly with IIS 7.0 (rewrite module v2) and windows 2008? I'm getting desperate with this and can't seen to find any suitable solutions? I can put a phpinfo() screen shot on if it helps? ...

How do make magento use a different category than 'Default Category' to generate the header-nav?

I have 4 categories within the 'Default Category' category. Currently by default Magento is generating the header-nav from 'Default Category', and displaying the 4 categories at the top of my site. The "Products" category is in the "Default Cateogry". Inside the "Products" category are the sub categories that i want to have displayed o...

Please help me print this array to my email- zend_mail

Hi guys, I'm so dang close. I'm trying to print the contents of a form to an email. Here's what I have. I'm able to pront the contents as an array to my view, but not send the values to the email. public function indexAction() { $formData = array(); $emailData = array(); $form = new Application_Form_Contact()...

Creating a OpenID Provider in PHP

I have an existing website that I want to turn into an OpenID provider. All my user accounts are stored in a mysql table. I figured since an OpenID is represented as a URL, I am going to do something like: http://login.mydomain.com/username I've setup a subdomain, and created an htaccess that redirects all URLs to /login.php?username=[...

Accessing form variables in a dynamic dijit.dialog (content of which is from href)

Hello, I have the following code to create a dijit.diagram which loads a form from an external link: function openDialog(userID) { composeDialog = new dijit.Dialog({ id: 'composeDialog', title: 'Compose a Message', style: 'width: 400px', href: 'myform.php?userID='+userID }); composeDialog.show(); } now inside m...

Zend Framework - how to fix the path?

Q. How can i fix this Zend_Feed_Reader? My error: Could not load extension: JungleBooksusing Plugin Loader. Check prefix paths are configured and extension exists. Please kindly check the code from this link(because in stackoverflow paste code is very complex): http://gist.github.com/469387 Thanks in advanced ...

Zend_Session uncaught exception

So I have this in my index.php: Zend_Session::start(); Then in one of my controllers in the init method I do: if (false === isset($this->defaultNamespace->tree)) { $this->defaultNamespace->tree = array(); } Which still works. But then in action in the same controller I write this: unset($this->defaultNamespace->tree); // I tri...

Zend Mail - Getting extra characters from getBodyText

I'm having an issue with Zend Mail. When I try to preppend some text to the body text before it's sent, I end up with extra characters, like '=' that shouldn't be there. When the email is sent normally, they don't appear either. Here's what I mean (this is from a class that extends Zend_Mail): $bodyHtml = $this->getBodyHtml(true); $t...

Zend framework - Where to Initialize session when the router needs access to it

Hi. I work in a project which uses the session a lot. We have a db handler (the standard one from Zend) and currently i have this initialization (db handler + session start) in a plugin for the preDispatchLoop. Previously it was in preDispatch but because of it being called for each action (included those in the 'forwarded' action, it ca...

Dojo: ComboBox / FilteringSelect

I'm wanting to do a load of several combobox / FilteringSelect. What happens is that I have 4 combobox / FilteringSelect. Country Destination Hotel Comfort Classes these combos is related, when you load the page first loads the Country combobox depending on the country that bear the combobox is selected Destination So far so good when ...

Set custom event items dynamically for each log call using Zend Framework

We're using the Zend_Log class to update a few different "watchdog" database tables (that log different events: Batch scripts running, new data being processed, files generated, etc.). Here is my current code (before the issue I'm looking into fixing.) $writer = new Zend_Log_Writer_Db($db, 'watchdog', array( 'priority' => 'priorit...

Zend DB and encoding

Hi guys I have just encountered something rather strange, I use the Zend Framework 1.10 with the Zend_Db_Table module to read some data from a databse. The database itself, the table and the fields in question all have their collation set to "utf8_general_ci" and all special chars appear correctly formatted in the DB when checked with p...

zend framework global functions

Ok I know this is all sorts of Wrong.. But.. I have a few functions I use regularly, and I want to make them more easily accessible to me. Right now I'm wrapping them in a Model_class as a work around, and I couldn't figure out what to do with them. Where does someone put these common functions. I'm sure others have third-party libr...

Can't handle errors in PHP's SoapServer->handle() method

I've created a WSDL-based SOAP web service using PHP 5.3. I'm using Zend Framework to handle the service, and ZF in turn is layered atop PHP's built-in SoapServer class. In testing with SoapUI, I discovered that passing a parameter of invalid type (e.g., passing a string when an integer is defined by the WSDL) resulted an empty response...

why aren't error messages showing on zend_form if validation fails?

I'm trying to get the standard error messages to show up in zend_form but they don't. I have this: if ($form->isValid($formData)) { // do stuff } else { $form->populate($formData); $this->view->form = $form; } When I post an invalid form, the form does show up ...

not able to get Zend_Filter_Input to work properly

Hi, I am trying to get the Zend_Filter_Input to work as required on a simple login form. Here is my code $filters = array('username' => 'StringTrim', 'password' => 'StringTrim'); $validators = array( 'username' => array('Alnum', 'presence' => 'required'), 'password' => array('Alnum', 'presence...

My page takes too long to load! How can I cut the page load time!

Hi guys I'm testing out my application. Using firebugs I've found out my application is abominably slow and needs to speed up. I have one huge clumped up javascript file thats over 700KB, that includes all my js libraries but the spooky part is the code itself takes anything between 20 to 40 seconds to run. Now the thing is that my code...

Any suggestions on a basic PHP library for doing session management and authentication?

Hi, I am working on a project that exposes a number of web services to the public. Right now I have the serialisation side done (Using ZendAMF) and now I need to do the authentication. I was looking over Zend Session and Zend Auth and they look like they do what I want, but while doing that research I came across a lot of people expre...

Zend_Db subquery

Hi Everyone, I've been trying to construct a sql query with ZendFW, but I cant seem to get it to function like I want to (or function at all). This is the query that works that I'm trying to build with zend_db select() SELECT tc.trip_title, td.ID, td.trip_id, (SELECT count(*) FROM 'trips_invites' ti WHERE ti.destination_id=td.ID ...