Hi there,
I'm trying to export a database table as a .csv downloadable from the browser. My code is zend framework based and I'm almost there with the following action:
public function exportTableAction()
{
$this->_helper->layout->disableLayout();
$this->_helper->viewRenderer->setNoRender();
$fileName = $this->_getParam('f...
My query is how can i store data in secondary memory by fetching it from database and then displaying it in small units using zend framework coding ?
...
hi all,
i want to output the query generated by Zend_Db_Table's select() statement for testing porposes but i dont know how.
...
There seems to be so many ways of uploading images to a PHP enabled server, it is difficult to make sense of the various options and under what circumstances it is prefereable to use one over the other.
On the front end you have the option to JPGencode or not, use a ByteArray or not, further compress the ByteArray or not.
On the server s...
I'm using Aptana Studio 1.2.7 with XDebug 2.0.4 and my website is based on the zend framework. When reaching a breakpoint in my code, aptana studio opens the wrong file when there is more than one file with the same name (e.g. ..\library\Project\Db\Table\Abstract.php (breakpoint set) and \library\Zend\View\Helper\Placeholfer\Container\Ab...
We are using the Zend Router and it seems that its overwriting the parameters that are sent by forms. The only parameters that arrive to the controller are the params from the Url.
Does anyone know why this is happening?
Here is the config file:
; Routing config
routes.groups.route = groups/:group/:type/:idPost/:postUrl/:page
routes...
I'm having trouble with zend framework's string trim filter. I use the following code to set up a text element in a Zend_Form:
$voucherValidator = new Project_Validate_Voucher();
$code = $this->addElement('text', 'code', array('label'=>'Gutscheincode'));
$code = $this->getElement('code')
->addFilter('StringTrim')
->addVa...
Original Question:
I am currently using Zend Framework with Zend_Db_*, and I am selecting three random rows from a table:
$category->getTable()->select()->order(new Zend_Db_Expr('RAND()'))->limit('3')
Where $category is a Zend_Db_Table_Row. I would like to grab three random rows, but have those three rows ordered by the column named ...
Hi,
I'm developing a form using the Zend Framework and utilising dojo. One part of the form is gathering a users contact details and address. The issue I am hitting is using the FilteringSelect or ComboBox dojo component to select the city/town. I have in my database a list of 40K+ town/city names.
I've tried to use the Dojo compone...
My app is working from the web side of things.
I'd like to get the CLI working so that I can run unit tests and the such
Here's what I have for a test script:
$pthRoot = dirname(__FILE__);
define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/..'));
define('APPLICATION_ENV', 'development');
define('SERVER_ROLE', 'development');
s...
I have a command line process that needs to use code in one of my controllers. When I try to construct the controller, I get an error:
Catchable fatal error: Argument 1 passed to Zend_Controller_Action::__construct() must be an instance of Zend_Controller_Request_Abstract, none given,
I assume the controller wants the request so it ca...
So i've followed the tutorial Zend Framework: Navigation and Breadcrumbs with an XML File in ZF 1.8 and all is working well, but i now want to use the jdmenu jquery plugin to renderer a cleaner looking horizontal menu. By default, the Zend framework wraps the menu html code in this element name
<ul class="navigation">
I think i can ca...
Hi I am having issues inserting a map from google maps and using the send framework.
My issue is similar to Question 921811
However when adding the script to my view I am getting the googlemaps api in twice and no map being rendered by the view.
This is what I am adding to the view script
<?php
$this->headScript()->appendFile('http...
In my controllers init() method I call the AjaxContext-Helper and set it for some methods/actions in that controller. Like so:
public function init()
{
$ajaxContext = $this->_helper->getHelper('AjaxContext');
$ajaxContext->addActionContext('setlabel', 'html');
$ajaxContext->initContext();
}
Now when I want to use redirect ...
I'm not 100% sure how to phrase this question so please help me if you can.
I have a system with modules that can be installed. I check if each module has a MenuController and if so I push an action onto the stack. The problem becomes that in each MenuController, if I don't use $this->render('index.phtml', 'menu'); then the output goes ...
Hi guys, I'm using the zend framework and have a script which sends emails. However my script send emails perfectly on my localhost but I keep getting a fatal error on my online server:
Fatal error: Uncaught exception 'Zend_Mail_Protocol_Exception' with message 'Connection refused' in ....
The stack trace pin points just my emailing c...
Hi not sure if this is possible or not but I want to programaticaly update the <body> tags to change the onload function in my zend framework application.
The App is using layouts so the body tag currently looks like this <body class="trandra">
However in one of my views I have a map from google being loaded and it needs the following ...
I have two controllers which have some actions that are really the same.
How do I refer to the identical action in another controller?
class UserController extends Zend_Controller_Action {
public function listAction() {
//do something here
}
}
class AdminController extends Zend_Controller_Action {
public...
I'm having some serious issues using Zend_Lucene and foreign characters like åäö. These issues appear both when the index is created and when it's queried. I've tried both iso-8859-1 and utf-8.
ISO-8859-1
The query that doesn't work looks like "+_area:skåne". With Zend_Lucene I'm getting no matches, but if I run this query in Luke I ge...
What I am trying to accomplish is to have checkbox labels display after checkbox input fields (to the right of them).
I am using these decorators now:
private $checkboxDecorators = array(
Label,
array(array('data' => 'HtmlTag'), array('tag' => 'div', 'class' => 'checkbox')),
'ViewHelper',
array(array('row' => 'HtmlTag')...