I've just copied my dev site to the live server, updated configs with new DB connection details etc, but get the following error message:
Fatal error: Uncaught exception 'Zend_Loader_PluginLoader_Exception' with message `'Plugin by name 'IncludeStyles' was not found in the registry; used paths: Zend_View_Helper_Navigation_: Zend/View/He...
Hi,
I'm getting to grips with Zend_Form and can create a form to add/edit a single database record, but now I'm trying to create a form to edit multiple records on a single page. For example, if I had a table of sports teams, and another table of players assigned to them teams I would want to be able to click on a team on my site and ha...
Hi,
I was thinking about extending all my controllers from the indexController. I have in the index controller a init() function that does alot of stuff. This is not executed upon fooController request.
I allready have a registered a viewSetup plugin. And this is executed on all requests and thats just fine.
My problem is a have blog ...
I am using Doctrine 1.2 & ZF 1.10. I have my Doctrine CLI setup fine to do the default tasks. But I have created a couple classes I would like to be able to execute from the command line. How would I setup my application.ini or doctrine.php to register and use these new classes? For instance, I want to be able to execute APPLICATION_PATH...
Hi
I have implemented three legged auth to gmail using the Zend framework. I am wondering what the best way of finding emails once authenticated is (for example by a mix of title regex, sender, date range) - which is efficient?
Thanks!
...
I'm new to MVC and Zend Framework and I'm working on a project, mostly on the front end. I'm trying to get a sense of what are best practices.
Currently the footer and header are setup through several scripts, one that is a giant XML file of all the content on the website (I think to make the website international friendly, things are w...
Hi,
I'm using the Zend Gdata Gbase Class in zend framework but I don't know where to start. Basically I will be uploading a zip file that contains a text file with the google feed format in the google merchant center to make my product items searchable online. My script will use a proxy site.
What basic tutorial link can you give in or...
All I want to do is make a form, in Zend Framework, that looks like this:
<p id="foo">
<form action="#" method="post">
<label>Start:</label>
<input id="start" type="text" name="start" />
<label>End:</label>
<input id="end" type="text" name="end" />
<input type="submit" name="submit" value="Submit" />
</form>
</p>
and I simply cann...
Hi,
I'm using Zend_Translated to translated all my strings
$translator->_('hello')
If my locale is in french this code will print "Bonjour".
When browsing the french version of the site i'd like to output some german text.
$translator->_('hello', array(locale=>'en'))
This will still output "Bonjour" but i'd like "Guten Tag"
How...
I have just started playing around with using Dojo in Zend Framework and things have been fine up until recently. For now, I would like to be able to make a simple GUI using BorderContainer and ContentPanes, however I have been finding this is a bit awkward.
Basically to get the container Dojo elements to work, I have found that I need ...
So the thing is I have a form in page A which is being submitted at page B.
After validating the form at page B, it should redirect back to page A and show the form with the possible errors that occurred.
What's the best way to achieve this? Is it smart to temporary put the whole form object in the session? Or is there a more elegant s...
I have a Zend_Dojo_Form which I have moved from my view (where it works fine) to my layout, as it's something that will be useful on every page. However in the layout the form no longer works - none of the dijit elements appear and it behaves just as a normal HTML form would.
Here's the relevant part of my bootstrap:
protected functio...
I've run into a bit of a snag in my application where a relationship defined as a one-to-many relationship returns a model object (instance of Doctrine_Record) instead of a Doctrine_Collection when I try to access it as $model->RelatedComponent[] = $child1. This, of course, yields an exception like so:
Doctrine_Exception: Add is not ...
In Zend Framework we can change the file extension of view files from phtml to php by adding following code to controller.
$this->getHelper('viewRenderer')->setViewSuffix('php');
But how to change the file extension for layout files?
...
In Zend Framework, most of the time to get a param, i will use
// from controller
$this->getRequest()->getParam('key');
but how can i get just GET params using the 'Zend' way? Or do i just use $_GET? Is there any difference between
$this->getRequest()->getParam('key');
vs
$_GET['key'];
...
I found that many functions thats documented in Zend_Service_Twitter seem to be no longer working, or maybe i did the wrong thing.
Zend_Debug::dump($twitter->account->verifyCredentials());
returned
object(Zend_Rest_Client_Result)#50 (2) {
["_sxml":protected] => object(SimpleXMLElement)#55 (2) {
["request"] => string(33) "/1/a...
I am working with legacy code written in PHP 5.2.6 with Zend Framework 1.5.3 on CentOS 5.5
There is code as such
url:"./sales/getAlerts/?bypass=1"
The view is named getalerts.phtml
Controller function is named getAlertsAction
Code works fine on existing server, but when I try moving it to a new server the code fails stating that .....
I have tried setting up a zend site with the following directory structure :
application
-configs
-forms
-modules
-admin
-default
-controllers
-IndexController.php
-forms
-Testform.php
-layouts
-modules
-views
Then in my IndexController.php I have the follow...
I going use zend framework but just some tool of zend like translate, date and cache. Can I use it as standalone class? My project has it own structure and I don't want use the whole zend fw. If yes, which files should I include in my project? Is there a docs for using each zend fw tool as standalone?
...
Okay,
I have read, and tried a lot of things on how to implement uploadify with Zend, and I'm probably overlooking something, but I'm completely stuck. It seems my action isn't called.
All the uploadify are placed in one directory inside the public folder.
The upload button is called in a fancybox instance and is loaded from a hidden ...