You are creating a router object but your front controller doesn't know
anything about it. Instead of creating a new object try with:
$router = Zend_Controller_Front::getInstance()->getRouter();
Regards,
Goran Juric
http://gogs.info/
--
View this message in context:
http://www.nabble.com/Cust
Steven Szymczak wrote:
>
> Every one of my action controllers has an init() function that pulls a
> config object from the registry and uses it to set some paths used
> throughout the site (e.g.):
>
> public function init() {
> $view_cfg = Zend_Registry::get('SITE_CFG');
>
> $thi
Out of curiosity, why the resistence to subclassing the action controller?
-Matt
On 10/15/08, Steven Szymczak <[EMAIL PROTECTED]> wrote:
> Every one of my action controllers has an init() function that pulls a
> config object from the registry and uses it to set some paths used
> throughout the s
Sorry my mistake, I need to learn how to read better ;)
On Thu, Oct 16, 2008 at 12:04, Tim Nagel <[EMAIL PROTECTED]> wrote:
> I created my own controller, derived from Zend_Controller_Action, calling
> it Tim_Controller_Action and all of my controllers derive from my
> controller. (putting it in
I created my own controller, derived from Zend_Controller_Action, calling it
Tim_Controller_Action and all of my controllers derive from my controller.
(putting it in Library/Tim/Controller/Action.php)
Dont forget to call parent::init(); if you override the init in the real
controllers.
On Thu, O
d'oh!
thanks for the reply, and sorry for the time waste.
--
View this message in context:
http://www.nabble.com/Form-element-throwing-exception-when-using-addfilter%2C-and-not-rendering-correctly-tp19964937p20004846.html
Sent from the Zend Framework mailing list archive at Nabble.com.
If I'm not mistaken, something like this should work:
$route = new Zend_Controller_Router_Route_Static(
'show',
array('controller' => 'show', 'action' => 'Display')
);
$router = $frontController->getRouter();
$router->addRoute('show', $route);
Joe Hagerty wrote:
I am new to the
you could do it in your bootstrap.
Steven Szymczak wrote:
>
> Every one of my action controllers has an init() function that pulls a
> config object from the registry and uses it to set some paths used
> throughout the site (e.g.):
>
> public function init() {
> $view_cfg = Zend_Regi
I am new to the zend framework and am cutting over all my little small
apps and I am currently stumped on the role of routes & rewrites.
I have the following configuration:
application
--bootstrap.php
--Initializer.php
--default
---controllers
IndexController.php
ShowController.php
---mod
Every one of my action controllers has an init() function that pulls a
config object from the registry and uses it to set some paths used
throughout the site (e.g.):
public function init() {
$view_cfg = Zend_Registry::get('SITE_CFG');
$this->view->__set('pubImages', $view_cfg->
Thank you for the reply. However, using spaces with the word or substring
selectors throws a fatal error.
For now, I'm using the word selector with the substring of the attribute
value.
On Thu, Oct 16, 2008 at 4:27 AM, Matthew Weier O'Phinney
<[EMAIL PROTECTED]>wrote:
> -- Mon Zafra <[EMAIL PROTE
Changing "about" to another word doesn't change anything. Since I know
the "routes" definitions are making it into the Zend_Config object, I'm
assuming that Zend_Controller_Router_Rewrite is failing to act on them
properly.
Paweł Chuchmała wrote:
Try other word than 'about'. I have similar pr
-- Mon Zafra <[EMAIL PROTECTED]> wrote
(on Thursday, 16 October 2008, 03:50 AM +0800):
> Hi all,
>
> How do I select a node with an attribute with spaces? This code:
>
> require_once 'Zend/Dom/Query.php';
> $val = 'foo bar';
> $html = '';
>
> $dom = new Zend_Dom_Query($html);
> $res = $dom->quer
Hi all,
How do I select a node with an attribute with spaces? This code:
require_once 'Zend/Dom/Query.php';
$val = 'foo bar';
$html = '';
$dom = new Zend_Dom_Query($html);
$res = $dom->query('input[value="' . $val . '"]');
echo(count($res));
returns 0. I need this to make my controller tests pa
So nobody has any ideas about this? I've tried changing the route to
"/about", "defaults" to "default" (thinking maybe there was a misprint
in the manual), and even moving the custom routes to a separate config
file from my general config. Still no luck.
I'm using ZF 1.6.2, and dumping $site
As I said, you have to validate against fixed string length.
Simply use a filter chain to archive this.
Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com
- Original Message -
From: "Kexiao Liao" <[EMAIL PROTECTED]>
To:
Sent: Wednesday, October 15,
It would be similar, except rather than hard coding the different
assertions, they would be pulled dynamically from the DB.
For example, in the case of an account, there could be multiple ways to
assert privileges. One may be that you must be the owner, in which case the
user_id matches directly w
Is there any easy way we can use Zend Framework to find 2003--10-1 is an
invalid input date format?
thomasW wrote:
>
> The first one is because Zend_Date ignores all other parts except numbers.
> The date parsing is actually not as strict as for strings.
> To have a strict date parsing you wou
The first one is because Zend_Date ignores all other parts except numbers.
The date parsing is actually not as strict as for strings.
To have a strict date parsing you would simply have to validate it as
string, for example with a fixed length.
A true from isDate does only mean that Zend_Date can
I wrote:
> Do you see your system supporting asserts or does this go beyond a
> drop-in module?
Jason Eisenmenger wrote:
Yes and this is one of the things I've spent the most time thinking about.
Some kind of GUI that lets you select the required relationships between
not just roles an
But then the complete form has an id as it holds the meta information of the
file.
So you could simply add a hidden field which holds the internal id.
This is still independently from the file element itself.
Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com
thomasW wrote:
>
> Btw: When there is no file submitted, why generate an id for it ? :-)
>
When you are editing a file that also has some meta information. Sometimes
you just want to edit the meta information and not upload another file :)))
Regads,
Goran Juric
http://gogs.info/
--
View th
I use Zend_Date class to validate the input date format as showing below
Zend_Date::isDate ( $value, '-M-d' )
However the following input date values CAN NOT BE detected as wrong format
2003--10-1
1005-09-01
Is this a bug for Zend_Date class? Please give your comments. Thanks.
Kevin
--
I would really like to, but there are some features that it needs first.
Jason
On Tue, Oct 14, 2008 at 8:13 PM, Apsy <[EMAIL PROTECTED]> wrote:
> Do you plan to make compatible to Zend_DB as well ?
>
> Jason Eisenmenger a écrit :
>
>> Julian,
>>
>> Yes, thanks for posting issues, I just saw tho
Yes and this is one of the things I've spent the most time thinking about.
Some kind of GUI that lets you select the required relationships between not
just roles and resources, but between one object and another.
Jason
On Wed, Oct 15, 2008 at 7:34 AM, Colin Guthrie <[EMAIL PROTECTED]> wrote:
Matthew Weier O'Phinney wrote:
The problem is that there are situations where isset() and empty() are
not appropriate checks. For instance, try this:
$test = array('foo' => null);
echo ((isset($test['foo'])) ? 'true' : 'false'); // echoes 'false'!
What about empty()?
$test = array(
-- Colin Guthrie <[EMAIL PROTECTED]> wrote
(on Wednesday, 15 October 2008, 12:22 PM +0100):
> Karol Grecki wrote:
> >
> > Colin Guthrie-6 wrote:
> > > Having done some basic benchmarks, on this thread:
> > > http://thread.gmane.org/gmane.comp.php.general/190070
> > > the second example above gave m
Giorgio,
no value will be returned because file elements do not have a value in HTTP.
Shouldn't you generate ids after you validated the form ?
Btw: When there is no file submitted, why generate an id for it ? :-)
Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidn
Hi all,
In my search index with roughly 200k documents I need to be able to
search on document dates. I've already got a nice ranged query working
and it returns the right results. In addition to the date fields the
search form of course also provides a text field so the user can
search
Jason Eisenmenger wrote:
Hello list,
If anyone is interested, I've posted a screencast demonstrating the
"drop-in" security module that I showed at the ZendCon UnCon last month.
If you're in the market for an ACL system for your site, check it out:
http://oss.jasoneisen.com/2008/10/14/secur
I have to use a file form element that is not required. What happens if the
field is not populated? What value is returned by getValue()? I'd like to
set a default value (the id of file in my table) that is used when the file
is not uploaded, so that if the user does not submit anything during an
e
Karol Grecki wrote:
Colin Guthrie-6 wrote:
Having done some basic benchmarks, on this thread:
http://thread.gmane.org/gmane.comp.php.general/190070
the second example above gave me a ~3.5x speed increase. If there is a
2-depth array that needs checking then it yielded a ~4.5x speed increase.
Greg,
this is due to the fact that there is a known and already solved bug when
you use addElement instead of an instance.
I wrote this half a day ago but to send it once again:
--
Yes, this issue was added 7 hours ago and have already been fixed in trunk
and branch.
To solve this s
Yes. You're right. I need to turn on rewrite on apache globally. I fixed it.
Thank you:jumping:.
Tim Nagel wrote:
>
> Have you set up the rewrites properly?
>
> On Wed, Oct 15, 2008 at 16:54, Bobby703 <[EMAIL PROTECTED]> wrote:
>
>>
>> Hi all,
>>
>> I just start learning zend and created a ve
Colin Guthrie-6 wrote:
>
> Having done some basic benchmarks, on this thread:
> http://thread.gmane.org/gmane.comp.php.general/190070
> the second example above gave me a ~3.5x speed increase. If there is a
> 2-depth array that needs checking then it yielded a ~4.5x speed increase.
>
> This wo
On Wed, 15 Oct 2008 10:54:48 +0100, Thomas Weidner <[EMAIL PROTECTED]>
wrote:
Greg,
First:
You should always note the release or revision you are using. ;-)
Sorry, it's 1.6.2. Thanks, what you say makes sense. I'll add a request
for the decorator issue and see if it's just me who wants to
Greg,
First:
You should always note the release or revision you are using. ;-)
To you original question:
File Elements do not have a content, label or other things as per HTTP.
Content would be seen as the file name, but this is a security issue. It
would also not be displayed by the client but
Matthew Weier O'Phinney wrote:
In this particular case, the performance enhancements were made to the
PluginLoader, which is used in a variety of places in the framework.
Basically, we were looping over paths manually and checking if a file
was readable; this becomes slower and slower the more pa
Hi,
I'm trying to make use of the multiFile option for the Form_Element_File
component, but having a bit of trouble. In all my forms so far, I've used
array('Label', 'ViewHelper', 'Errors') with setElementDecorators() at the
end of adding elements to the form, and it's worked just fine (inc
39 matches
Mail list logo