Hi,
i have found that Zend_Form_Element_File ignore no file option would not
work if the form that submited is missing that file element.
let's say,there is a form that upload a file to the server,
form enctype=multipart/form-data action=/demo/upload method=post
any text:input type=text
Hi there,
when i create a form element with pluginLoader in the options,
like this,
$text = new Zend_Form_Element_Text('name',array(
'pluginLoader' = new Zend_Loader_PluginLoader(array(
'My_Path_Prefix'='My/Path/Prefix'))
));
it throw the exception like following:
An error
Hi there,
if the Zend_Db_Table::fetchRow() always return the first row from the result
is correct?
because i want to fetch one row from the result set also by offset,such as
this,
// $table is an object of a class that extends Zend_Db_Table
$select = $table-select()-limit(1, rand(0,100));
$row
to overwrite messages from a validator
for the file element, but for all others.
Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com
- Original Message - From: Jacky Chen jacky...@gmail.com
To: Thomas Weidner thomas.weid...@gmx.at
Sent: Tuesday, March
Hi there,
when i update the latest zend framework from svn, then the form with file
element was failed when submit the form with a file to upload. It would get
the error message like The file 'x' was not found . what's wrong with
it? How should i fixed it?Thanks.
Best Regards
Jacky
working
with it.
You should read here for details:
http://www.thomasweidner.com/flatpress/2009/04/17/recieving-files-with-zend_form_element_file/
Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com
- Original Message - From: Jacky Chen jacky
than you gave.
Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com
- Original Message - From: Jacky Chen jacky...@gmail.com
To: Thomas Weidner thomas.weid...@gmx.at
Sent: Tuesday, March 31, 2009 9:10 AM
Subject: Re: [fw-general] about
trunk r14554 and the related lines of code look similar
to the actual branch 1.7.
Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com
- Original Message - From: Jacky Chen jacky...@gmail.com
To: fw-general@lists.zend.com
Sent: Tuesday, March 31, 2009
Hi there,
there is a bug for the method addValidator in Zend_File Adapter,it should
construct the validator instance after unset the options with messages.
Best Regards,
Jacky
Hi,
is it not implement the error messages process for the form file element
just now,or missing that? no error messages are assign to the form file
element after the file adapter validated the file element.
Best Regards,
Jacky
Hi guys,
i enable zend_layout in my application, there are four template files,
layout.phtml, header.phtml, index.phtml, footer.phtml ,to render.
layout.phtml is the layout template,and header.phtml and footer.phtml
rendered in layout.phtml,the code as following:
layout.phtml
hi guys,
i want to add a router that match any characters but not match the word
manage,for example,it would match /home , /news , /blog , but /manage
should not be matched. how to write such a route? thanks.
Greetings,
Jacky
Hi zfer,
it seem that the file rename filter not work correctly,it not rename the
file when i upload the file first,but it worked when i upload the same file
after the first.
for example,i add a rename filter that set target to c.jpg,and then upload a
file named a.jpg,but the uploaded file would
Hi,
i set noViewRenderer to true by default in the bootstrap file before
dispatch start, and check the module name in a controller plugin that hook
the preDispatch event to switch on/off to the viewRenderer,if there is admin
module,following code would be called in the plugin preDispatch()
Hi,
I want to render views by viewRenderer automatic for a module, and another
one by manual.For example,i want that admin module to render view by
viewRenderer,and default module to render view by explicit.
so i setParam('noViewRenderer', true) in the bootstrap file,and register a
plugin to
Hi,
let's look at the code of the method __call() of the Zend_Controller_Action:
public function __call($methodName, $args)
{
if ('Action' == substr($methodName, -6)) {
require_once 'Zend/Controller/Action/Exception.php';
$action = substr($methodName, 0,
it seem that each validation for the file elements in the zend_form would
validate all of the file elements in the form.it means that if there have
two file elements in the form,says A and B. So isValid() for the element A
is called,it would validate A and B,not just A.
So if i want to upload two
://www.thomasweidner.com
- Original Message - From: Jacky Chen [EMAIL PROTECTED]
To: fw-general@lists.zend.com
Sent: Friday, September 19, 2008 8:47 AM
Subject: [fw-general] Bug with Zend_File_Transfer
it seem that each validation for the file elements in the zend_form would
validate all of the file
Hi there,
there is a bug in the Zend_File_Transfer_Abstract::setOptions() , the code
in the setOptions() as bellow:
if (is_array($options)) {
$this-_options += $options;
}
Maybe the following code should it be:
if (is_array($options)) {
$this-_options = $options + $this-_options;
Hi guy,
Let's say that i want to rename the upload file abc.jpg to cba.jpg just
after the file is complete upload in the form,how can i add the rename
filter to the form?
of course,i can add the filter like this $upload-addFilter('cba.jpg', true)
if i know that the file that would be upload is a
Sorry,
the code $upload-addFilter('cba.js',true) incorrect.
it should be $upload-addFilter('rename',array('cba.jpg', true));
2008/9/11 Jacky Chen [EMAIL PROTECTED]
Hi guy,
Let's say that i want to rename the upload file abc.jpg to cba.jpg just
after the file is complete upload in the form
Hi,
I add a NotExists validator to a file element with custom error message,but
the validator just display the default DOES_EXISTS error message.
Hi all,
is there a proposal about jquery? have some one plan to integrate it into
zend framework? jquery is a wonderful javascript library, in my opinion,
powerful and easy use, i look forward some one to integrate it into zend
framework.
Hi,
I want to get the format action name,but there just a method in
Zend_Controller_Dispatcher_Abstract::formatActionName($unformatted), but it
return the action name with the Action suffix.
because action name or controller name can be, get.data,or get-data, for
example.If i call the method
Hi,
in the Zend_Form of current implement,filters is apply before validators,but
i want to filter data after form is validate.
For example,in the regiser form,i have to validate the field password not
empty,and than filter it with the MD5 filter.
I think it is best that developer can set the
thanks.
We plan on having both the current prefilter, as well as a postfilter;
I'm not sure that this will make 1.6, however.
that sounds great! Thanks your great job!
2008/7/10 Matthew Weier O'Phinney [EMAIL PROTECTED]:
-- Jacky Chen [EMAIL PROTECTED] wrote
(on Thursday, 10 July 2008
Hi,
there is a method of *setLayout(Zend_Layout $layout)* in the view helper of
*Zend_View_Helper_Layout*, how to call this method? the code, *
$this-layout(),* in the view just return the instance of the *Zend_Layout*,
not the *Zend_View_Helper_Layout* instance.
in the view file:
?php
// call
Hi,
I add an select element to the Zend_Form,like this,
$course = new Zend_Form_Element_Select('course[]');
$form-addElement($course);
And,the name of the course element would be course,not
course[],except that i set the multiple attribute of the element to true.
But i won't this style of
thanks your reply,Matthew.
2008/5/3 Matthew Weier O'Phinney [EMAIL PROTECTED]:
-- Jacky Chen [EMAIL PROTECTED] wrote
(on Saturday, 03 May 2008, 03:54 PM +0800):
I add an select element to the Zend_Form,like this,
$course = new Zend_Form_Element_Select('course[]');
$form-addElement
Hi there,
In the render method of Zend_Form_Decorator_ViewHelper,there is missing
the fifth argument that Zend_View_Helper_FormMultiCheckbox and other helpers
that need the listsep argument.
Best Regards.
Hi All,
How can i add file field to Zend_Form?
Best Regards.
Hi All,
I want to validate an element that it depend on another element is
set.Can i do that in Zend_Form, if yes, and how?
Best Regards
Hi there,
i found that view helper of formCheckbox not display options elements,is it
a bug or not?
and how can i use checkbox in the Zend_Form?
2008/3/24, Matthew Weier O'Phinney [EMAIL PROTECTED]:
-- Jacky Chen [EMAIL PROTECTED] wrote
(on Monday, 24 March 2008, 05:06 PM +0800):
i found that view helper of formCheckbox not display options
elements,is it a bug or not?
I need
Hi,
in the method setParam of Zend_Controller_Request_Http,the code like this:
public function setParam($key, $value)
{
$keyName = (null !== ($alias = $this-getAlias($key))) ? $alias :
$key;
parent::setParam($key, $value);
return $this;
}
is it sould
Chinese characters.
2007/12/29, Simone Carletti [EMAIL PROTECTED]:
It would be helpful if you post here a sample code you use for sending
emails.
A real example would be wonderful. :)
-- Simone
Jacky Chen-2 wrote:
Hi all,
I send mail with Zend_Mail,and i received the mail body
this:
protected function _encodeHeader($value)
{
if (Zend_Mime::isPrintable($value)) {
return $value;
} else {
return '=?'.$this-_charset.'?B?'.base64_encode($value).'?=';
}
}
the problem is soloved.
2007/12/29, Jacky Chen [EMAIL PROTECTED]:
Hi
Hi all,
I send mail with Zend_Mail,and i received the mail body as following.What is
the problem?
=E5=96=84=E8=B5=84=E6=96=99?=
Content-Type: multipart/alternative; charset=utf8;
boundary==_a63f032d182e04daf6311fe5329bef65
MIME-Version: 1.0
--=_a63f032d182e04daf6311fe5329bef65
Content-Type:
Hi there,
I want to set timezone depend on the user locale,how to do it?
Best Regards,
Jacky
which adds this natively.
Greetings
Thomas
I18N Team Leader
- Original Message -
From: Jacky Chen [EMAIL PROTECTED]
To: fw-general@lists.zend.com
Sent: Tuesday, September 04, 2007 10:40 AM
Subject: [fw-general] how to set timezone depend on locale
Hi
Hi list,
when i use the view helper of Url,i met a problem.what i want is to use
the url helper to construct the right url for the right router.
for example,when i use the default router,it construct the url as *
/news/read/id/1* for me as i call *
sorry,i make a mistake,it isn't any errors on the table relationships.i am
so sorry.
Regards,
Jacky
2007/5/16, Jacky Chen [EMAIL PROTECTED]:
As the example in the manual of Zend_DB_Table_Relationships
?php
class Accounts extends Zend_Db_Table_Abstract
{
protected $_name
description.
Regards,
Bill Karwin
--
*From:* Jacky Chen [mailto:[EMAIL PROTECTED]
*Sent:* Tuesday, May 15, 2007 1:22 AM
*To:* fw-general@lists.zend.com
*Subject:* [fw-general] is it a bug?
Hi list,
In Zend_Db_Table Relationships,if there are two or more tables with the
same
Thank you,Martel.
2007/4/19, Martel Valgoerad [EMAIL PROTECTED]:
Jacky Chen wrote:
Hi all,
I want to specify a url such as
http://localhost/index.php?controller=indexaction=view
http://localhost/index.php?controller=indexaction=view and have it
dispatch properly,how?
It should work out
Hi there,
how can i query limit rows from zend_db_table,if the query result is
large.And also the Zend_Db_Table Relationships.
Best Regards,
Jacky
Hi,there
i met a problem when i produce a rss feed.How can i encode the entry
title?If the entry title contain the char,a warning would occure.
*Warning*: DOMDocument::createElement()
[function.DOMDocument-createElementhttp://www.fzfz.com/rss/function.DOMDocument-createElement]:
unterminated
i just want to add more than one controller directory to one module.
for example:
...
$front-addControllerDirectory(./controllers/n1,news);
$front-addControllerDirectory(./controllers/n2,news);
As that the controller directory would be ./controllers/n2,not the two.
Hi there,
Sorry for my english,i just point out the bug with codes.
bootstrap file code:
// index.php
$router = new Zend_Controller_RewriteRouter();
$router-addRoute('passport',new
Zend_Controller_Router_Route(':action',array('controller'='passport','action'='login')));
$front =
Hi there,
I want to add two routers,one to match the path such as http://myhost/actionor
http://myhost/action?querystring and another match the path such as
http://myhost/controller/action .How?
Best Regards,
Jacky
Hi there,
i has wrtie a passport controller PassportController,there are three
actions,loginAction,logoutAction,registerAction.
When i invoke these action with a query string end up with index.php,and
then the action was be redirect to the default action,loginAction.
defaut route is:
$router =
2006/12/7, Matthew Weier O'Phinney [EMAIL PROTECTED]:
-- Jacky Chen [EMAIL PROTECTED] wrote
(on Thursday, 07 December 2006, 03:55 PM +0800):
In new Zend_Controller_Front (svn 2172) implement,the
setControllerDirectory()
and dispatch() methods have been modified.In the code line 630
I had updated the svn,when i running my app,i get this exception message:
Array ( [0] = Zend_Exception Object ( [message:protected] = File
\IndexController.php was not found. [string:private] = [code:protected]
= 0 [file:protected] = H:\fzwc\zend\Zend.php [line:protected] = 200
[trace:private] =
Anything is ok when i use the old files of Zend/Controller,but it failed if
use the new Zend/Controller files.
my app directory layout is:
app
|--- controllers
||- IndexController.php
||- news
|| |- NewsController.php
|
Hi,
when there are no actions match in the controller,the noRouteAction should
be call,but it isn't. ( incubator/library )
Hi
when i run my app under linux,i got the error:
*Fatal error*: Uncaught exception 'Zend_Controller_Dispatcher_Exception'
with message 'Directory mnt/hdb/web project/fz/web/controllers/news not
found or not readable' in /mnt/hdb/web
project/fz/zend/Zend/Controller/Dispatcher.php:146 Stack trace:
Hi,Matthew
you just corrected the *$count($segs)* bug.And the bug with the methods
of Zend_Http_Request hasn't corrected yet.
*/**
* Base URL of request
* @var string
*/
protected $_baseUrl = ''; *
*/**
* Base path of request
* @var string
*/
protected
56 matches
Mail list logo