I'm using Zend_View_Helper_HeadScript to add JavaScript code inside the <head> tag.
$view->headScript()->appendScript($javascript);
$view->headScript()->appendScript($javascript2);
This works fine, except that my code is full of <script> tags (one for each appendScript call). How to add $javascript2 to the same <script> tag? I just wa...
I need help with a couple of problems in my magento sales module.
I have a mobile number text field in my magento extension back-end. I want to get it validated using this regular expression ^[a-z0-9\. _\'-]{1,11}$.Also want to show a help text for each fields.
I want my extension to do some operations when the Admin ships the order.P...
Hi,
I've got a problem with Zend Framework, when calling an action.
This action is called "uploadvideo" inside a controller called "UploadInterfaceController".
Therefor the view is called "uploadvideo.phtml".
Now all this is wrapped in a module called "Upload".
The problem is, that I cannot call a link inside the uploadvideo.phtml.
I ...
FIrst of all I don't intend to spam - I 'm building email facility in my application and would like to be able to include any email address in the from header of the email while be able to send it from any mail server i.e like show a yahoo address in the email from field while send it from my own smtp server? Is it possible? I'm using ph...
Hello,
Anybody knows about the URL. Where I can get already build modules in zend framework as we get plugins in joomla so that I can use them directly. For an example banner management module, notification and otheres.
Is there any place where I can get this??
Thanks in advance
...
I have overriddend the isValid() function for a form, and I was wondering if there are any drawbacks to adding logic there.
Example code:
public function isValid($data)
{
// conditional requirement of fields
$isValid = parent::isValid($data);
if ($isValid) {
// additional validation
}
return $isValid;
}
...
I'm trying to write a function to SELECT the least-recently fetched value from a table in my database. I do this by SELECTing a row and then immediately changing the last_used field.
Because this involves a SELECT and UPDATE, I'm trying to do this with locks. The locks are to ensure that concurrent executions of this query won't opera...
Hi stackers,
I want to get the action to output the necessary javascript for initializing the dijits in the Zend_Dojo_Form. When I have layouts enabled, it works. I want to disable layouts because this is an ajax response.
With layouts enabled, I get a lot of javascript inserted into the header for initializing the Zend_Dojo_Form. For ...
Hi guys,
I'm trying to figure out how to get this zend form to validate. I don't understand:
Are the addValidator() arguments specific validators? Is there a list somewhere of those validators?
I've got this in the forms/contact.php:
class Application_Form_Contact extends Zend_Form
{
public function init()
{
$this->setAction('i...
I get an ugly exception from Zend Translate:
Fatal error: Uncaught exception 'Zend_Translate_Exception' with message 'Ini file 'Array' not found' in C:\www\libraries\ZendFramework-1.10.5-minimal\library\Zend\Translate\Adapter\Ini.php:54
application.ini
resources.translate.registry_key = "Zend_Translate"
resources.translate.a...
OK. I finally got my zend form working, validating, filtering and sending the contents to my process page (by using $form->populate($formData);)
Now, how do I email myself the contents of a form when submitted? Is this a part of Zend_form or some other area I need to be looking in?
Thanks!
...
I've set the following routes for in Zf:
$router->addRoute(
'page',
new Zend_Controller_Router_Route('stranka/:niceuri/:id', array('controller' => 'page', 'action' => 'index'))
);
$router->addRoute(
'cat',
new Zend_Controller_Router_Route('kategoria/:niceuri/:id', array('controller' => 'category', 'action' => 'index'))
)...
Hi everybody,
I'm trying to use fetchAll on a query that has 2 variables. I can't figure out the syntax.
I can manage with only 1 variable:
$sql = "SELECT * FROM mytable WHERE field1 = ?";
$this->_db->fetchAll($sql,$value1); # that works
However I'm having some issues when query has multiple variables
$sql = "SELECT * FROM mytable ...
Hi,
How zend framework avoid html duplication?
Example of html id duplication:
<div id="edit-form">first div</div>
<div id="edit-form">second div</div>
Case1: page that user can add same forms/subform/etc.. by himself
controller action example:
function indexMyAction(){
$form1=new MyForm();
$form2=new MyForm();
$form3=new MyFo...
Hello,
the full error is "Zend_Db_Statement_Mysqli_Exception: Mysqli statement execute error : Prepared statement needs to be re-prepared"
It occurs only on our unit tests server, but not on all run (it run tests every hour), and not on all test wich use database. We only have 111 PHPunit tests.
The test server is a Linux Centos5 with...
Hi,
I beginner in zend framework and its a bit hard for me to understand zend_translate how its works.
My Main Question:
How can be done with zend framework translation that will translate each expression according his html id and how non programmer translator can see word location in web browser for translate each expression according...
Hi,
Which solution supplied zend_translate for translate word with few meanings?
Example: http://m-carstairs.com/englishlessons/id12.html
Thanks,
Yosef
...
I'm trying to implement this basic example found here:
under the section titled "Using as part of Zend_Auth".
I have the Zend Framework version 1.10, Apache 2.2.11 and I'm using Firefox with the "Cardspace for Firefox 3" extension.
The login page comes up (as copied from the example in the documentation) and I'm able to chose an info ...
Has anyone taken the sfLucenePlugin and made it work in Symfony 1.3 or 1.4?
The plugin requires pake functions and the new config class to be adjusted but looks like it could be done if persistent.
I have seen the Jobeet tutorial for implementing Zend Lucene but am not keen to lose all of the .yml functionality that sfLucene provides.
...
How can i upload a file? Stackoverflow i cant page codes so please check this link: http://pastebin.org/386639
Thanks in advance
LATER:
Later i updated this as following, because ZF is not friendly, they keep still everything top secret! :P
public static function mvUploadFile()
{
//
// $_GET/_POST/FILE what ever
//
...