zend

Zend remove anchor text in url redirect

I have a form that is using an anchor name as it's action so that when the form is submitted it is it goes straight back to the form (for example 'www.domain.com/page#contact-form). The idea is if there are any errors then it'll go straight to the form (that's near the bottom of the page) so you can see the errors and continue filling in...

What/Where are the Naming Rules for Controller actions in a Zend_Application App

I've created a Zend_Application using the zf tool that's bundled with Zend Framework (1.96, if that matters) What at the rules for formatting action names and how those action names get translated into into URL paths, and where in the Framework codebase does this happen? I ask because I tried to create an action like public function c...

PHP Command Line running, zend framework set up problem

Hi, Im trying to learn how to set up a Zend framework web application from scratch. Ive been using Magento and I understand how powerful Zend is, but im over my head it seems like. So I bought a book, developing web applications with Zend 1.8 by Keith Pope, and I cant even follow past the first chapter. The thing that is confusing the ...

Why is find next in zend/eclipse Ctrl-K and not F3

Is there a specific reason for it, or just a new key. Does the K for that reason have any meaning? ...

How to call a view from a view in Zend Framework?

I need to render a view from inside a view. For the sake of question, i'll call them blocks. I have 5 controllers, each of them has an action that is called BlockAction(), and it displays some of the information from that controller. In the Index page for the whole website I need to call all 5 of those BlockAction views. What could be...

Zend Framework Plugin for Eclipse PDT

Hello everyone, I have eclipse PDT IDE version 1.2.0 installed. I have used it together with Dojo to develop very interesting Ajax applications. Now i want to enable the Zend framework within my eclipse IDE. How can i do this. After some googling, i have tried the following. 1.) downloaded the Zend framework and unzipped to my C direct...

Using flock() to lock a stream is only assured to work under what circumstances?

This is a question from PHP zend exam, Using flock() to lock a stream is only assured to work under what circumstances? When running in a Linux environment local filesystem When accessing the stream of the local filesystem When running in a Windows environment and accessing a share When accessing a bi-directional stream When accessing...

Zend Framework: Loading modules from another directory

Hey there guys, this is my first question on Stack Overflow. I figured this website has helped me alot so I give it a shot as well. I'm currently working on multiple Zend Framework applications that need to inherit modules from a common module directory. The file structure used is the conventional method (omitting actual names and refer...

Zend framework on mac OSX: can I change the root Directory ?

Zend framework on mac OSX: can I change the root Directory ? how ? I would like to set a directory in my home folder. Otherwise I can only access to it by terminal thanks ...

Pattern for Wrapping Shell Commands in a Class

Despite its inadvisability, using PHP's shell commands to interact with non-php system commands remains a common way of quickly achieving certain results in web applications. Has anyone abstracted out the common use cases into a class library (something in Zend maybe?) that offers a more sane/common way of handling this? Every time I en...

Headers for MSOffice 2007 / 97 Download with PHP

We're trying to send uploaded attachements (served from a database as blob) through php with Zend Framework to a client. This code works fine for Excel97 / Word97. if ($this->getResponse()->canSendHeaders(false)) { $response = $this->getResponse(); $response->setHeader('Pragma', 'public', true) ...

Zend_Test: Assert Controller Failed

Hello everybody, I use Zend_Test for unit testing in Zend Framework. I have configured the bootstrap and testing environment properly then I got this error output from test unit Failed asserting last controller used <"error"> was "index" This error happens when I call my DbTable class inside action method such as public function in...

List of values I can specify in Zend application.ini configuration file?

Hi guys, I am using the Zend Framework and I cannot locate in the documentation the values I can specify in the application.ini file. Does anyone have a link to where I could see them? Thanks, Darren ...

Zend_ACL Limitation?

Hello, I'm contemplating using Zend_ACL. However, to me it looks like you create roles and then give those roles permissions to controllers and actions they can or cannot access. However, to me that seems fairly limited. I have created a user permission system in the past where I stored the user_id, the module, the controller and the a...

Unknown authorization header error with Buzz API - Using Zend OAuth

Here's the response I keep getting when trying to create a new activity: {"error":{"errors":[{"message":"Unknown authorization header","locationType":"header","location":"Authorization"}],"code": 401,"message":"Unknown authorization header"}} Here's the request I sent (for debugging): POST /buzz/v1/activities/@me/@self?alt=json HTTP/...

Zend_Form - add CSS Class :: How can I add css class to label in Zend_Form?

Hi, How can I add css class to label in Zend_Form? This is html way: <dt><label for="foo" class="label-design">Foo</label></dt> How can I write above row with Zend_Form? (I know how to write label but i dont know how can i add ccss class. $model = new Zend_Form_Element_Text('model'); $model->setLabel('Model'); ) Thanks, ...

Zend_Form: when print elements of form in view- form tag dod't created

Hi, Problem: When print elements of form in view, form tag don't created My View: <?php /****** print elements and inser label:: have to be done in this way for integrate cushycms ********/ echo $this->form->empty; ?> <label>Ad Title</label> <?php echo $this->form->adtitle; ?> <label></label> <?php echo $this->form->adbody; ?> ...

multilanguage website - Zend:How should be form element names, table column manes, free text etc.. translated ?

Hi, How should be form element names, table column manes, free text etc.. translated in multilanguage website on Zend Farmework. The body of websites already translated and stored in database but the rest not. Example for parts that not translated:Name, Phone: <form> <label>Name: </label> <input type="text"> <label>Phone: </label> <in...

Eclipse PHP Zend: "workspace in use" when i try to set my workspace in Apache2/htdocs ?

i am trying to use my workspace C:\Program Files (x86)\Zend\Apache2\htdocs, as i need to in order to use my Zend Server, but i get the error "workspace in use" i have: deleted all other copies of eclipse that i used looked for a .metadata folder but not found one in my current eclipse folder (brand new eclipse PDT with Zend) any ide...

How can be form field names translated when they generate by Zend_Form?

Hi, How can be form field names translated when they generate by Zend_Form? if we have: <label>Phone</label> in zend label can be translated by: <label><?php echo $this->translate('Phone'); ?></label> but when the label created by Zend_Form: $phone = new Zend_Form_Element('phone'); $phone->setLabel('Phone'); How can be label t...