zend-framework

Magento - Displaying Configurable Product Options under a Grouped Product

Hi All I am trying to create a grouped product by grouping some configurable products. I know it is possible. The grouped products attributes should be set to Not Required. This is found on Inchoo's website. What I am trying to achieve here is that, I want to show the options of the configurable under the grouped products grid. For ex...

Zend framework on shared hosting

I have a problem. I'm trying to deploy my zend framework app on a shared hosting. In local, with xampp was everything ok, but on shared hosting I received the following message: Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /application/public/index.php on line 40. The line 40 is: $application->bootstrap()->run();. Any idea...

Implementing PostgreSQL arrays in Zend Model

Couldn't find anything related to the subject in Zend Framework API. What is the best way to implement Postgres array based property into Zend Model Class? I know one can parse array from "{ smth1, smth2 }" like string, but I still hope that there is more unattended approach in Zend case. Thanks. ...

PHP Framework: Ebay Like Site

Hello all, I am going to be builiding a site like ebay - with all the features of ebay. Please note my payment method is limited to paypal. What would be the best PHP framework to use to build this quickly, efficiently and with the smallest learning curve? I have narrowed down to CodeIgniter as the major contender for this p...

Working with Zend Framework FlashMessenger and jQuery UI state classes

I have a Zend Framework application that is making use of jQuery UI. In my controllers, I am setting error/success messages with the FlashMessenger helper like this: // ExampleController.php $this->_helper->FlashMessenger('Sorry, could not complete your request.'); In my layout, I am displaying the messages by using the Noumenal Flas...

How to register Zend_Log in the bootstrap of a ZF 1.8+ application?

So I want to start logging in my Zend Framework application. I want to register the logger somewhere in my bootstrap so that I can easily access it from any controller action. I think this should be a simple thing that has been done before, but how can I do this? The documentation shows something like this, but I don't want to create a ...

Zend_JSON:Encode messing up - why!?!??!

My Zend_Json is messing up in encoding an object here. I'm encoding an associative array which has two elements: Element one is another associative array while element 2 is an HTML string. He's goofing up such that the Html string part contains just NULL!!?!?!?!? Heres the element UNencoded when I do a var_dump on it...sorry for the loo...

Zend Framework - multiplate navigation blocks

Hi I want to use the navigation helper to build my navigation menus using Acl. The Acl part I have working fine. I now want to be able to display a few different types of navigation. E.g. admin-nav, side-nav, new-nav, etc. I cannot find anything about this in the docs. Only how to set the navigation and then use that one navigation obj...

Zend Mail problem with foreign char + comma

Hi! Zend Mail throws an exception (because mail() returns false) when the to name is set to something with both a foreign character (like "å") and a comma (","). Re-produce with code below. $mail = new Zend_Mail('utf-8'); $mail ->setFrom('info@myhost', 'My company') ->setSubject('hi') ->addTo('[email protected]', 'aå,a')...

Can I generate table creation sql from Zend_db ?

Hey, I have to work on this project written using Zend Framework. This is a project developed by somebody else that is unreachable at this time and I only have the php code but not the database. I've never worked with Zend Framework but from what I've managed to understand it's using Zend_db to relate with a MySQL database. Like I said...

Get radio button value on form post in Zend Form

Hello, i have an element of type Radio in zend form . how can i get value of radio button on form post. keep in mind i am using Zend Form if ($this->_request->isPost()) { if ($form->isValid($_POST)) { $values = $form->getValues(); } } i am already doing the above code it is really correct way to get values of posted e...

How do I add a limit to update-query in Zend Framework?

Hey! How do I add the LIMIT 1 clause to an update when using Zend Framework? I'm kind of forced not to use Zend_Db_Table_Abstract::update() since it executes itself unlike the sweet Zend_Db_Select-classes. The reason to do this is just precaution and I think Zend_Db_Table_Abstract::update()'s syntax makes more sense when found in code...

Fallback route with Zend Framwork

Hello! I'm having some difficulties while trying to understand the whole zend routing concept. My scenario is to have a fallback controller for my small cms app. I've already implemented my own route class for this. What it does is, similar to module route, to try to check if the module from the given path does exists, if not my cms cont...

Controller folders and the new Autoloader in Zend Framework

After introduction of Autoloader, I started to port existing ZF app. The immediate error was that IndexController was extended by BaseController, which is now cannot be found, although it resides in application/controllers folder, with other controllers. Does the autoloader paradigm require that BaseController is renamed to My_BaseContr...

Serve a large file via Zend Framework

In our application, authentication is handled via set of Controller Plugins that validate the user etc. I want to serve a large (video) file only to authenticated users- the obvious way to do this is via readfile() in the controller, but I'm finding it hits the PHP memory limit - presumably the output from the controller is buffered som...

The best way to render a Zend_Form with existing markup

Hello! I want to use Zend_Form because of its validation and filters etc. But the markup for forms is already done. Even worse, it isn't very standardized, so writing my custom decorators is not a solution. Is there a simple way to "apply" Zend_Form to existing very custom markup? I think it's a common problem. ...

Does form processing code need to be abstracted? (Zend_Form)

In Zend Frameworks tutorials, I can see form processing code like if ($request->isPost()) { $formData = $request->getPost(); $code = $request->getParam("code"); $url = $request->getParam("url"); if ($form->isValid($formData)) { // here goes code to determine insert/update action...

Zend Framework getting started with Eclipse

Where can I find a good tutorial to get started with the latest version of Zend Framework using Eclipse or Netbeans? I would like Eclipse as my IDE as I like these features: * Syntax highlighting * Outline * Code assist * Code templates Besides that I use Mysql 5 as the db. Is there any free / paid video tutorials for the Zend frame...

Zend framework concurrency and ajax

I'm developing a web application with zend framework. It is an app for selling movie tickets. The app allows users to select a seat and then buy the ticket. (The problem is similar to the classical air ticket booking.) I have two problems. Problem 1: The page that shows all seats has to refresh with ajax (a seat is green if available a...

Best practice for HTML escaping user-supplied data with PHP (and ZF)

Note: I'm using Zend Framework, but I think most of this applies to PHP coding in general. I'm trying to choose a strategy for writing views scripts, possibly with the help of a templating engine. Motivations: clarity and security. I'm just not happy with writing .phtml scripts. This syntax is awfully verbose to do the most often needed...