Hello everybody. I have a form and I want to set my custom errors in it. I am using Zend, and I have the following code...
//Create validators
$formMustBeEmail = new Zend_Validate_EmailAddress();
$formMustBeEmail->setMessage(array(
Zend_Validate_EmailAddress::INVALID => "1. Invalid type given, value should be a string",
Zend_...
Hi, I am using Zend Cache with page caching but it seems to miss the cache after a period of time. For a while it is OK, but I come back tomorrow and hit the page, it doesn't fetch the contents from the cache. why?
$frontendOptions = array(
'content_type_memorization' => true, // This remembers the headers, needed for images
'lif...
I have a php project in which I now need to use Zend library for uploading video on youtube
the code for uploading video on youtube works fine if it is run as a separate project.
But when I add Zend library to php project like this
require_once('Zend/Loader.php');
Zend_Loader::loadClass('Zend_Gdata_ClientLogin');
Zend_Loader::loadCl...
I'm trying to generate this html heirarchy in my zend_form display group:
<div class="settings">
<div class="dashed-outline"> //want to add this div
<fieldset disabledefaultdecorators="1" id="fieldset-settings">
<legend>Cards</legend>
</fieldset>
</div>
</div>
This is what I have cur...
zend server ce::rewrite_mod:: What should I do to enable rewrite mod in zend server ce?
...
I have two text fields in a form that I need to make sure neither have empty values nor contain the same string.
The custom validator that I wrote extends Zend_Validate_Abstract and works correctly in that it passes back the correct error messages. In this case either: isEmpty or isMatch.
However, the documentation says to use addErro...
Hi,
I have windows xp in my work and i programming on zend framework.
I need to install ubuntu for execute doctrine orm commands from linux console, I faile to do it on windows.
I thinking about 2 option of UBUNTU installation:
1.install ubuntu 10.04 on Virtual Box (Sun Virtual Machine).
2.create new primary partition and install ubuntu...
I'm receiving a JSON payload from a webservice at my site's internal webpage at /asset/setjob. The following is the JSON payload being posted to /asset/setjob:
[{"job":
{"source_filename": "beer-drinking-pig.mpg",
"current_step": "waiting_for_file",
"encoding_profile_id": "nil",
"resolution": "nil",
...
Using Zend Lucene I cannot search numbers in description fields
Added it like this:
$doc->addField(Zend_Search_Lucene_Field::Text('description', $current_item['item_short_description'], 'utf-8'));
Googling for this showed that applying following code should solve the problem, but it did not..:
Zend_Search_Lucene_Analysis_Analyzer::s...
Hi,
How generate Doctrine Models from database on windows?
(I working with zend studio and zend framework)
...
Hi,
I build zend app with doctrine.
The problem is when i add new tables to database and I should generate doctrine models, because I add my own code to Doctine generated classes- I dont wont to delete them.
I solve this problem like that:
1. copy old generated doctine models classes to other folder
2. generate doctrine models from datab...
I'm trying to redirect to
http://localhost/site/public/admin/login
from
http://localhost/site/public
but for some reason, it keeps redirecting to
http://localhost/admin/login
The code I am using is:
$this->_response->setRedirect('/admin/login')->sendResponse();
This is really frustrating me, and any help would be grealy appr...
Hello,
When I call the method findDependentRowset, the returning rowset contains all the rows in the dependent table, and not only the rowsets that matches the reference.
Hoping someone could explain this, since I was of the assumption that findDependentRowset would only return rowset matching my 'rule'?
I have the following DbTable M...
i have a page post2.php which prints the json array like
{
page: 1,
total: 239,
rows: [
{id:'239',cell:['239','ZW','ZIMBABWE','Zimbabwe','ZWE','716']},
{id:'238',cell:['238','ZM','ZAMBIA','Zambia','ZMB','894']},
{id:'237',cell:['237','YE','YEMEN','Yemen','YEM','887']},
{id:'236',cell:['236','EH','WESTERN SAHARA','Western Sahara','ESH',...
Hi,
I am working on a Zend project and it has been well over 12 months since I touched Zend, I am getting an error on one of my functions, and I cannot work out why, I think it may be down to the site being originally built in an earlier version of PHP (5.2) and I am now running 5.3.
The function looks like this,
public function add...
I'm trying to set the inner html of the < span > tag here , so it looks like:
Group
this is what i have so far:
$form->addDisplayGroup(
array(
................
),
'maingroup1',
array(
'legend'=>'',
'disa...
I'm using zend frame work zend form and zend db for my project.
The problem I have is, when the user enter some special characters in the text field (i.e "I'm"), it is saved in the database with the "\" character (i.e. "I\'"). I need to know how to fix this so it just saved as whatever the user entered.
...
I've searched around and haven't really found anything on this, so maybe someone here has tried this before. My company already has a website built with Zend, and we'd like to add in a forum as well. All I really need is something that will work with postgresql and has foreign language support (particularly Japanese, but if worst comes...
Hi,
What should I configure when I put Zend project on windows to Ubuntu Lamp?
(I asking that beacause my Zend progect not working on Ubuntu, its gives first pages, but after i enter to next page its gives me 404 error(page Not Found), I check if rewrite mod enable with : sudo a2enmod rewrite and get: Module rewrite already enabled ::: ...
hi i am new to zend and i installed zend server in my local machine, i found phpmyadmin on my instalation directory and i copied it on htdocs.
while running http://localhost/phpmyadmin it appears login page and when i enter username and password it does not redirects to the main page.
instead it gives "internal server error"
thanks in ad...