zend-framework

Hosting PHP Zend Framework application on shared cPanel server

I'm trying to deploy an PHP application which is written with Zend Framework to a shared cPanel server. There are not many tutorials available on this area online, however, I followed several of them. It is successful to run the test page which proves the zend framework is installed correctly. However, since cPanel server has a defaul...

Zend_form: what's the added "enctype" for?

Zend adds an enctype to all forms. What's that good for? and how can I remove it? <form action="" method="post" enctype="application/x-www-form-urlencoded" id="myform"> </form> ...

Confused about StripTags filter

I'm a little confused about the StripTags filter as used in Zend. I think it's meant to strip tags that could result in XSS. So shouldn't that mean it should be used when outputting data in the views? I've seen it being used with form inputs ->addFilter('StripTags') Should it be used with both input in the forms and output in the vie...

Zend Framework render view of another controller

Is it possible to render view of another controller? Because when i'm trying to pass path to render method it can't find it, but the path is displayed properly. Is this were done for some security reason or i'm just doing it wrong way? I'm trying to render view template of Index controller view/scripts/index/index.phtml from different...

Add watermark to PDF using Zend Framework (adding something under the text layer)

Hi, I'm trying to dynamically watermark a pdf file using PHP with Zend_Pdf. Is there a way to de-layer a PDF file, put something (text, image) between the background and text layer, and then save it? Is there like a z-index for PDF files? Any help would be greatly appreciated. Regards, Paul ...

Zend Framework Shared Hosting in WAMP Error?

I am using Zend framework on wamp. I am using .htaccess file to redirect the request to public/ directory. The .htaccess file i am using contains RewriteEngine On RewriteRule ^\.htaccess$ - [F] RewriteCond %{REQUEST_URI} ="" RewriteRule ^.*$ public/index.php [NC,L] RewriteCond %{REQUEST_URI} !^public/.*$ RewriteRule ^(.*)$ public/$1 ...

zend view: bootstrap(view) or bootstrap(layout)

These are 2 different implementations for an _init function in the bootstrap related to bootstrapping the view. One gets at the view right away: bootstrap('view') then gets it as a resource $this->bootstrap('view'); $view = $this->getResource('view'); $view->doctype('XHTML1_STRICT'); The other one takes a longer route through the lay...

How can i write a .htaccess for only 1 module in a Zend Framework project

Hey all. I have a zend framework project with 2 modules - admin and default. the admin is for managing my stuff and the default should be used only for my clients. that's why i wanted to limit the default module only to the allowed domains. i searched in google and found that i can can limit the .htaccess by that code: http://www.eukhos...

Syntax for Zend_Controller_Router_Route with infinite parameters?

I need a Zend_Controller_Route_Route with controller => 'downloads', action => 'index' and a parameter variable which is infinite. www.domain.com/downloads/this/is/the/path/to/the/folder should redirect to DownloadsController > indexAction I was thinking about something like the following: 'downloads' => array( 'route' =...

Zend_Form not displaying data

Here is my code: <?php class IndexController extends Zend_Controller_Action { public function indexAction() { $this->_forward('search'); } public function searchAction() { if($this->getRequest()->isGet()) { $form = $this->getForm(); $value = $form->getValue('search...

Why can't I update our Twitter status?

Hi everyone, I've spent the last three hours trying to get a simple Twitter status update to work using Zend_Service_Twitter and Zend_Oauth_Token_Access. Infuriatingly, I keep getting the following response: object(Zend_Rest_Client_Result)#34 (2) { ["_sxml:protected"]=> object(SimpleXMLElement)#39 (2) { ["request"]=> string...

Zend Coding Standard in Netbeans

Hello, How to configure Netbeans PHP to follow Zend Coding Standard? I'm struggling with this quite a while, and still get phpcs errors on multi line function arguments. Would you share your settings? ...

Minimise Zend framework routes

I have routes defined for each module in my application, not heaps perhaps 10 for each module. I have also set up caching of these routes so that the ini files are only parsed once, then stored into a cache file as an array of Zend_Config_Ini objects. This file comes at 100kB. This file is then read each time the bootstrap is parsed (so ...

Force Zend Framework to connect to database earlier than usual

I am trying to store custom routes for the Zend Framework inside the database. I have the process down that will create the route, but the problem I am running into is that when I am adding the routes it looks like Zend has not yet created its connection to the database. Does anyone know where this processes initially happens or how I c...

Get all views associated with controller - Zend

If I'm going about this the wrong way, please let me know and I'll accept that as a potential answer. I have a Zend Framework MVC app that is modular, and in one of the modules the site acts very similar to a static HTML site: Category1_Controller Category1_Subpage_Action1 Category1_Subpage_Action2 Category1_Subpage_Action2...

Zend_Search_Lucene "Exception thrown without a stack frame in Unknown on line 0"

I get this error randomly when using Zend_Search_Lucene. Exception thrown without a stack frame in Unknown on line 0 Has anybody ran into this who can help? Thank you. ...

fetchall function of zend adapter class not working

Am getting the following error. Exception information: Message: SQLSTATE[21000]: Cardinality violation: 1242 Subquery returns more than 1 row Why does fetchall giving problems for querying multiple rows??? ...

Dynamic Database Connections with Zend

The result I'm trying to achieve involves having an application with a database with minimal tables that store data regarding users on the system, this database would be used to verify user's login details when they login to the application. What I want to be able to do is to dynamically connect to another database once the user has logg...

What's the current state of accelerators in Zend?

I hear about accelerators such as these in PHP. I believe APC is making it to PHP 6 also. Eaccelerator APC Xcache What's the state of accelerators in Zend? I see a Zend_Cache. Is it the standard and is there more? ...

Step-by-step coversion to module-based folder structure for zend project, bounty coming

I have a 250 point bounty on this but the system doesn't allow me to start it right away. I'm looking for a step-by-step explanation on how to go from the normal folder structure on the left where the application folder contains models,views,controllers, to the module-based folder structure on the right where application contains a mod...