zend-framework

Use Zend_Queue without Zend Server

Is it possible to use Zend Queue without to have Zend Server installed on a server ? ...

I can't solve this session related issue!

Hi there, I am using Zend Framework and 3rd party application written in php for file upload. Upload process is ajax like, and I have annoying problem probably caused by this app. Problem is that upload application somehow destroys my Zend_Session! Here is the error which I am getting (with firebug console): http://pastie.org/738834 ...

Weird issue with Zend_Framework Boostrap

Hello, I am trying to setup the Zend Framework on a windows machine and i get this error: Fatal error: Class 'Zend_Application_Bootstrap_BootstrapAbstract' not found in C:\wwwroot \projects\relaunch\library\Zend\Application\Bootstrap\Bootstrap.php on line 36 My include path is: C:\wwwroot\projects\relaunch\library;.;C:\php\pear;c:\php...

Magento DataFlow Integration and Module Development Resources?

Does anyone have any good resources for developing Magento Modules that integrate with their DataFlow component? I need to build a product/inventory/order synchronization system and am finding it difficult to dive into. I've done quite a bit of digging, but can't seem to find much in terms of documentation, tutorials, examples, etc. Wha...

zend_db adapter not in / zend_db_expr

I have a call to a model which is just a standard class (not extending zend_db_table). I am doing a select and want to have the possibility of excluding a set of ids which which would be passed in as a variable. I curently have the following: public function getItemsBySection($section, $excluded_ids=null){ //handle this as special...

class-table-mapper design php and ZF

Hi, is there a better way to work with ZF useing the mappers, real life objects and table_objects. This is how I do it with Zend Framework: class User_DbTable extends Zend_DB_Table_Abstract{ protected $_name = "user"; // name of the table } the user class -> user object: class User{ protected $_id; protected $_name; pr...

Zend framework and ReCaptcha

I need to insert ReCaptcha in a form in my ZF application. I'm trying to follow the official documentation, but the ReCaptcha service return me always the error 'incorrect-captcha-sol'. The code I'm using: (In the form) // configure the captcha service $privateKey = 'XXXXXXXXXXXXXXXXXXX'; $publicKey = 'YYYYYYYYYYYYYYYYY...

How to handle multi-select boxes in a zend framework form?

Just wondering how it works and how to handle the information. Let's say I have a form like this: $multi = new Zend_Form_Element_Multiselect('users'); $multi->setMultiOptions(array( //'option value' => 'option label' '21' => 'John Doe', '22' => 'Joe Schmoe', '23' => 'Foobar Bazbat' )); $form->addElement($multi); If a ...

Zend_Db and Date Based Queries

I'm using Zend_Db to query a table. I have some WHERE clauses that need to be dates and it's not clear (at first glance) how to do this "the right way". Does Zend_Db provide an abstraction so I don't need to concern myself with how the backend (Oracle, MySQL, etc.) expects its dates? Or do I need to format things in the way my backend ...

How to add data to db rows fetched with ZF?

I'm using Zend Framework's Zend_Db_Table classes to fetch data from a database. I'd like to "refine" each row I fetch from a table by adding something to it. Within a plain old SQL query I would write eg. SELECT *, dueDate<NOW() AS isOverdue. In this example, feeding an extra field to the SQL query would be possible, but sometimes it mi...

Fatal error: Class 'Zend_Controller_Action' not found

I've found some answers that are closely related to this problem, but I still can't get it resolved. I believe folks are saying that something is not correct with my include path, but I've tried all resolutions I could find to no avail. Here's the error: Fatal error: Class 'Zend_Controller_Action' not found in /Users/*me*/Sites/*site*/...

Using Zend Validate Float with a specific locale

$text = new Zend_Form_Element_Text(); $ValidateRange = new Zend_Validate_Between(0, 999999.99); $ValidateFloat = new Zend_Validate_Float(); $ValidateFloat->setLocale(new Zend_Locale('de_AT')); $ValidateRange->setMessage('Please enter the amount between [0-9999] '); $textValida...

Zend Framework And XML/XSLT Integration

Hello, I'm trying to use XML files and XSL stylesheets instead of ordinary phtml templates in Zend Framework. I'm not sure how to implement it, though. What I've tried to do so far: instead of .phtml views I use .xsl stylesheets I use .xml layouts Here is what I do in the init() method of each controller: $this->view->xmlStyleshee...

zf tool behaves weird

On my ubuntu machine when i try to create a controller: zf create action edit events I get the error: Fatal error: Cannot redeclare class Zend_Tool_Project_Provider_Manifest in /usr/share/php/libzend-framework-p hp/Zend/Tool/Project/Provider/Manifest.php on line 69 I have created a symlink to zf.sh to my /usr/bin/zf But go...

Zend Framework Bootstrapping Questions

when i do a return in an init() function in my bootstrap what does it actually do? so that i can do say a: $x = $this->bootstrap('something'); oh or isit so that i can do a $this->getResource('something'). if i do not do a return i cannot get the resource later? also, when i do a $x = $this->bootstrap('something');. i guess that will ...

zend_captcha always fails isValid()

Hi, I've got an issue with Zend_Captcha always returning false when the page is submitted and the captcha's isValid() method is being called. It's driving my nuts because this as far as I am concerned should work. I start by declaring this at the top of the action function of the controller $captcha = new Zend_Captcha_Image('captcha...

zend session problem

I have a strange problem with Zend Session. I've build a website base in zend frame work and I use Zend_session to store the infos of a log-in user. It's work fine but when I use uploadify to let user upload file to server, i think the uploadify create new session in server and I cannot access the old session i store by Zend_session_nam...

Why do i get a Circular Dependency Exception with these Zend_Application_Resources?

I keep getting the following exception with a new resource Im making and i cant figure out why: PHP Fatal error: Uncaught exception 'Zend_Application_Bootstrap_Exception' with message 'Circular resource dependency detected' in /opt/local/lib/php/Zend/Application/Bootstrap/BootstrapAbstract.php:656 Stack trace: #0 /opt/local/lib/php/Zen...

Using Abstract classes with PHP

I'm new to PHP, and was trying to create an Abstract class with a mix of abstract and non-abstract methods, and then extend the class to implement the abstract methods. The following is portions of my two class files: <?php require_once 'Zend/Db/Table/Abstract.php'; abstract class ATableModel extends Zend_Db_Table_Abstract { abstra...

How to use multiple jQuery UI Themes in a Zend Framework application?

I am currently using the ui-lightness theme in my Zend Framework application but I would like to use both for different things. I'm currently registering the ui-lightness theme with this line in my bootstrap: $view->headLink()->appendStylesheet($view->baseUrl().'/js/jquery/css/ui-lightness/jquery-ui-1.7.2.custom.css'); How can I add a...