Hi,
It is possible to map the extension of a URL, to the format parameter in ZF?
I'd like the default routing to still work, including mapping parameters from the URI, so you'd be able to say:
http://example.com/controller/action/param1/value1/param2/value2.json
Here: $this->_getParam('format') => "json"
And likewise:
http:/...
I'm trying to implement route chaining for an admin panel on a Zend Framework site that I am working on. I'm using the following configuration file in hopes that the "admin" route routes with "/admin" and that the "adminLogin" route routes with "/admin/login".
<?xml version="1.0" encoding="UTF-8"?>
<routes>
<admin>
<route>admi...
I am integrating third party code into the web application I am writing in Zend Framework.
The code I want to integrate declares variables as global. It works on its own, but not when I include it within Zend Framework. Initially I suspected that there is something in Zend Framework that is disabling the declaration of global variables...
Hi,
I am trying to remove the dt and dd decorators from around a file element.
Usually I apply $element->setDecorators(array(array('ViewHelper'))); to the form element.
However this is not applicable in the case of Zend_Form_Element_File as an error is output.
Any advice would be appreciated,
Thanks
...
Hi,
Is there the functionality to escape the filename before uploading with Zend_File_Transfer_Adapter_Http.
For example file names such as 'tes file$"f.gif' will cause problems.
Thanks
...
I found "dodo".
Please give me informations with it if You know it besides it.
...
Hi , i think i cant see the tree in the wood..
Iam using Zend Framework, with an layout.phtml wich is rendering and partial
<?php echo $this->partial('_header.phtml') ?>
My goal is to render an form from my IndexController into the "_header.phtml" with
<?php echo $this->form; ?>
How can i pass the form to the partial view?
...
First post here so sorry if I seem like a newb,
I am trying to find a way to use Zend_Auth_Adapter with a data mapper, but seem to be struggling. I know I can use Zend_Auth_Adapter_DbTable and associate this with a db table, but this seems to negate the whole reason for having a data mapper (I think)?! Should I be creating a custom adap...
I have a simple ZF that already works well.
I've set it up to work in a subfolder, so I access it with localhost/zftutorial URL.
Now the time came for debugging, but when I execute debugger in Eclipse, it appends debug URL params (like XDEBUG_SESSION_START=ECLIPSE_DBGP) which break everything and I start getting this message:
> *Zend_C...
I want to make email templates in Zend Framework.
For example,
<html>
<body>
Dear {$username$}, <br>
This is a invitation email sent by your {$friend$}.<br>
Regards,<br>
Admin
</body>
</html>
I want to make this file, get it in Zend framework, set those parameters (username, friend) and then send the email.
How can I do that? Does Z...
Hey everyone,
I have looked up this error, and it seems the common issue is caused by not putting include()'s or require()'s BEFORE session_start().
However, this is not the case for me.
I am getting the following error:
Fatal error: Zend_Http_Client::request() [zend-http-client.request]: The script tried to execute a method or acces...
I understand that you can have class Users extends Zend_Db_Table_Abstract and class User extends Zend_Db_Table_Row_Abstract, setting the $_rowClass property of Users to User.
To create and save a new row, I only know how to do the following:
$users = new Users()
$user = $users->createRow();
$user->name = 'name';
$user->save();
Can yo...
Hi Im attempting to implement upload progress with Zend however I havent found any detailed tutorials. A pointer would be useful.
Thanks.
...
Once you're OK with basic record form built after example from Tutorial, you realize you want more professionally designed Record Form. E.g. I don't want to duplicate record form for the same table in User and Admin areas.
1) Does anyone use some mechanism, possibly inheritance, to reduce duplication of almost similar admin and user for...
I have a Zend Framework project on a local machine, and as recommended its /public subfolder is made a DocumentRoot in httpd.conf. So I access this app simply with http://localhost.
This new requirement makes me unable to access other
web apps in a former webserver root (which contains a few regular php apps and a couple of zend framewo...
According to this mailing list discussion, the recommended way to access the application resources in a Zend MVC controller is:
$this->getInvokeArg('bootstrap')->getResource('foo');
This works in production (when browsing to the corresponding Web page). However, when testing a controller action containing this code with Zend_Test_PHPU...
I want to insert a image in blob format to db.
how to write a program in zend framework.
a simple form
just choose one image and insert into db.
...
Here's the situation. While uploading a video, I want to capture a screenshot of that video and save it as a video thumbnail. I currently can't install ffmpeg on my local machine (it will be installed on the production server of course) so I cannot test the following controller action helper I wrote for this purpose:
<?php
/**
* FlvThu...
hi all,
i am using zend framework to develop my php applications using mvc model.
i want to generate some reports from database. but i dont know how to separate models and views in this case.
i fetch information from db, then i should iterate through them and make a html table. then pass this table to a class, making pdf file from the...
What is the best way in php to take the following string mm[some char]dd[some char]yyyy and translate it to yyyymmdd?
I will probably want in the future, according to local do the same with dd[some char]mm[some char]yyyy.
If there is a way that already uses the Zend Framework API, the better
...