how can i go abt setting up default decorators for all my forms & form elements? currently in individual forms i do something like
// in init()
...
$this->setElementDecorators(array(
'ViewHelper',
'Errors',
array('Description', array('tag' => 'p')),
'Label',
array('HtmlTag', array('tag' => 'p'))
));
$this->getElemen...
Hi!, i'm a new user of Zend Framework, and i have a problem with the Zend syntax for make this query:
SELECT i.*, k.id as id_key, GROUP_CONCAT(DISTINCT k.nome ORDER BY k.id SEPARATOR " ") as tag, GROUP_CONCAT(DISTINCT f.dimensioni ORDER BY f.id SEPARATOR " | ") as formati
FROM immagine i
LEFT JOIN immagine_has_formato fi ON fi.immagine_...
in Zend Framework, whats the best way or recommended way to show or hide parts of a page depending on some criteria (technically just a variable)?
eg.
variable passed by controller
logged in user
acl
...
How to configure Zend Framework on linux machine?
...
i have created my own Zend_Form class currently just to add some helper functions and setdefault decorators.
now what i want to do is add some defaults (setMethod('post')) and add some elements (if u know the honeypot method to prevent spam bots.) how do i do it? in the __construct()?
...
i seem to experiencing a wierd error where my request params seem to be outdated by 1 request
my login code @ pastebin
i have tried to illustrate my point in a video @ screenr
...
i wonder if many of my pages may use a FlashMessenger, whats the best way to automatically render out all messages say at the top of the page (like those here in SO, telling the user they got a badge etc)
...
I am trying to strip all html tags except <p>,<br>,<strong>,<b> from input data from the following:
public function init()
{
parent::init();
$this->fields = array(
'name' => 'Name',
'age' => 'Age',
'profile' => 'Profile',
);
$this->mdata = array();
$this->verify = true;
}
Anyone knows h...
Figured it out, see Update below.
I'm trying to work with a particular web service via PHP (tried both the native and Zend SOAP clients) and it only returns a failure status.
I suspect that it has something to do with the multiple beans in the retrieveMemberInfo method call (authBean, memberInfoBean).
Could someone take a look at the...
Hello my fellow Stackoverflownians :),
I just came across this thing called Zend. And it looks pretty cool and i wanna get my hands on it, but I have a question. So if anybody knows anythin about Zend, I would really appreciate your advice.
I am using Winhost as my hosting provider (http://www.winhost.com/) and they are a Windows Hoste...
Hi everybody,
I'm creating a Magento Module. Within the controller, I want to check if an admin is logged in or not. So the controller only will be accessible if there is a logged in admin.
I'm trying to use this code on my controller.
Mage::getSingleton('core/session', array('name' => 'adminhtml'));
$session = Mage::getSingleton('ad...
I'm not sure how to fix this, or wat is the best way to approach this. Also couldn't find enough information to get me on the right way (could be that my searching sucks..)
Anyway, this is my problem:
I defined a route in my bootstrap file:
protected function _initRoutes()
{
$router = $this->frontController->getRouter();
...
Hello,
I have an application based on Zend Framework.
I would like to display a SWF document which has multiple dependent sub-files below two subfolders. These files are images and XML data to make search in te SWF document possible.
A requirement is that I need to limit access to the SWF document.
Now I dont know of any way that I ca...
Currently I have about 40 models and whenever I have needed to do an insert its always just been on a single model, so I have been happy to just use my class model which extends Zend_Db_Table_Abstract
class Model extends Zend_Db_Table_Abstract
However, now one of my requirements is to read a CSV file and normalize it into my database....
Hello,
I have a sidebar as a helper.
It outputs the helper as a partial.
However, I don't want to add a load to my server so I'd like that partial to use the helper paths. Is that possible? Heres my helper.
class Zend_View_Helper_Sidebar extends Zend_View_Helper_Partial {
public function sidebar() {
$module = Z...
The plugin declared in my application.ini file is not being triggered. I can install plugins the old way via the Bootstrap file, but I'd prefer to keep it in the INI. It doesn't ever load that file, no exception thrown, nothing.
I've tried adding .class to the declaration, but nothing.
application.ini
[production]
phpSettings.display_...
I created a confirmation page for deleting an item. This works perfectly.
Now I want to appear the confirmation page in fancybox, still passing all the variables and delete the data or close the dialog.
It's important that the process still works as it does now (delete->confirmationpage->redirect/deletion) so that users with javascript...
I'm trying to create a PHP function that adds an event to a google Calendar. It appears to be building the object correctly but it throws a "Call to a member function getDOM() on a non-object in FeedEntryParent.php" error when trying to add the event. Here is the abbreviated class with only the constructor and the function that adds th...
Hi
I am succesfully calling a REST API with the following code
$client = new Zend_Http_Client();
$client->setMethod(Zend_Http_Client::POST);
$client->setUri('http://www.example.com/api/type/');
$client->setParameterPost(array(
'useremail' => '******@*****.***',
'apikey' => 'secretkey',
'description' => 'TEST WEB API',
...
There is an example of getting data from form using mapper in official quickstart. But there is no example in the whole Internet of populating form with data from mapper (for usual edit action, for example).
I usually do something like this (without using mapper and dbTable):
class News_Model_Form_News extends Zend_Form {
private $id ...