zend-framework

Set custom template path to render instead of standard one

Hello ! Is it possible in ZendFramework to set custom template when I call some action ? For example I call /category/show/id/123 and View is rendering /category/show.html file. I want to be able to render anonther template - /category/showOther.html. What should I do ? ...

howto Zend_Dojo_Form_Element_FilteringSelect onchange submit

Well the title pretty much says it all. I had $strata = new Zend_Form_Element_Select('strata'); $strata->setLabel('Select a strata: ')->setMultiOptions($this->stratalist)->setAttrib('onChange', 'this.form.submit()'); Then I need to use some fancy dojo form elements in other forms. So I decided to make them all look the same and did th...

Zend_Soap_Client request is creating the specified parameters but is not setting the values in the resulting XML that is sent.

I have a Zend_Soap_Client object, and I'm trying to call a method on it: $soapClient = new Zend_SoapClient('my_wsdl'); $params = array( 'Login' => 'username', 'Message' => 'hello' ); $soapClient->GetSoapRequest($params); echo $soapClient->getLastRequest(); I would expect to see: <?xml version="1.0" encoding="UTF-8"?> <env:...

Zend Tool CLI always creates index action index view

I have the following problem with Zend tool (component of Zend Framework) When I give the command to create a controller without a index action the action is still created. I use the following command: zf create controller auth 0 Is this the wrong command or is there a problem with zend tool. I use version 10.6 of Zend Framework ...

RESTful Zend Framework API

I'm developing a Zend Framework based application and I found myself writing a skeleton for the API module. I read a bit on the web and I started writing the skeleton based on Zend_Rest_Controller. Turned out ok, key login required to use the API. The questions started when a colleague of mine started implementing the skeleton in a prop...

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...

How to integrate zend framework in an existing website

Hi everyone, I'm currently learning Zend Framework and now I am looking for a way to integrate it into an existing website. This website is coded in an extremely complex spaghetti way, and I am hoping that it will be easier to read by integrating it into Zend and slowly refactor it. How could i run legacy code and the zend framework + m...

How to integrate TinyMce with Zend Framework with Gzipping and Image managers?

I have done some research on this subject, and found out, that Gzipping and adding a new image manager through a plugin would not be as difficult. The only question is the Image manager. I have seen some quite good ones, like the Image Manager for JCE, which is a Joomla wysiwyg editor, but none for TinyMce for itself. Could someone s...

Doctrine and aliases from the select clause in the where clause.

I am using an alias in my select clause ("AVG(u.rating) as avg_rating") and would then like to add this in my where clause "avg_rating > 3" but when I try and run this query I get a "Unknown column 'u3__1' in 'where clause'." Does anyone happen to know how I can get my where clause to see the alias? This alias works in the orderBy with ...

Correct Location for Custom Zend_Action_Controller

The ZF Docs reference 'Subclassing the Action Controller' (bottom of the page), but don't reference a standard place to put the new Action_Controller class. Application_Module_Autoloader sets up pats for a bunch of things, but never controllers. I guess putting it on library/APPNAMESAPCE/Action/Contoller would work. But that seems a bi...

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...

How do I get my php websites using .htaccess files to do basic URL re-writing to work on new windows server?

I have just bought a new Windows server with IIS on it and plesk panel. Good times (I thought...) I have about 10 client sites that run on PHP which shouldn't be a problem. But I can't seem to get an answer from my hosting provider on how to get my .htaccess working on the windows server so I'm getting stung for two lots of hosting and ...

Zend_Navigation with hidden pages

Hi, I have my Zend_Navigation loaded from a PHP array (but that's irrelevant...) and I'm using the navigation menu helper to generate a menu based on the loaded navigation. Some menu items must not appear in the outputted menu, so I simply set "'visible' => false" in my array for that page and there you go! But if the URL of an 'hidden' ...

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...

Can Lucene in Zend search an array with data, and return a stripped array?

I've got an array with data. For example $data = array( 'test', 'test2', 'tost', 'testing', 'another', 'search' ); I wanna do a search on this array. lets say "test~" with lucene. I would for that way want to have the first 5 results in the array, and as feedback i need an array with those 5 items. Is this poss...

Does zend framework have html parser like simple html dom?

Hi, Does zend framework have html parser like simple html dom? Thanks ...