zend

How to indicate zend framework where my custom classes are

I have a folder with custom classes in a ZF 1.10 application. The folder is located in /library. How can I tell ZF where they are? Both application.ini and index.php set the path to the library but then ZF can't find the files. Thank you ...

Unable to Access Zend Server 5 CE after installation

I have previously installed WAMP on my windows, and now I am trying to install Zend Server 5 CE 5.3.1 Win x86. During the installation of Zend Server, there is a step asking about: web server port : 80 zend server interface port : 10081 I kept to the default. After the installation, I tried to access http://localhost,and is able to ...

PHP Zend XML-RPC client - "Unknown type: i8" when making a request with Zend_Crypt_Math_BigInteger?

I am using Zend 1.10's XML-RPC client library to make XML-RPC requests to another server. One of the methods I have to call uses a i8 (a.k.a. ex:i8) type, i.e. extended big integer. This is supported in Zend (cf. http://framework.zend.com/apidoc/1.10/Zend_XmlRpc/Value/Zend_XmlRpc_Value_BigInteger.html). However whenever I try to make a f...

Deleting YouTube videos using Zend/PHP

Hello, I'm using Zend and PHP to upload and delete videos from my home page. The uploading part is working fine but to download is more complicated. $videoEntryToDelete = $yt->getVideoEntry($videoId); $yt->delete($videoEntryToDelete); I use this code to delete a video and the first row do work. The video object is created and I can g...

Best way to deal with session handling in Zend Framework

So I'm starting up in Zend framework and looking to implement a site-wide "User" session.... something I can easily access from ALL modules/controllers in the application. I'm like, should I make a new namespace in the library and extend the controller, like: class MYCUSTOMLIB_Controller_Action extends Zend_Controller_Action { prot...

Define variables outside the PHP class.

Hello, I m using zend. I want to define the below code outside the controller class & access in different Actions. $user = new Zend_Session_Namespace('user'); $logInArray = array(); $logInArray['userId'] = $user->userid; $logInArray['orgId'] = $user->authOrgId; class VerifierController extends SystemadminController { public function...

Zend Framework - applying order by on a nested query

Hey guys This might be a very simple thing. Check out the normal sql query below (select * from shopping order by shopping_id desc limit 5) order by RAND() This query runs successfully in mysql - not sure if this is the right way of doing it - but it works. It gets the last 5 ids from shopping table and randomly orders them everytim...

How to store & process currencies in mysql / zend framework

We want to store product prices and weight (kg/pound) in MySQL. Can somebody tell me what's the best way to do this? double/decimal/... ? We need to be able to display both USD and EURos. I don't know if it helps, but we use the Zend framework to build our application. Thank a lot! ...

is it possible to create subform and displaygroup without fieldset on zend forms?

is it possible to create subform and displaygroup without fieldset on zend forms? ...

Zend Date -- day difference

Hi All, I have the below line of codes $day1 = new Zend_Date('2010-03-01', 'YYYY-mm-dd'); $day2 = new Zend_Date('2010-03-05', 'YYYY-mm-dd'); $dateDiff = $day2->getDate()->get(Zend_Date::TIMESTAMP) - $day1->getDate()->get(Zend_Date::TIMESTAMP); $days = floor((($dateDiff / 60) / 60) / 24); return $days; this will return 4 But if ga...

Zend Framework :: Ajax Requests

Hi, I am looking out for any library that would facilitate Ajax in Zend (if any exist). Also can somebody throw some light on the built-in Ajax support that comes with ZF. I tried googling but was not satisfied with the results. -DevD ...

How to write a subquery using DB

SELECT SUM( amount_disbursed ) disbusedamount, (select SUM( loaninstallmentpaid_amount ) FROM ourbank_loan_repayment) paidamount, SUM( amount_disbursed )- (select SUM( loaninstallmentpaid_amount ) FROM ourbank_loan_repayment) differenceamount FROM ourbank_loan_disbursement Any Help would be appreciated ...

Zend currency custom format like "$ 1,234.56 USD"

I'm using the zend currency module to manage currencies in a web app. I can't figure out how to create a custom format for my currencies, since there are no examples on the documentation pages: http://framework.zend.com/manual/en/zend.currency.options.html From what I read there, I could use the format parameter to set a format, but I c...

How to start with AJAX/JSON in Zend?

I am working on some projects as a developer(PHP,MySQL) in which AJAX and jQuery is already implemented. But now I want to learn implementation of AJAX and jQuery stuff. Can anyone tell me the exact steps with explanation? I have created a project in Zend. There is only one controller(IndexController) and two actions(a and b) in my proj...

Zend Framework :: extending action variable scope for partials

Hi, I want to know if there exist any other way through which we can access the controller name, action name and other variables inside a partial. In other words, I want to extend the scope of my action variable to be accessed inside the partial templates rather than passing the lot along with the call to partial template. Thanks -Dev...

Media RSS and Zend

Hi, I have a Magento application running atop Zend framework. I like to generate Media RSS feed in Zend (In orded to feed the Cooliris application). Does anyone know if Zend framework supports Media RSS feed? (I didn't find anything in http://framework.zend.com/manual/1.10/en/zend.feed.html, but maybe I dint look in the right place?) ...

Does Zend framework has a fix version of file structure?

As a newbie of Zend framework, I have a few version-dependent questions on the framework. Does Zend Framework has a fixed file structure (meaning a fixed form of file layout)? If so, does this file structure vary according to framework versions? If so, is there any reference to learn all the differences in file structure? ...

How to set labels inside textfields for username and password ?

I have a login form for my website. This login form have two text fields, username and password. Currently I am placing labels(username, password) just before textfields. But now I want to removed these two labels and want to show text(username, password) inside textfield. When user focuses on these textfields then texts should be remove...

How to know that a php project is using Zend framework?

I am writing a piece of small software to go through the folders and files of all the php projects that are passed in and detect if any of them is actually also a Zend project. Is there any particular file that I can immediately read and tell that the current project is a Zend project? or is there any convenient way to tell? ...

Is .zfproject.xml a must in a Zend Framework project?

Is .zfproject.xml a must in a Zend Framework project? What does it do? Is it's location absolute? ...