When it load the xml file, the icon cause failure inside the label tags. How to fix it?
// horizontal top menu
<?xml version="1.0" encoding="UTF-8"?>
<root>
<nav>
<page1>
<label><img src='icon.icon' /> Page 1</label>
<controller>index</controller>
</page1>
<home>
<label>Home</label>
<controller>...
Hi there,
I am trying to update the searching of terms of documents within my Lucene index. Currently the searches score on the number of times the term appears in the document. What I would like to do is score if the term exists, rather than the number of times the term exists. So a document with the term in it once scores the same ...
Hi,
I am trying to use Zend_Http_Client to fetch a specific page (www . nu . nl)
I am using this code
$client = new Zend_Http_Client($url,
array(
'maxredirects' => 5,
'timeout' => 30,
'useragent' => 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.3) Gecko/20010801 '
)
);
$code = $client->request("GET");...
I am using zend framework on windows. I want to implement ajax in my project first time. I searched for help and created a very simple ajax functionality.
IndexController.php
public function indexAction() {
}
public function oneAction() {
}
public function twoAction() {
}
index.phtml
<script type="text/javascript" src="js/jquery-1...
Is it best to have each application with its own copy of the ZF library code, or have the code in one area on the drive and just make sure it's on the include path? Having each app with its own copy seems like the best way to avoid any deployment issues (for instance, developing on Windows and deploying on Linux).
I am using Netbeans a...
How can i add my own jQuery plug-in located in my zf path "public/js/isround.js"?
- to apply using Zend framework instead of manually putting this:
<script> $("#world").isRound('myPlugin'); </script>
jQuery setup is working
$this->jQuery()->setLocalPath('http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js')
...
Hi,
How to remove decorators label + HtmlTag with loadDefaultDecorators function?
My solution - please tell me if my implementation working well or need modifications
class MyForm extend Zend_Form{
function init(){
//create form elements
......................................
}
public function loadDefaultDecorator...
i was reading Zend Framework Book: Survive the Deep End about resource methods. it speaks about how resource methods will override resource plugin.
But wait, there's also a Resource
Plugin
(Zend_Application_Resource_View) which
may also create a Resource called
View. Can we have two View Resources?
The answer is no - we ca...
Hi
What's the easyiest way to create a table with Zend_Pdf?
Until now, i realized tables with horizontal and vertical lines. Is there no other solution for tables?
Thank you.
...
Hi,
I am working on a Zend Framework, MVC, enterprise website project. I would like to develop a friendly translation system with the ability to translate each word according its context (sometimes same word have different translation).
Zend Framework uses Zend_Translate for i18n and localization. We have also seen Magento's (which use...
Hi everyone.
Here's my problem. I'm developping an application using ZF 1.10.0, and I have a module called Backend. I need to create a Form for that module. But the damn Zend_Tool won't let me make it inside the modules/Backend/forms folder. Is it necessary to put it there (meaning I'll create it manually), ou should I let Zend_Tool cre...
Hi,
I have a problem with the regex of Zend_Json::prettyPrint.
When in my JSON response I have a string with a comma inside like
"stack, overflow"
the string is splited in two:
"stack,
overflow"
and I would like to have the string on the same line and not splited. In the file Zend/Json I found the regex:
$tokens = preg_split('...
How can I get the description of a select multioptions tag in ZF?
If I do this, then I recieve the value, but a want the description
$subjectTitle = $feedbackForm->getValue('subjecttitle');
...
in zend framework, i usually setup vhosts so that i can refer to my static resources like js, css via "/css/styles.css" but what if i dont setup vhosts? my path to the static resources will be like "http://localhost/app1/css/styles.css". is there a way to find find what is the proper path to css/styles.css without hardcoding the "prefix"...
Currently we are storing mysql passwords in the application.ini.
As this file is in our source code control repository (bazaar), it is not a good place for the passwords of the production server.
I was thinking about storing it in an environment variable of the apache configuration.
Is this reasonably safe?
...
I have models of my tables and would like to do a join using a model as opposed to to a table.
For example, instead of:
$select = $this->select()
->from(array('p' => 'products'),
array('product_id', 'product_name'))
->join(array('l' => 'line_items'),
'p.product_id = l.product_id',
->limit(20, 10);
where I specify the table na...
I am going to use Zend framework to access data from an oracle database. Previously I have the class I built to interact with the database (outside of framework), those are all procedural and function calls in the database (not SELECT statements), I have to bind variables and then execute them. I am looking to use Zend_db component to ac...
I have a form that I am trying to set the action for. I want to declare the action inside my form file (which extends Zend_Form) instead of in a controller or view, using a route I have created in my bootstrap.
Usually when I want to use a route I do something like
$this->url(array(), 'route-name');
in the view, or
$this->_helper->ur...
I am trying to understand why ZendX_JQuery will not work when used directly in a layout. It works perfectly fine when in a view:
creates the needed code
puts the JQuery script in the head tag
But when used inside the layout
creates the needed code
does not insert the JQuery script in the head tag
Can this be overcome, and how? An...
Hello,
How can i prevent zf-tool from creating models in module directories?
When i add a model using The Zend Framework Tool (1.10.6) as follows:
zf create model test
zf creates my test model in the application/modules/admin folder.
can someone tell me how to create a model in the default models map?
As far as i know, the admin m...