Hi, I'm using Zend Framework and on one of my forms I have a ZendX JQuery form element. When I run the action that instantiates the form like this:
.../controller-name/action-name
the form element works fine.
But when I append a parameter to the url, i.e.
.../controller-name/action-name/parameter
the form element does not wo...
Hello.
I try to write test for controller. I use OS Windows, zend framewokr and my libraries are in C:/library which is added to the include_path of php.ini.
When I run test testLoginAction I get an error No default moudulde define for the application. But I don't use modules at all. Do you know how to solve this problem?
IndexController...
I'm moving a site from development to production and suddenly this error keeps popping up:
Notice: Trying to get property of non-object in /var/www/vhosts/xxxx/httpdocs/application/Bootstrap.php on line 16
Notice: Trying to get property of non-object in /var/www/vhosts/xxxx/httpdocs/application/Bootstrap.php on line 17
Notice: Trying to...
Hi,
For a project I need to update a row where the PK contains two columns.
At first I thought I should do it like this but it gives me errors. Anybody with a solution?
$data = array('foo','bar');
$where = $this->_getGateway()->getAdapter()
->quoteInto(array('customerId=?','date=?'), array($comment->customerId, $co...
Hi am trying to add custom helper throughout my application
Have done following steps
index.php
$view = new Zend_View();
$view->addHelperPath('My/View/Helper', 'My_View_Helper');
Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
Helper class in My/View/Helper
class My_View_Helper_Common extends Zend_View_Helper...
I am creating an application within our company that handles all our processing. This will need to implement Google Apps (we have premier).
I'm having a hard time figuring out the best way to authenticate user. I need full access to ALL their information (add, delete, modify [calendars, emails, contacts[, password?]]). I'm wanting to d...
is there an easy way to access the url helpers from the models like the ones available in the controllers
i mean in the controllers there is an easy way to generate urls like this :
$this->_helper->url(controller,action,null,params);
now what i need is an easy way to pass urls direclty from the model to the views , for now what i am d...
I use ErrorHandler in my application to intercept exceptions, but I also want to be able to redirect user to error screen using URL:
class SomeController extends Zend_Controller_Action {
public function someAction() {
...
$this->_redirect('/error/device-unknown/id/12345');
}
}
This however takes me to standar...
Hi, i am using Zend Frameworks ViewHelpers.
I am trying to pass something to set disabled attribute in SELECT. for example
if $countries = array(1=>'Select Option', 2=>'us', 3=>'uk')
and
formSelect('country','us',null,$this->countries)
I need to diable first option i.e. 'Select Option'
Do you have any idea ?
Thanks in addvance
...
Hi,
I want to integrate xajax with zend framework.
Is it possible ?
how ?
...
$pages = array(
array(
'label' => 'Search',
'title' => 'Please Search',
'uri' => 'Search.php',
'params' => array('stcode'=>$stcode)
));
now the pages array will be passed to the zend_naviagtion
$container = new Zend_Navigation($pages);
$view->getHelper('navigation'...
Hi
Do you know if in case as follows there is any way to set sequence of columns? which is first, which one is second etc?
$select->from(array('e' => 'equipment'), array(
'ID_equipment',
'nr_in',
'equipment_type_ID_equipment_type',
'serial_n...
Iam trying to generate the menu and For that iam using navigation.xml (Zend Framework)
Contents of navigation.xml(file)
<?xml version="1.0" encoding="UTF-8"?>
<config>
<nav>
<page1>
<pages>
<label>test</label>
<uri>abc.php</uri> </pages><page1></nav></config>
and in the controller iam reading the config.xml file as follows
$con...
Hi
I am working on one web application. The project located on my linux box i.e. server.
We are remotely accessing this machine from windows.
I am using xdebug for debugging alongwith Eclipse PDT.
xdebug is installed on my server. Below configuration are set in php.ini file ( which is located on server ) :
xdebug.remote_enable=1
xdeb...
Hi,
i have created a controller in which the default index action is being used to display a login form and then authenticate the user. However i have ended up having to add functions into the controller which i feel will clutter up the controller.
for example i have functions like:
protected function _process($values)
{
...
Iam rendering a menu (using Zend framework) (zend_navigation)
what iam doing is getting the page as label if the page has the value "myPage"
than then iam setting the new URI with the page as expected
$it = new RecursiveIteratorIterator(
$container, RecursiveIteratorIterator::SELF_FIRST);
foreach ($it as &$page) {
$label = $page...
Trying to just retrieve blog post and print the contents to a site. I am using the printFeed method from the documentation but it just seems to print the title. I need the title,body,photos,comments,etc.
function printFeed($feed)
{
$i = 0;
foreach($feed->entries as $entry) {
print $i ." ". $entry->title->text . "\n";
...
Hi i have a lot of common html that i want to use in a layout by doing :
zf enable layout
however the problem is want this layout to be shown on every action apart from the loginAction() that i have created within the controller?
...
I wrote a plugin with predispatch() method to check access rights on each controller request . I have made plugin as :
class My_Plugin_Checklogin extends Zend_Controller_Plugin_Abstract {
public function preDispatch() {
if (isset($_SESSION['Zend_Auth_Static'])) {
//no login
$request = $this->getRequest();
...
iam executing a stored procedure in php and iam returning an array
["record"]=>
array(1175) {
[0]=>
array(20) {
["Col1"]=>
string(1) "Mode"
["col2"]=>
string(16) "type"
}
}
how do i get the col1 and col2 values from the array and assign it to the view
.what should i ...