Hi, guys!
I'm newbie in ZF and have some stupid question:
What's the best solution to calculate rows in the table if I work with inherited object of Zend_Db_Table_Abstract class?
For my first web application I use QuickStart tutorial (link text) so if I want to calculate count of rows in the table in controller the simplest solution ...
How do I achieve the following with form decorators for form elements:
<dt>
<ul>
<li>The errors</li>
<li>The errors</li>
</ul>
<label>The label</label>
</dt>
<dd>
<input type="text" value="The input field">
</dd>
In other words, in stead of Errors appended after the input field, I want them prepended before the Label. ...
Somehow when doing an import of data into mysql using a multi-row insert with execute() function, there were many rows added with the string NULL for some columns.
How can I convert those NULL strings into MySQL NULL values so that I can check for empty values using is_null() in php when displaying data.
How can I avoid this problem? I ...
I have recently added an admin module to my application. This application has separate authentication from the main site(the admin tools may be used later across different sites for different applications and the admin users are stored in a separate table), and this is causing issues. Because of the the singleton nature of Zend_Auth, I...
I have a form that is extend from Zend_Form. I am placing the form into a ViewScript decorator like this:
$this->setDecorators(array(array('ViewScript', array('viewScript' => 'game/forms/game-management.phtml'))));
I'd like to pass in a variable to this ViewScript but am not sure how this could be done.
Since the partial renders out...
Hi,
A few questions regarding the basics of Zend Framework 1.9.
i followed the quickstart guide, and basically, bootstrapping involves,
a. from index.php:
$ZEND_FRAMEWORK_LIB_PATH = '/appl/ZendFramework-1.9.7/library';
defined('APPLICATION_PATH') || define('APPLICATION_PATH', (realpath(dirname(__FILE__) . '/../application')));
defin...
I need a framework for php. I've got few suggestion to use Zend Framework.
What worries me is the Zend Framework api stability.
Do you know how stable ZF is? Is there any change list/migration plan from previous version. So that I can check how many breaking changes were introduced?
I need something so stable as django:
The relea...
Hi,
I've got a Zend_Form with a Zend_Form_Element_File item which I'm trying to provide a "upload progress" report to the user utilising Zend_ProgressBar_Adapter_JsPush. However, I can't figure out how to do this and I was wondering if anybody with more experience of this section of the Zend Framework could help.
The examples on Zend's...
Hi there,
I am trying to create actions in my project by using,
zf create action add edit
however my command line outputs this message,
An Error Has Occurred
A project profile was not found.
Zend Framework Command Line Console Tool v1.9....
I am using this ViewScript for my standard form elements:
<div class="field" id="field_<?php echo $this->element->getId(); ?>">
<?php if (0 < strlen($this->element->getLabel())) : ?>
<?php echo $this->formLabel($this->element->getName(), $this->element->getLabel());?>
<?php endif; ?>
<span class="value"><?php echo $this->...
hi
I have inherited a new project which uses Zend Lucene search framework. It seems to be working fine except for certain keywords like "Inverse" or "Function". I have some results such as inverse function or inverse variation but when m searching for inverse or function as keyword, it yields me "No result Found."
Can someone help me w...
Hi
Am currently trying to use for the first time both jqgrid and flexigrid to make database driven pages whos backend uses Zend Framework.
I have been googling and the search results that turn up aren't very helpful.
Any links that can be helpful?
...
Hi,
I'm trying to change the html outputted by Zend_Form using decorators.
I want the outputted HTML to look like this:
<form>
<fieldset>
<legend>Your Details</legend>
<dl>
<dt>label etc</dt>
<dd>input etc</dd>
<dt>label etc</dt>
<dd>input etc</dd>
</dl>
</fieldset>
<fieldset>
<legend>Addre...
I am using ViewScripts to decorate my form elements. With radio elements, the separator can normally be overridden, but the override is being ignored when I use the ViewScript.
When I use the below call and ViewScript, the radio elements are separated by a '<br />' rather than the space I've specified. If leave the default decorators,...
I've got a few random issues with decorator related stuff with Zend Form.
Firstly,
// THIS WORKS AND REMOVES THE DECORATORS
$hidden = new Zend_Form_Element_Hidden('hiddenfield');
$hidden->setRequired(TRUE)
->removeDecorator('label')
->removeDecorator('HtmlTag')
->addErrorMessage('Please upl...
Brief background - Im writing a special import manager to be run via cron. The basic operation is:
Delete all records from table
Load data from a file or a string into the table
Not to difficult, however because of the apocolyptic delete at the beginning of this sequence id like to use a transaction so i can rollback if anything goes...
Hi,
I've recently moved my development from linux to windows 7 with the purchase of a new laptop. I have noticed that there are some problems, with my once working Lucene searches.
My Searches are not returning results that they were when running on linux, and there are some issues with other code, which I am working through debugging....
As stated in question title, is it possible in any way to highlight current link in menu? Menu is pure HTML, created manually.
Sergio E.
...
I've got a class library in defined here .../projectname/library/Me/Myclass.php defined as follows:
<?php
class Me_Myclass{
}
?>
I've got the following bootstrap:
<?php
/**
* Application bootstrap
*
* @uses Zend_Application_Bootstrap_Bootstrap
*/
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
/**
* ...
Hi,
In my application, i have:
a table storing customers' orders, and
a table storing order entries
so basically a one-to-many relationship between the orders table and the orders entries table (should be quite a common structure).
i have a page that display all of a customer's orders (but not the entries). This part is simple, in ...