zend

Function is not defined when appending a url parameter

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...

Zend Framework Testing controller Zend_Controller_Exception: No default module defined for this application

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...

Trying to get property of non-object Zend Bootstrap

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...

Zend Framework compound primary key update

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...

Zend frame work Custom view helper error

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...

How to authenticate users into internal application with Google Apps

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...

how to access url helper in zend from the models

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...

How to enable direct access to ErrorController in Zend

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...

How to set any attribute of Select lke disabled='disabled' by using ViewHelper in Zend Framework

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 ...

xajax with zend framework

Hi, I want to integrate xajax with zend framework. Is it possible ? how ? ...

How do i pass the params to the zend_navigation which references the other page

$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'...

How to set order of columns where joins are included in select in Zend Framework

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...

How do i pass the PHP Dynamic variables in to the XML File

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...

Configuration parameter in xdebug for allowing multiple hosts on remote machine

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...

Zend Controller Question

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) { ...

How do we iterate over the object that implements iterator

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...

Google Blogger Integration

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"; ...

Zend Layout Question

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? ...

zend framework plug-in - predispatch()

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(); ...

How do i get the value from array and assign to view in zend frame work

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 ...