zend-framework

Implementing vanity urls (like http://facebook.com/JohnDoe) in Zend framework?

Is there anyway to create a vanity url "catch all" route whilst maintaining the default /module/controller/action/value routing structure? Thanks! ...

Zend beginner: undefined index: HOME when using Zend_Tool

I've just installed Zend Framework and am running through a tutorial, but have hit a small stumbling block. Using the Zend_Tool to create new actions gives me an error: > zf create action add index PHP Notice: Undefined index: HOME in C:\apps\zend\bin\zf.php on line 51 PHP Stack trace: PHP 1. {main}() C:\apps\zend\bin\zf.php:0 PHP ...

Zend Framework: Zend_Oauth and Zend_Service_Twitter

First of all, I am able to successfully authenticate using Oauth. I am using Padraic's tutorial found here: http://blog.astrumfutura.com/archives/411-Writing-A-Simple-Twitter-Client-Using-the-PHP-Zend-Frameworks-OAuth-Library-Zend%5FOauth.html Now, my problem is that I already have a Twitter model using Zend_Service_Twitter. But since Z...

How to get binary dump of SQLite memory db

Hello! If i have code like this $dbSL = Zend_Db::factory('pdo_sqlite', array('dbname'=>':memory:')); $dbSL->query('CREATE TABLE ...'); $dbSL->query('CREATE TABLE ...'); ... After that i whant take binary dump of this SQLite db Thx in advice! ...

How do I get my manager to move away from Joomla?

Well, the facts : I'm a php programmer (php4/5) and object since several years now. I use to work PHP Framework (especially Zend Framework) At my work, we have to work Joomla for some website. I had to develop components, modules, plugins, and i had a revelation. Almost all users of Joomla are not developper, just users, whom doesn't...

PHP/Amazon S3: Query string authentication

I have been using the Zend_Service_Amazon_S3 library to access Amazon S3, but have been unable to find anything that correctly deals with generating the secure access URLs. My issue is that I have multiple objects stored in my bucket with an ACL permission of access to owner only. I need to be able to create URLs that allow timed access...

Zend Forms - populate() and setDefaults()

Let's say I have a form that collects a first name and a last name: $first_name = new Zend_Form_Element_Text('first_name'); $first_name->setLabel("First Name") ->setRequired(true); $last_name = new Zend_Form_Element_Text('last_name'); $last_name->setLabel("Last Name") ->setRequired(true); $form = new Zend_Form(); $form->addEle...

zend_navigation and onclick attribute

is there any way how to push into zend_navigation page type mvc or uri and give it onclick attribute? array ( 'type' => 'uri', 'label' => 'Map', 'title' => 'Map', 'uri' => '#', 'click' => 'alert("show map");' ) i have sub sub menus included links which fires only modal. till yet i use my own "navigation" soluti...

Zend Framework - Search Lucene for exact phrase

Hi , is there any way to Query the Index of Zend_Search_Lucene for an exact match ? $keyword = 'Summer 2009'; when i use : $myIndex->find($keyword) i am also receiving "Summer , 2009, Summer 2009" ? ...

Configure Memcached Backend via ini file or xml file in Zend Framework

Trying to configure Zend_Cache_Backend_Memcached via a config.ini or config.xml file. I'm not sure how to represent the array of servers in an ini file as described in the documentation ...

Zend Platform - Include path in JobQueue scripts

I have a script to be run by a job I set up in Zend Platform, and that script needs to make use of the Zend Framework. I can run the script from a browser or command line with no problem, but when I set a job to run it in ZP, the script errors out because none of the required Zend library files can be found. Echo tests using get_includ...

How can I use a stored procedure in a MySql database with Zend Framework?

I'm recently have learned to use Zend Framework. I did a simple CRUD application. But now I want to use a existing database for a more complex application and I want to know how I call a stored procedure in the Model, how to send parameters, how to read the results and store them in an array in PHP. Please. I appreciate any kind of help ...

PHP Fatal error: Uncaught exception 'Zend_Mail_Protocol_Exception' with message '501 <>: missing or malformed local part

Hi guys all of a sudden I'm getting this error in my Zend program where I am trying to send an email. I have no idea whats wrong here :( PHP Fatal error: Uncaught exception 'Zend_Mail_Protocol_Exception' with message '501 <>: missing or malformed local part It was working fine till a few days back... ...

What are your most used generic class you had to write yourself for ZF ?

I just moved from ZF 1.6 to ZF 1.9, there is a lot of changes since i started with it, and i've to refactor some of my libraries. In order to don't forget anything, and to have a great generic library where i can pick up elements, i was wondering what are your most used generic classes you had to write for ZF ? I'm thinking for example...

.htaccess Apache on cPanel only working in some cases

Hey there SO, I'm using the Zend Framework, so I'm bootstrapping into a file called index.php. Naturally, I don't want images to be bootstrapped, so I've added a .htaccess file. Here's what it looks like /application /library /public (this is the root of the site) /images /js .htaccess index.php This is what's w...

Zend_Auth : DB table structure

So followed all the basic tutorials. Am using Zend 1.8 but i keep getting this exception when using Zend_Auth_DB. Any ideas, there is only one row in the table. Exception information: Message: The supplied parameters to Zend_Auth_Adapter_DbTable failed to produce a valid sql statement, please check table and column names for validity. ...

Redirect to new page w/ POST data (PHP/Zend)

I'm trying to figure out how to redirect to a new page (different application, controller, action) and maintain the current POST data. My app is validating the POST data and if a certain criteria is met, I want to redirect to a different location, but make sure the POST data is passed as POST data to that new page. Here's a rough exampl...

Zend Framework: Render multiple Views in one Layout

I want to generate a dynamic site using Zend_Layout. My layout (/application/layouts/scripts/layout.phtml) contains the following lines: ... <body> <?php echo $this->render('header.phtml') ?> <div id="content"><?php echo $this->layout()->content ?></div> <?php echo $this->render('footer.phtml') ?> ...

Populate date in MultiOptions element of Zend Form.

Hello I have an array like this : Array ( [id] => 1 [code] => Dep98 [description] => Hello World [facility] => Array ( [0] => FacName1 [1] => FacName2 ) ) But when I populate this array to Zend_Form it only show data in textboxes elements having same id as defined in array index not in multiselect dropdown elem...

How does ZendFramework-1.0.4 handles $_FILE global variable?

Hi, I'm Using ZendFramework-1.0.4 and I don't have any idea how does it wrap the $_FILE global-variable. Is it a good idea to use it directly in my Controller? Bcus I need to Upload an image file. ...