zend-framework

How to get started deploying PHP applications from a subversion repository?

I've heard the phrase "deploying applications" which sounds much better/easier/more reliable than uploading individual changed files to a server, but I don't know where to begin. I have a Zend Framework application that is under version control (in a Subversion repository). How do I go about "deploying" my application? What should I do ...

Calendar using Javascript/ PHP/ mySQL

for a current webapp i need a "outlook-like" calendar... Here are some requirements for the calendar: week-view for the appointments different appointment types direct display of the length and time of the date (like in googleCalendar) multiple appointments for the same time only using javascript, php and any DB We need the calendar ...

call for action in zendframework

i am new to zendframework i try to run the sample quickstart if i give the url without /pubilc it dosn't work but if i add the /public i get the frist html page when i send the from to get the next page i get error The requested URL /QuickStart/public/extract was not found on this server. please how do i start whihout the public in the ...

Updating web app from Zend Framework 1.7 to 1.8

Hi! I'm trying to update my current project from 1.7 to 1.8. What do I have to change so that it does not break? ...

How can I fix the ZF tool in the Zend Server for windows?

I just downloaded Zend Server Community Edition for windows and found that it did not include the ZF utility included in the tutorials. I downloaded and unzipped the Zend Framework(version 1.7.8, because version 1.8 would not download properly). This includes the zf.bat utility which is meant to generate the basic project files. Unfor...

How can I output HTML from a Zend Validation Error?

I am trying to get this Zend Validator to output a link that goes to a resetpass form. At the moment, it is simply outputting the HTML as text. Any ideas on how to get it writing to the page as HTML? Thanks! Here's my code: protected $_authAdapter; protected $_messageTemplates = array( self::NOT_UNIQUE => 'This email has alre...

How do I add more than one row with Zend_Db?

I have an array with information which looks more or less like this: $data[] = array('content'=>'asd'); $data[] = array('content'=>'asdf'); And I want to add both entries into the Database. $db->insert('table', $data); does not add both entries. What am I doing wrong? Do I have to use Zend_ Db_Table? $data = array('content'=>'asdf...

Getting started with cron jobs and PHP (Zend Framework)

I am totally new to the subject of cron jobs so I have no idea where to start learning about them; when, why, or how to use them with my Zend Framework application, or PHP in general. Can anyone explain the process, with an example, or recommend some good resources to get started? ...

How to route sub-domains to account pages? How does domain masking work?

Part 1 I want to build a PHP Zend Framework application that users can sign up to use. When they register, I would like the application to create a sub-domain that points to their public page, that serves up content specific to that client. For example: http://mywebapp.com/username or http://username.mywebapp.com Update: "Using sub-do...

How to detect negative number in Zend Framework Router Regex

Hi I have the following .ini configuration working fine for positive integers, but not negative integers. routes.nd.type = "Zend_Controller_Router_Route_Regex" routes.nd.route = "news/(\d+)/d" routes.nd.defaults.controller = "news" routes.nd.defaults.action = "display" routes.nd.map.id = 1 How to make it detect negative integers? App...

Custom Zend Error message for checkboxes

I have a form in a Zend-based site which has a required "Terms and Conditions" checkbox. I have set a custom message which says "you must agree with terms and conditions". however, because the checkbox is "presence='required'", it returns Field 'terms' is required by rule 'terms', but the field is missing which is this constant de...

Zend Framework routes with ajax friendly parameters

I'm building a REST API with Zend Framework. I have routes setup that are mapped to all the resources I modeled. I also created a RESTful controller plugin to direct the different types of requests (PUT, GET, etc..) to the right controller action. I'm making ajax calls with jQuery and by default it appends GET parameters to the URL for ...

Can I set the Database adapter to use permanently from within a Zend_Db_Table_Abstract Class?

I have 2 databases that my site uses including a central user database that relates to other site-specific databases. Sometimes it is adequate to call new User(array('db'=>'adapter1')); (but never convenient); other times, though, such as when declaring relationships between tables on different databases, there is no way to do this. ...

dojo.data is undefined Flitering select

hi, I am having a few problems with Dojo Filtering Selects when using the Zend Framework Forms and need some help to find out what I have missed as this is driving me mad. I am currently getting this errors in firebug: dojo.data is undefined dojo.data.ItemFileReadStore is not a constructor Below is the code that I am using to cre...

How do I print the html element hidden in Zend_Form_Element_Select

I have a form which I create manually (a lot of JS in it...). I am using the Zend_Form classes in the server side to validate input and some more. Is there a way to get a Zend_Form_Element_Select (or any other element) to be rendered without rendering the entire Zend_Form object? ...

How to remove dd and dt html elements when rendering a Form element in ZF?

I am rendering in my view a Zend_Form_Element_Select. $t=new Zend_Form_Element_Select(....); ... ... echo $t->render(); I get the drop down and the options correctly, but I also get the select element wrapped in <dt> </dt> <dd>[elm]</dd> How do I remove that decorator? ...

How to handle localization of controller names?

Hi, I run a site where it is important to have good and simple URLs that need to be localized. Example for the english version: example.com/car/?type=fiat Example for the Swedish version: example.se/bil/?typ=fiat (bil is car in swedish) And ofcourse I would like to handle all of these URLs from the same codebase. What is the best way...

Handling unexisting actions?

Hi, What is the best way to handle unexisting actions in the Zend Framework? Depending on the controller I want to be able handle the request differently. BR Niklas ...

Doctrine profiler does not catch queries

I think I must be missing something obvious here. I have Doctrine and Zend Framework set up together. In the bootstrap.php file I have the following - based on the Doctrine documentation for using the profiler: $profiler = new Doctrine_Connection_Profiler(); $conn = Doctrine_Manager::connection(); $conn->setListener($profiler); (...) ...

Bootstrap modules using Zend Framework 1.8

I'm trying to figure out how to implement a modular structure with autoloader and Zend_Application. I've got an structure that goes ok, but with the last commit to the tag 1.8 stop working. Can anybody try this code and see what's happened? http://bit.ly/10GaXw Thanks in advance ...