zend

Zend Form Field Mapping To DB Columns

I have a Zend_Form $form = new My_Form(); $uploadedData = $form->getValues(); Zend_Debug::dump($uploadedData, $form->name,true) and when i dump the form values i get a string array array(11) { ["event"] => string(2) "26" ["firstname"] => string(3) "sdf" ["surname"] => string(0) "" ["gender"] => string(1) "M" ["company"] => ...

Simple Hello World Zend frameworks for PHP Script Required

According to Phpinfo Zend is installed (Zend Engine v2.1.0) . How ever when I call zend database commands they are swallowed without response or error message. (The script has been tested on my local server). I am looking for a "Zend hello world" php script which will tell me that Zend is running OK. Suggestions? ...

Zend Form, table decorators

Hello, I am having an incredibly difficult time to decorate a Zend form the way I need to. This is the HTML structure I am in need of: <table> <thead><tr><th>one</th><th>two</th><th>three</th><th>four</th></thead> <tbody> <tr> <td><input type='checkbox' id='something'/></td> <td><img src='src'/></td> <td><input type='text' id='some...

SQL: Insert only new rows/records into a table?

I'm parsing a json feed routinely and need to insert only the newest users from the feed and ignore existing users. I think what I need is ON DUPLICATE KEY UPDATE or INSERT IGNORE based on some searching but I'm not quite sure which is why I'm asking - so for example: users 1 John 2 Bob Partial JSON: { userid:1, name:'John' ...

Zend Route Regex - How to...

Hi, I'm trying to create a route that will "cover" this kind of URLs: www.test.com/parent1/parent2/parent3/item www.test.com/parent1/parent2/parent3/parent4/item1 Number of those parents in unspecified, and it should only serve to give a better, more intuitive look to site URLs. Main parameter is that "item". I suppose that...

PHP, Eclipse/Zend Studio & Debugging with expressions

Hi, I have a variable in my PHP application that changes often, I'd like to debug so that it keeps executing until the variable changes to a specific value (in this case boolean true). I've heard this could be done with expressions? True? ...

Zend Models not being found

I'm having a strange problem with Zend. I have an application that works great on localhost, and can access it from outside using my IP address as well. When I move it to our staging server, it fails to load any of the classes. I am using autoloading with a modular structure. All the models are in the Default module, then the models ...

Zend vs Symfony development time

Is it faster to develop using the Zend Framework or Symfony? ...

Equivalent of url() helper function in Zend controller

In the Zend view helper, there is the function url() for outputting a URL based on the routing tables eg $this->url(array('controller' => 'comments', 'action' => 'add') How can I do the same thing in a controller? In particular I want to set the action URL for a Zend Form using controller/action syntax rather than a standard URL eg $...

How can I access the configuration of a Zend Framework application from a controller?

I have a Zend Framework application based on the quick-start setup. I've gotten the demos working and am now at the point of instantiating a new model class to do some real work. In my controller I want to pass a configuration parameter (specified in the application.ini) to my model constructor, something like this: class My_UserContr...

Zend_Feed_Reader behind a Proxy

am new to Zend and want to use the Zend_Feed_Reader class behind a Proxy. I've been told that I need "replace the default instance of Zend_Http_Client used by Zend_Feed_Reader using the setHttpClient() static method. The replacement should be a new Zend_Http_Client object which is passed a replacement adapter called Zend_Http_Client_Ada...

How to get rid of these warnings after installing zend core?

Really annoying! PHP Warning: PHP Startup: bcmath: Unable to initialize module Module compiled with module API=20060613, debug=0, thread-safety=0 PHP compiled with module API=20060613, debug=0, thread-safety=1 These options need to match in Unknown on line 0 PHP Warning: PHP Startup: curl: Unable to initialize module Module compil...

Accessing Zend Session data between actions

Hi. Here's my problem - I'm trying to access a session namespace across actions. The ZF examples appear to work by generating NEW namespaces, but they only demonstrate this within one action - but how do I access an existing namespace from a separate action? Here's the code: public function indexAction(){ $defaultNamespace = new Ze...

How to install wamp server and zend platform without conflict?

I first installed wamp server and everything works fine, but after install zend platform,things go wrong. Anyone has the right steps to avoid this? ...

zend community server very slow on first request with OS X 10.6

I have installed Zend CE 4.0.5 for php 5.3 on my Mac Book Pro running Snow Leopard osx 10.6. I use this setup for my local development environment. When I haven't done a request in a while ( > 20 mins) or after a reboot, the first request takes quite some time to respond. Maybe 45 seconds. After that initial lagged request it acts as...

Zend form validation

Hi, I am using Zend Form to create dynamic form. I have Zend Form validation too. Trying to remove Validation dynamically, but not getting any success. Can you plz help me to remove Zend Validation. Bellow is my code for remove validation : $toRemValArray = array(); $toRemValArray[0] = 'ele_4af42ceac7810'; if(isset($_POST['btnPost...

Using zend studio with codeigniter

I want to use Zend Studio for a project built on CodeIgniter. But I want to be able to use the debugging functionality of Zend. Because of that, I cant seem to get the debugger to work properly cause it doesnt "understand" codeigniter. So, in order for the setup to work, do I need to install Zend server, so that the debugging is done ser...

Air / Flex / Zend Amf - How to move from localhost to web server enviroment?

Hi Everybody, I'm new to flex and Air development and have been stuck on a problem for weeks ;). Are there any Air + Zend Amf examples that use a real world web server and not localhost? Basically I cannot get an Air or Flex application connected to a remote mysql db to work once deployed. How can I successfully move a finished applic...

Zend: How to insert NULL values into MySQL

I am using Zend Framework with MySQL,Apache and Ubuntu 9.04. I am trying to insert NULL values into database like this: $personObj->setPersonId( '1' ); $personObj->setPersonEmail('NULL'); $personObj->save(); But 'NULL' is stored in database as string and not NULL. When I use this: $personObj->setPersonId( '1' ); $personObj->setPers...

Getting started with a project using Zend Framework

Ok, I've got Zend all set up and my hello world pages working. Personally, I'd rather code this from scratch, but I'm trying to find out how to use Zend to save time when making similar projects over and over again. I want to: Admin: Create multiple admin accounts Have database-stored admin options that will be available on all php ...