Hi, I can't seem to find where to specify the CSS class of the list items for rendering a Zend_Navigation object. I know you can set the class of the ul tag via the navigation menu view helper and the class of the anchor via a page attribute...but not the li tag containing the anchor.
Can anyone point me in the right direction?
...
So I've set up testing in my ZF 1.9.5 application thanks to this tutorial, I am able to test my controllers, now I want to create a test for a form. However, I'm having the problem that PHPUnit can't find my form.
Fatal error: Class 'Default_Form_AccountProfile' not found
I'm extending PHPUnit_Framework_TestCase instead of Zend_Test_...
I want to display a Zend Form with one of the elements shown as disabled. I'm setting the value so the user can see it, but I want to disable it so the user can't edit it. This may also involve some sort of css/javascript to ensure that it looks like, and is not editable by the user. This is my element:
$this->addElement('text', 'us...
I'm trying to get interactive debugging working with a Zend Framework application and Xdebug, using MacGDPp as the client debugger. I'm running to some problems setting breakpoints and was hoping
Someone could solve my specific problem
Someone could give me a high level overview of how this is supposed to work so I can track down the ...
I'm thinking about adding some validation/filtering to the phone number field of my Zend Framework application. Not sure if this is something I should do or not.
I thought it might be helpful for users to have such a feature so I could enforce a particular display format. I'm not sure if the formatting of the phone number should be stor...
Hi all,
I am having difficulty determining my misunderstanding of how Zend Search Lucene indexes and searches integers in ranges.
In the following example, I would expect the output to be 1, however it is always 2 (both results). Any hints would be much appreciated.
<?php
require_once 'Zend/Loader/Autoloader.php';
$loader = Zend_Load...
I'm halfway through a CMS where the URL is an SEO friendly name based on a page title. There is a need for one section to use a specific controller. So for example:
test.com/page1 (uses index controller)
test.com/page2 (uses index controller)
test.com/page3 (uses different controller)
test.com/page4 (uses index controller)
I could add ...
I'm pretty new to Zend.. I'm just wondering how to model my site's layout/structure. My site will have an user profile section, admin section, and the generic the default view of the site.
For the admin and profile, I'll have custom elements in the headers and footers, otherwise I want to default to a generic header/footer.
I want the...
Hi there,
I'm using the PHP Zend Framework.
How can I get the values from the controller sent by:
$infoForm=array(
// I get these values from a DB
'idCity' => $idCity ,
'idRestaurant'=>$idRestaurant
);
$form->populate($infoForm);
i get the info in the Dojo_Form
$city = new Zend_Dojo_Form_Element_FilteringSel...
In our application, we have certain scenarios where we'd like to perform a redirect and pass a long string to the next controller/action. I'm familiar with both of these:
$this->_redirect('/controller/action?string=thisistheverylongstring);
But would like to avoid showing the user the string as part of the URL.
Throwing the string in...
I'm trying to get a simple client/server XMLRPC server setup but I am having trouble using parameters. The code runs fine if I take the $client_id parameter out of the fetchClient() method and $client->call(). However if I include it, the server returns "Calling parameters do not match signature"
Controller Code:
class XmlrpcController...
I have a form where a user can create an account. The username column is unique in the database. If a user tries to create an account with a duplicate username, it throws an exception. This ends up looking pretty ugly.
I'm thinking about doing some sort of check before inserting in the database (possibly with ajax) to see if the desired...
Bizarrely my javascript and css files have cookies (says Firebug). I use Zend Framework and I think it has to do with it. Could I change the .htaccess that CSS or JS files don't link to the ZF or is there another solution?
.htaccess:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
Rewri...
Hi ,
iam trying to write an short Rest Service with Zend Framework. But the documentation is not the best at this Part.
I have an ApiController extended Zend_Rest_Controller with all needed abstract methods. My goal is to get Post data and return something.
My client looks like this:
public function indexAction()
{
$u...
Hi,
is there any way to tell the Zend Framework Router:
" if www.domain.com/test " is called
forward to indexController -
forwardAction and recieve the parameter.
" if www.domain.com" is
called show indexController /
indexAction
??
...
Hey, so I'm coding a php application, and I've run into an error, which I am for some reason not seeing (me being really bad at coding and lack of sleep may have something to do with it.
Anyway, here's my tricky problem :)
Parse error: syntax error, unexpected $end, expecting T_FUNCTION
and the code:
The model
class Model_DbTable_Us...
I don't get it how it really works.
I have a database table user and a model User:
<?php
class User extends Zend_Db_Table_Abstract {
protected $_name = 'users';
}
And in the controller I call it: $user = new User()
But how do I get for example all users or a user with the id: 1?
...
I currently have a search form in the search controller, so the only way I can get to it is through /search/. I have to refactor my code so that this search form appears not only in the Search Controller but also globally throughout the site.
( The code isnt exact as I had to retype some of it )
My class that extends Zend_Form is loca...
Hi All,
I have been trying for hours to get this working and I still have had no joy. Basically I am trying to connect to Google Base using the GData library built into Zend Framework 1.9. I have cut my example right down the nothing, just to get it working. All I am trying to do for the sake of the example is simply connect and insert ...
Firstly this site is based on guests who are interested in selling their items to the site owner, so this isn't auction based like Ebay.
Visitors basically would enter in details of an item ( tech gadget ) they'd like to sell, including condition, are given a quote on how much the item is worth, then fill in address info so the owner sh...