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 ?
...
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...
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:...
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
...
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...
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...
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...
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...
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 ...
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...
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/...
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,
...
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; ?>
...
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...
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 ...
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' ...
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...
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...
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...
Hi,
Does zend framework have html parser like simple html dom?
Thanks
...