So I have an action helper (from which I call a second action helper):
<?php
class My_Controller_Action_Helper_Helper1 extends Zend_Controller_Action_Helper_Abstract
{
public function direct()
{
$theActionController = $this->getActionController();
$helper = Zend_Controller_Action_HelperBroker::getStaticHelper...
I noticed that the Zend GData YouTube class does not yet support the new rating system on Youtube. How can I extend the class so it reads from yt:rating rather than gd:rating? Are there any methods I can use to manually pull the data out of the returned XML?
Also, in order to even make the new rating tags appear, I had to do this:
$que...
Hello. My problem is I want some parameter values, passed through URL, don't trigger the Zend routing but lead to defaul controller/action pair.
Right now I have following in my index.php:
// *** routing info ***
$router = Zend_Controller_Front::getInstance()->getRouter();
$router->addRoute('showpage', new Zend_Controller_Router_R...
I'm trying to realize the following query with zend db select:
SELECT `uac`.`uid`, `u`.`uid`, `g`.`groupid`, `g`.`packageid`
FROM `user_has_data` AS `uac`
INNER JOIN `users` AS `u` ON u.uid = uac.uid
LEFT JOIN (`user_in_group` AS `uig`
INNER JOIN `groups` AS `ag` ON (ag.groupid = uig.groupid) AND (ag.packageid = 2)
) AS `g` ON u...
Hi,
I'm trying to connect to a mssql db with the Zend Framework, my application.ini looks like this:
resources.db.adapter = "sqlsrv"
resources.db.params.host = "localhost\SQLExpress"
resources.db.params.username = "*"
resources.db.params.password = "**"
resources.db.params.dbname = "Database"
resources.db.isDefaultTableAdapter = true
...
have defined different models and modelMappers in my php project.
my folders are structured as follows
-application
--models
---DbTable
----modelName
---modelMapperName
modelName.php
class Application_Model_DbTable_ModelName extends Zend_Db_Table_Abstract{
}
modelMapper.php
class Application_Model_ModelMapper
{
}
everytime i try t...
I cant load this plugin how can i load this?
I have IndexController.php and I have OthersController.php. For all those controllers, to have 1 single preDispatch method i wrote a plugin as following. Can you please guide me kindly, how i can now attach this with all other controllers???
@file: application/controllers/GlobalControllerPlu...
Hey folks,
in order to monitor the upload of large video files I'm using the progress bar as shown in the demo that is shipped with the framework. The upload is working fine and the progress is shown correctly.
However, since the form is targeting a hidden iframe, the server response to the initial post request is sent to that hidden i...
I have a two table in relation with has_many assocation on theirselves.
How can i call has_many table with where condition?
When i call like "$news -> findNewsComment();" i get Comments. but i want specific comments, like just approved comments.
is it possible something like $news -> findNewsComment(array('state_id = ?' => '10'));
...
Is it possible or How can i give a type to a FlashMessage in Zend?
For example
/* This is a "Success" message */
$this -> _helper -> FlashMessenger('You are successfully created a post.');
/* This is an "Error" message */
$this -> _helper -> FlashMessenger('There is an error while creating post.');
/* This is just a "Notification" ...
I found this code here while trying to understand what an actionstack does and why they're supposed to be so bad. I thought that an actionstack is just one type of action helper (just like flashmessenger or redirector or ViewRenderer).
But anyway, does anyone understand what this code does and how to do the same thing without an action...
Hello,
For some important reasons I can't use standard methods provided by ZF to prevent sql injection. I have just wrote that (and I am using it on each POST/GET data from user):
$filter = new Zend_Filter_PregReplace();
$filter->setMatchPattern(array("/[';`]/"))
->setReplacement(array(''));
I am using MySQL database only. Is ...
I've tried using a Dojo button view helper, but it appears that Zend will not automatically generate a dojo.require('dijit.form.Button'). Is this correct behavior?
Here's excerpt from my layout script:
<head>
<?= $this->dojo()->setDjConfigOption('usePlainJson',true)->addStylesheetModule('dijit.themes.claro')->setLocalPath("/js/dojo...
Hey I have been playing with the GDATA_Calendar implementation inside the Zend Framework and have been successfully able to create sub calendars.
However, I have been having trouble in dynamically sharing these calendars with users.
Looking over the official Google docs (http://code.google.com/apis/calendar/data/2.0/developers_guide_pr...
All,
I'm developing an application using Zend Framework to manage tenders for construction work.
The tender will be a rather complex set of models with an architecture resembling the code snippet below.
My question is... should I store the total value of the tender as part of the tender model, or should I compute it each time it is re...
Hello,
I am creating a website with Zend_Form. In my controller, I assign a form object to the view. In the view, I use the following code to render the form:
<?php if ( isset( $this->success ) ): ?>
<div class="message success"><p>Thanks!</p></div>
<?php elseif ( sizeof( $this->form->getMessages( ) ) > 0 ): ?>
<div class="mess...
Hello i am new in Zend Framework
i have found that zend have support for dojo forms - Zend_Dojo_Form_Element_*
works pretty well.
But there are mising some elemnt like (BusyButton, RangeSlider or PasswordValidation)
Is zend support them??
I have found that Zend supports BusyButton (http://framework.zend.com/issues/browse/ZF-9641)
But i...
I am using the Zend Framework for construction of my site, which uses the application.ini file to store database info (such as username and password). I discovered that typing /application/configs/application.ini in the web browser plainly shows all the contents of the applications.ini file.
How can I prevent this? I tried setting the ch...
Hi. I'm using Zend Framework in one of my projects and I'm using PHPUnit for unit testing. I know that Zend_Test_PhpUnit_ControllerTestCase class is good for testing controllers with its dispatch() method and all. But I also have a few simple classes like ones used for some calculations and so on. These classes do not require the entire ...
I have something like:
$client = new Zend_XmlRpc_Client('<XML-RPC URL>');
$result = $client->call('<method name>', array( ... ));
I get an XML string in $result. Is Zend capable of marshalling this XML into some object or associative array?
If Zend doesn't marshall this automatically and I have to do so using plain PHP, how is it be...