A submitted form on my site returns an array of request data that is accessible with
$data = $this->getRequest();
This happens in the controller which gathers the data and then passes this array to my model for placing/updating into the database.
Here is the problem. What if I want to manipulate one of the values in that array? Prev...
Is it possible to use a Symfony plugin in a CMS being built with another framework like Cake or Zend? How independent are those plugins?
...
Using PHP GMail OAuth Library/Sample.
$options = array(
'requestScheme' => Zend_Oauth::REQUEST_SCHEME_HEADER,
'version' => '1.0',
'consumerKey' => $THREE_LEGGED_CONSUMER_KEY,
'callbackUrl' => getCurrentUrl(),
'requestTokenUrl' => 'https://www.google.com/accounts/OAuthGetRequestToken',
'userAuthorizationUrl' => ...
I mostly come from Java background as have no up to date info on best practices regarding PHP, so please advise.
We are about to start a PHP project for an application (no portal). The framework needs to be stable (no changing API between releases), need to scale well, support clustering maybe and obviously need to facilitate common pr...
Hi guys, I am trying to include the Zend framework, but I keep getting this error,
Warning: require_once(Zend/Json.php) [function.require-once]: failed to open stream: No such file or directory in /usr/www/users/eyelogicy/zone.eyelogic.co.za/weskom/form/classes/ZendFramework/Zend/Json/Decoder.php on line 25
here is the PHP code I am u...
Scenario:
Change shipping price using variable parsed by design during checkout.
I need to change the final shipping price using some variables sent by phtml checkout.
Eg.
Shipping method 1: cost 33$
Shipping method 2: cost 23$
Shipping method 3: cost 10$
special packaging checkbox (y/n) + 10$ (set it as yes for this example)
...
Hi,
After form (method POST) submission i want redirect user to specific page.
usually i used simple line
header("Location: /path/to/redirect/");
exit;
The Zend_Controller_Action have method _redirect example:
$this->_redirect("/path/to/redirect/");
But it have one simple problem: if i refresh page (press F5) last controller act...
I've been pushing stuff from our website to our company twitter account automatically. Like some news updates, updates to some sections of our site, etc ... It's all been happening automatically using the Zend Framekwork Twitter service, or other very simple php code that uses a username/password hardcoded.
Now, Twitter killed the old f...
I'm new to Zend Framework MVC. I love a lot of things about working with an MVC environment, but find myself confused about it structurally sometimes.
I have a simple task, I'd like to flag certain users on our site to track their movements. For this I've set up a simple table in the database, and started to code in my _initTracking() f...
Hi,
With Zend Framework it's easy to log strings that haven't got a translation.
My question: how do you log the strings that do have a translation?
Thanks!!
...
In controller I am generating a special form by ID, passed from AJAX. Form output is JSON. Form creates finely. But my problem is to show this JSON in view. How?
Thank you.
...
I'm in the middle of converting an existing app built on top of zend framework to work as a plugin within wordpress as opposed to the standalone application it currently is.
I've never really used zend so I've had to learn about it in order to know where to begin. I must say that at first I didn't think much of zend, but it's funny beca...
How can I set custom error levels with Zend Framework - say, I want to disable E_NOTICE.
Thanks.
...
How to access view inside plugin.
For example i have language plugin and i need to add to add javascript language array depending on language plugin output.
Thanks ;)
...
Hi, I'm having a bit of trouble on some of my controllers.
Some of them load fine but some of them produce the Invalid controller specified error. All are contained inside the 'controller' folder, file names and class names are named the same way for all. In my bootstrap though, the controllers that work are the ones which I have added...
When creating form elements with Zend (using Zend Studio for Eclipse), I'd like some auto completion or hints. Here's what I'm thinking. I'm sure these exist, but I don't know how to get them.
I type createElement and auto-completes gives me the signature createElement($type, $name). Great, I select it.
but when I try to set the $typ...
I've started using Zend Framework and Studio for my projects and would like to hear from those who already use it what to expect. I'm not interested so much in the good things because these can be marketing messages. I want to know about the things that are not so good or are annoying so I can decide for myself if they matter enough to m...
How do you decided to use a framework (such as the Zend Framework) when building a new web app?
What are the advantages of starting from scratch as opposed to using a framework? I am well aware of the advantages of a framework, as well as some disadvantages.
I have heard it said that really large projects generally don't use an off-th...
I have a bit of data that I want to use to build a form's select field. The JS that generates the form (it's part of the jqgrid plugin) is in the view. How do I get the data from the controller into the javascript so I can use it?
To just get something working I tried the following...
In the controller I created an action to return som...
I'm using the Zend Framework's Soap Server module and I'm looking to return a complex type that looks like the below, but for the life of me, I can't figure out how to do this...
Desired Output
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP...