zend-framework

SELECT with JOIN

Hi all, I want to build a query using Zend_db_select and JOIN. The database is as follows: [AUTHOR table] pk: 'id' attr: 'name' [BOOK table] pk: 'id' attr: 'name' fk: 'author.id' I have author.name as a parameter. I want to retrieve all related books (only book.name, not the other columns) Please help. Thanks ...

Testing controller with Zend_Test

Hi there, I asked the same question in another forum, but I don't yet have any luck there. So please allow me to ask the same question here. I want to setup Zend_Test to test my controller code (I am using PHP, Zend Framework). Everything seems to be correct and according to the official documentation, but I kept getting an error. For...

Zend problem with a form

Hi every one first of all im new in zend and i need some help to start. My problem is I have a login for like this <form action="<?php echo $this->baseUrl ?>/user/login" method="post" id="login"> <input type="text" name="username" value=""/> <input type="password" name="password" value=""/> <input type="submit" name="submit...

Read HTTP headers in Controller (Zend Framework)

Long story short: I'm building a skeleton application for Zend Framework and I got to the part where I need to setup the api module. I'm using Zend_Rest_Controller for this job. All is ok up to this part where I need to get the HTTP headers in a controller to verify the api key. On various tutorials I've read on the web the thing is do...

Simple authentication that uses zend_auth independent of the rest of the Zend framework

I'm working on the login system for a php web app. I'm aware of the dangers of rolling your own system, so I'm hoping to use a pre-built library of some kind. I have seen zend_auth recommended in several places. I have also heard that zend_auth can be used independent of the rest of the Zend framework. This would be preferable, as my...

Overwrite zend view directory?

Hello, In my bootstrap, I detect the site the users on, then issue the layout change and helper change. Essentially anything that is there by default is what the site falls back on if there is no per site version in /public/site/ However I cannot get the actual view to rely on a path a give it or a path in /public/site. Here is my cod...

Is there a way to manage Google Calendar sharing through Zend Gdata or otherwise in PHP?

Hello, I'm creating a custom calendar app that is using Google Calendar as a base. I am wondering if there is a way through the Zend Gdata library to manage calendar sharing. From the documentation it does not appear so, but I noticed that some other languages have the ability (.Net, Python). If it's not possible through Gdata, is the...

Help for Web 2.0 PHP application

All, I have a Web 2.0 application written in Zend Framework and MVC. My application is growing bigger and bigger and I need to come up with a Help system for the entire application. I like the Xero's help interface and was wondering if there's an easy way to create this in PHP5 and Zend or if there are any PHP based tools that I can int...

$this->headTitle() does not work - Zend Framework

I have in my config.ini the titles of my pages In my Bootstrap.php I have $title = $config->title; Zend_Registry::set('title',$title); $view->headTitle($title); In my layout.phtml I have: echo $this->headTitle(); That does not work. The title is blank. What should I do? ...

Zend_File_Transfer setDestination in form element versus adapter

Can someone please kindly explain to me what really happen when you call the function setDestination()? According to the Zend "documentation" both of these should work, however only the first case puts the file where I wanted. The second just ditch it in /tmp Case 1: $file = new Zend_Form_Element_File('fileupload'); $file->setDestinati...

Appending easy read parameters to urls always require that 'index' be preappended - help

Hi guys I'm using zend framework here and I've enabled url-rewrite so all my urls are clean. The thing is that I've incorporated pagination of results on some pages and I want to append parameters to the url in this form: www.mysite.com/controller/page/2 However I can't do it without appending the default action i.e index to the end ...

Zend Framework: Loading modules from another directory

Hey there guys, this is my first question on Stack Overflow. I figured this website has helped me alot so I give it a shot as well. I'm currently working on multiple Zend Framework applications that need to inherit modules from a common module directory. The file structure used is the conventional method (omitting actual names and refer...

is there a multiple payment providers (paypal, ogone, ...) php module for use in a web app?

We are building an ecommerce app where we want our users to pick out a (any provider we can make compatible with our app) payment provider. Up to today, we only support paypal and we have implemented this rather manually. We are looking for some sort of a module (free or commercial) to easily plugin in more payment providers to let cust...

Zend Framework, JQuery, AJAX with Zend_Layout

Greetings, So, I am using the JQuery tab container (with only 2 tabs) on admin/index/index. The 2nd Tab Pane's content is supplied by an ajax call due to the contentURL I supplied in the params. contentURL points to a controller/action that outputs other JQuery widgets in that view script. (Another tab container, and accordion Contai...

Zend framework on mac OSX: can I change the root Directory ?

Zend framework on mac OSX: can I change the root Directory ? how ? I would like to set a directory in my home folder. Otherwise I can only access to it by terminal thanks ...

Zend PHP Uploaded File Permission on Windows 7

I have Zend Server CE running on Windows 7. By Default I have Apache running as a Service, Log On as Local System Account. My upload Action saves an uploaded file to its Destination OK, however the permission on the file is set to only SYSTEM, Administrators and IIS_IUSERS. Once uploaded, I cannot open it or move it using PHP. I am us...

Changing Zend_Db_Select's output to Zend_Db_Table_Rowset

I have the following code inside a class that extends Zend_Db_Table_Abstract: public function fetchByFriends($id) { /* * SELECT * FROM list * INNER JOIN friendship ON * list.user_id = friendship.friend_id * WHERE friendship.user_id = ? */ $select = $this->select() ->from("list") ...

Zend_Test: Assert Controller Failed

Hello everybody, I use Zend_Test for unit testing in Zend Framework. I have configured the bootstrap and testing environment properly then I got this error output from test unit Failed asserting last controller used <"error"> was "index" This error happens when I call my DbTable class inside action method such as public function in...

Zend_Controller_Router_Route_Regex reverse route not translated

This is how my route looks like: acc_long.type = Zend_Controller_Router_Route_Regex acc_long.route = "@accommodation/([A-Za-z-]+)/([0-9A-Za-z-]+)-([0-9]+)" acc_long.map.1 = 'location' acc_long.map.2 = 'name' acc_long.map.3 = 'id' acc_long.defaults.controller = "accommodation" acc_long.defaults.action = "index" acc_long.default...

Implement Multiple languages in Zend Framework and how to change them?

Hi guys! Im on a project that requires me to translate the project to both swedish and english for the customers that the company got. Ive made two ini file in xproject/application/messages-SV.ini.php <- Swedish xproject/application/messages-EN.ini.php <- English And in my defines.ini.php file Ive included only the messages-SV.ini...