I want to fit my captcha in my table based form , but buy simply adding Zend_Form_Element_Captcha , which uses its own decorator messes up my table based form layout.
I hope there is some way so it gets like
<tr>
<td></td>
<td><img src="343444.png"/></td>
</tr>
<tr>
<td>Write the above text</td>
<td><input type="text" name="foo[inpu...
I am trying to cache an array with Zend_Cache like this:
$cache = Zend_Registry::get('cache');
// $data is an array
$cache->save($data, 'externalData');
And I am getting this error:
Message: Datas must be string or set automatic_serialization = true
Even though the automatic_serialization is set tu true when initializing Zend_Cache...
SOLVED:
This URI works:
/controller/action?ret=%2F
I want to pass an additional "/" parameter to the controller action. So I did this:
$par1 = urlencode('/');
$this->_redirect('/controller/action/par1/' . $par1);
But I get this error message:
Not Found
The requested URL /controller/action/ret// was not found on this server.
...
$form = new Zend_Form();
$mockDate = new Zend_Form_Element_Text('mock');
$mockDate->addValidator(???????);
$form->addElements(array($mockDate));
$result = $form->isValid();
if ($result) echo "YES!!!";
else echo "NO!!!";
Assumption that the element is in a date format. How do I determine that the date given is greater than or equal...
I am currently trying to build a simple custom layer that I will extend instead of Zend_Form. For instance, My_Form.
I want all my forms to look the same so I am setting this in My_Form. Here is what it is so far.
class My_Form extends Zend_Form
{
protected $_elementDecorators = array(
'ViewHelper',
'Errors',
...
I'm building an application in the Zend Framework, but I'd like to implement a "Data Mapper" style ORM layer, constructing Model classes that only include the specific pieces of data they need to represent the domain concept (regardless of which tables those fields happen to belong to). Since my DB structure is highly normalized, the ben...
I'm trying to save UTF-8 characters with Zend_Cache (like Ť, š etc) but Zend_Cache is messing them up and saves them as Å, ¾ and other weird characters.
Here is a snippet of my code that saves the data to the cache (the UTF-8 characters are messed up only online, when I try it on my PC on localhost it works ok):
// cache the external d...
Hi, i have a question about Zend Framework and mainly the model part. I know there is no abstract model class and understand why. I red a lot of blog posts about it, but couldn't find any example that would clearly explain it to me. I'm building a very basic application. Lets imagine we have just three tables. company(ID, name, street, s...
Hi,
I would like to keep my port number which is different on production and development environment, but calls to the url helper based on my zend routes forget the port number.
My routes are a bunch of regexp routes, chaining with default hostname routes, mainly for multilanguage over a multidomain configuration (short overview below...
I've downloaded the Zend GData package to use the Google Calendar API. When I look through the contents of the package it seems to contain loads and loads of stuff. Do I really need all of it just for using Google Calendar and no other Google APIs? If not, what can i safely get rid of?
...
How is it possible that the snippet below prints out "readablenot readable" ? afaik a die() should stop everything immediately?
EDIT: posted the full function. This is a function from Zend_Search_Lucene_Storage_File_Filesystem. We're always getting "file not readable" errors. The file does seem to be readable but the snippet below print...
Lets assume the following code within a controller:
$this->view->addScriptPath('dir1/views/scripts');
$this->view->addScriptPath('dir2/views/scripts');
$this->render('index.phtml');
Where dir1/views/scripts contains 2 files:
-index.phtml
-table.phtml
And dir2/views/scripts:
-table.phtml
Now, it will render the index.phtml i...
How can I achieve the ff. in zend using zend form:
<input type="text" name="list[]" />
<input type="text" name="list[]" />
Thanks in advance!
...
Hi,
I am developing a web application with Zend Framework, and I am using JQuery for my forms.
I have a problem with the DatePicker in a form. When I click on the text input, the DatePicker appears, but without the themes images...
In my bootstrap:
$view->addHelperPath('ZendX/JQuery/View/Helper/', 'ZendX_JQuery_View_Helper');
...
I'm developing a CMS for my university. With this Cms university staff can login and design their personal web sites without any knowledge of html or php.
What i want is sperate all external applications from my CMS. For example, there is a Polls application, Gallery and Images application and so on. And others programmers will work on ...
I am submitting a normal <form method="get"> element to the current url... It's part of a search page. The resulting url is below.
http://domain.com/module/controller/action/get1/value1/?get2=get2&value3=value3
The problem is I am using <?= $this->url(array('page' => x)); ?> and similar to navigate around but I want to retain the $_...
Tables in my database are created with a correct UTF-8 charset like this:
CREATE TABLE users (
id INT NOT NULL AUTO_INCREMENT,
...
...
...
...
...
PRIMARY KEY (id)
) ENGINE = INNODB CHARACTER SET utf8 COLLATE utf8_slovak_ci;
However, when I use Zend_Db_Table to fetch the data from the table with this method:
public function getSingl...
hey, i'm stuck at a problem which is kind of similar to one that Erik asked about. I'm trying to create a dynamic form in zend and what i wanna do is that there should be a button which when clicked adds a new text box or any form element dynamically.
now the problem is that i'm new to zend framework. i'm using 1.9.7 right now. i've don...
I am trying to define routes as below with an INI file for the Zend Framework:
http://api.example.com/servicename/{version}/users/:userid/items/:itemid
routes.host.type = "Zend_Controller_Router_Route_Hostname"
routes.host.route = "api.example.com"
routes.host.chains.api.type = "Zend_Controller_Router_Route_Static"
routes.host.chains.a...
I have an installation of XAMPP and an application built on Zend Framework that works in a normal apache2 + php5 environment. The application resides inside a vhost correctly configured and as a precaution I also added .phtml files to match php compiler
<FilesMatch "\.php$|\.php5$|\.php4$|\.php3$|\.phtml$|\.phpt$">
SetHandler appli...