zend-framework

Zend Framework configuring decorator

if(count($this->form->email->getMessages()) > 0) { $e = '<ul>'; $m = $this->form->email->getMessages(); foreach($m as $me) { $e .= '<li>'; ...

ZF create a new controller

Hello, I made my first project with ZF, used the Zend_Tool component. For the index controller a created some actions, and they work well. But my question is, when do you create a new controller? thanks! ...

Zend: Get the current url for use in Controller

I have this controller which will simply change the language in a session so I can set it in the bootstrap. Except I want to change '$this->_redirect ( 'library/recipes/list' );' to be the URL of the page they are on. Ive tried a few functions and they dont seem to work. Im a newbie Zend user, thanks! class Library_LanguageswitchCon...

Best approach dealing with joins in Zend Framework?

Well it is more like a design question. There are two ways I know to use joins in the Zend Framework Deal with it using instance of Zend table( its Select obj) Deal with it using the instance of Zend Db (its Select obj) in the first approach it seems really strange to me - the some table have to be dealing with other tables too, whic...

Does Zend framework's modular approach have good logic behind it?

Zend framework is pretty fast growing, we all agree and we all had been surprised while trying out the modular structure of Zend Framework, if to be concrete the bootstraping of the modules - all the bootstrap files of the modules are executed in the beginning no matter if we are using/accessing that module or not. As far as I remember t...

What is the phpdoc syntax to link $this to a specific class in Aptana?

I'm working on Magento templates, but this issue would apply to any template loading system. As these templates are loaded by the template engine there's no way for the IDE (in this case Aptana) to know what object type $this is. Potentially it could more than one object as a single template could be loaded by multiple objects, but i...

Can't login to my project using google or Yahoo OpenID

Hi guys I've set up an openID login system - just like the one we have here on stackoverflow and on the backend I'm using JanRains libraries. It was working fine until all of a sudden - people can't login using a google or yahoo openid. ITs constantly failingt - instead however any other regular openid seems to work fine. WHats going on ...

data submission in zendframework

In my zend project ,I want to show some health problems along-with a drop-down box and a text-area.My Controller and views are given below. class IndexController extends Zend_Controller_Action { public function init() { /* Initialize action controller here */ } public function indexAction() { $healthproblems =new Model_DbTab...

With Zend Framework, what is the difference between Module and Package

Hi all, I devlopp web applications with Zend Framework. For now, I have a huge library, wich contains each an every things, used by a couple of web applications. I am thinking of reorganising it, using the concept of "Module". But I am not sure about the difference between Module and Package. What I understand is : a Module contain...

Zend_Gdata_Spreadsheets gives 'Namespace Error' on inserting data?

I'm trying to insert a row in my Google spreadsheet. While other functions like counting rows, columns etc work fine; inserting a row gives me 'Namespace Error'. An exception of type DOMException was thrown, but did not get caught during the execution of the request. You will find information provided by the exception along with a stac...

having problems with Zend framework validators

Hello! I'm having problem with custom builded validator that does not returns any error. I copied a file NotEmpty.php form folder library/Zend/Validate, rename class Zend_Validate_NotEmpty to My_Validate_EmailConfirmation and put it into folder My/Validate. If I call this class like ->setRequired(true)->addValidator('NotEmpty',true,arr...

How to add a view helper directory (zend framework)

Hi, I begin with ZF (1.9.7), and I want to use View Helpers from a library shared between all my projects. But I can't find how to add it directory to the helpers path. My herpers works fines when I put them in application's helpers path. Here is the error, where I find the path to ZF helpers, and path to the applications ones. objec...

How to get View From child of Zend_Controller_Plugin_Abstract?

Just need to set up navigation per admin module, I know it is strange and not really good practice may be but I need to set it for admin part. thanks ...

Error with the ZF tool while setting up the GuestBook Application

Iam trying to set up the GuestBook Application which comes with zend framework tutorial , Iam following the steps one by one, However when I enter this command - zf create db-table Guestbook guestbook Iam getting an error, I have pasted the error here - C:\xampp\htdocs\quickstart>zf create db-table Guestbook guestbook ...

SELECT '0' AS variable ... with Zend_Db_Select

I am trying to create a select statement that uses the following structure: $db ->select() ->from( array('i' => ...), array('provisional', 'itemID', 'orderID')) ->columns(array("'0' AS provisionalQty", "'ballast' AS productType")) ->joinLeft( array('o' => ...), 'i.orderID = o...

Lots and lots of joins in a Zend Query, hopefully just a slight tweak

Apologies for all this code, anyhow Im re-working a query into the Zend query way of working, this is what I have so far: $db = Zend_Registry::get ( "db" ); $stmt = $db->query(' SELECT recipe_pictures.picture_id, recipe_pictures.picture_filename, course.course_name, cuisines.name, recipes.id, recipes.Title, recipes.Method,...

How do I test a Zend_Form class ?

How do I unit-test a Zend_Form form class I wrote for my application? I aspire to have a 100% code coverage, so just testing each controller that uses it, doesn't seem enough, but I could be missing something in the UnitTest approach.. ...

Mysqli statement parameter not found running PHPunit test under Eclipse

Hi, I run PHPunit tests via Apache, ou directly in Eclipse (ZendStudio in fact). All run well via Apache, but under Eclipse i have this error : zend mysqli statement execute error no data supplied parameters prepared statement The php version is the same (5.2.10), ZendFramework is 1.9 and here is the code function isValidPr...

netbeans 6.8 and zend framework

hello i installed netbeans 6.8 but in php framework list it dose not show zend framework , should i config it? how? same this one : http://blogs.sun.com/netbeansphp/entry/zend_framework_support_added any one may help? ...

Is there a good Book Resource on modular web application architecture?

I am asking this question because of Zend Framework. I really like it but still the way it offers modularity is not really flexible. For instance a lot of us at first create default and admin module , but in reality it is not reusable. In fact admin should be not a module but some paradigm that takes care of every single module's admi...