I have some very fundamental questions about the use of the setTagsAllowed and getTagsAllowed methods used with Zend Framework's Zend_Filter_StripTags? Specifically:
Where should the list of tags
defined? In the application's
controller?
Does the array have to
include the <> eg '<h1>' or just
'h1'?
Does the array have to include
the ...
I want to present radio buttons in logical products groups:
Broadband products:
(*) 2 Mbit
( ) 4 Mbit
Voice products:
( ) Standard
( ) Total
Bundles:
( ) 4 Mbit + Standard
( ) 4 Mbit + Total
All radio buttons have the same name attribute - you get the idea. It seems that Zend Framework 1.8 does not support grouping radio...
Does anyone know exactly what happens when you change your Zend site at, say, foo.com/ to foo.com/subfolder/ ? I notice that routing breaks and either I am not using front_controller.setBaseUrl() properly or it has no effect. I am unable to find any formal documentation at the Zend site about this issue.
...
In the new version of ZF, we must use:
require_once 'Zend/Loader/Autoloader.php';
Zend_Loader_Autoloader::getInstance();
insted of:
require_once 'Zend/Loader.php';
Zend_Loader::registerAutoload();
But the models, aren't working anymore :(.I'm getting the following error:
Fatal error: Class 'Launch' not found in C:\wam...
I'm having real problems getting PDO_MYSQL working.
I started by just trying to install the PDO_MYSQL driver via PECL, however when this didnt work I looked round to see if there where any issues reported. It seems that there may be a conflict between the embedded version of PDO and PDO_MYSQL. To that end i decided to reinstall all it'...
I'm trying to get Zend Amf working on my hosting services (Lunarpages, if that matters). I can get it working on my local machine, but after changing a few directories and posting the code, I keep getting this error:
Parse error: syntax error, unexpected T_STRING, expecting '{' in /home/user_name/public_html/library/Zend/Amf/Server.php...
Hi everyone,
I'm beginning with Zend Framework and I would like to understand Bootstrap file. I've learned all _init methods are executed by default but it seems confusing to me. Anyway that is not what I would like to ask.
A came around the $this->bootstrap('layout'); action and I'm not sure if I understand this. Is this the resource....
I'm using Zend_Search_Lucene, the PHP port of Java Lucene. I currently have some code that will build a search query based on an array of strings, finding results for which at least one index field matches each of the strings submitted. Simplified, it looks like this:
(Note: $words is an array constructed from user input.)
$query = new...
When using Zend_Form I find myself creating a lot of controller methods that look like this:
function editPersonAction()
{
$model = $this->getPersonModel();
$form = $this->getPersonEditForm();
if ($this->getRequest()->isPost() {
$data = $this->getRequest()->getPost();
//$form->populate($data); [removed in edit]
...
I have a form with (at least) the following two fields:
country
club
The club is a field that is generated via the ZendX_JQuery_Form_Element_AutoComplete Element, that also generates the following javascript code:
$("#club").autocomplete({"url":"\/mywebsite\/\/mycontroller\/autocomplete"});
I have a database of clubs per country. ...
I use the following code for transaction in Zend Framework but the rollback function doesn't work (Data is inserted into the database by insertSome($data)).
What's wrong?
$db->beginTransaction();
try{
$model->insertSome($data);
$model->insertAll($data2); //this line cannot be run and the whole transaction should be rol...
I'm running a Zend Framework powered website and it seems to have serious problems with sessions. I have a 5 step process where I save the form data in the session between the steps and then save it into the database on the last step.
When we built the site sometimes the session just went away and forced us to restart. Now it seems to w...
Hi I am having issues with my my sessions using Zend Framework 1.7.6.
The problem exists when I try and store an array to the session, the session namespace also stores other userdata.
I am currently getting the following message in my stacktrace
Fatal error: Uncaught exception 'Zend_Session_Exception' with message 'Zend_Session::st...
After I create a couple folders in the /application folder (such as forms and models) and then start adding classes to those folders, how do I make the code auto completion for these classes available in my various other files such as my IndexController.php?
I'm using Zend Studio 6.1 and ZF 1.8.4.
...
How do I apply stripslashes() to all form elements prior to output with Zend_Form?
I have tried:
//the filter
class lib_filters_Stripslashes implements Zend_Filter_Interface{
public function filter($value){
return stripslashes($value);
}
}
...
...
...
//In the form
$form->setElementFilters(array(new lib_filters_Stripsla...
hi all,
i am using FlashMessenger helper to set messages, but i am unable to retrieve messages using getMessages() method. it returns null. here is my sample code:
<?php
class Admin_TestController extends Zend_Controller_Action
{
protected $_flashMessenger = null;
public function init()
{
$this->_flashMessenger = $t...
Zend automatically adds tags around form elements it has generated. How may I remove these tags as paramaters to the addElement function.
I have tried changing the disableLoadDefaultDecorators flag, however the element does not render at all then.
For example:
$searchForm->addElement('text', 'searchText', array('class'=>'onClickClear'...
The documentation specifies how to add inline attachement, but what is the correct way of referencing it from the html part? Is it possible to include images automatically as it is in other libraries?
Maybe someone has written a little snippet and is willing to share?
...
I am using a shared hosting through CIPL.in. They use cpanel. I am trying to deploy a ZEND app on my website. However it keeps giving the error.
An error occurred
Application error
Exception information:
Message: The PDO extension is required for this adapter but the extension is not loaded
Stack trace:
#0 /home/cubeeeco/worminc/libr...
I've built a search index using the PHP Zend Framework Search (based on Lucene). The search is for a buy/sell website.
My search index includes the following fields:
item-id (UnIndexed)
item-title (Text)
item-description (UnStored)
item-tags (Text)
item-price (keyword)
seller-id (UnIndexed)
seller-name (Text)
I want the user to sear...