[fw-general] URL Routing and Params

2008-09-04 Thread spaceage
I'm in the early stages of designing a site with the framework and trying to understand more fully the url/routing interaction. Assuming the standard routing behavior of: [URI]/controller/action/var1/value1/var2/value2 what if I want to pass vars/params using a default and/or omitted (index) co

[fw-general] Is there a way to unsubscribe from this list?

2008-09-04 Thread Dragos Roua
unsubscribe

Re: [fw-general] Zend_Translate 1.5 to 1.6 minor issue

2008-09-04 Thread bholub
I appologize for the spam, after restarting apache the problem is gone. It was merely a caching issue. My bad! bholub wrote: > > I just tried out 1.6 and ran into a minor issue with Zend_Translate (maybe > it's just something that I need to change). > > Notice: Undefined index: _options_ in ..

[fw-general] Zend_Translate 1.5 to 1.6 minor issue

2008-09-04 Thread bholub
I just tried out 1.6 and ran into a minor issue with Zend_Translate (maybe it's just something that I need to change). Notice: Undefined index: _options_ in ...\Zend\Translate\Adapter.php on line 97 which is: Zend_Translate::setCache($cache); $this->_options = $this->_translate['_options_'];

Re: [fw-general] Coding style doubts

2008-09-04 Thread Matthew Weier O'Phinney
-- enportugal <[EMAIL PROTECTED]> wrote (on Thursday, 04 September 2008, 06:12 PM -0700): > I've been reading the coding standard at Zend Manual but I have some doubts. > > According to this > > http://framework.zend.com/manual/en/zend.controller.modular.html > > We should use lower names in a

[fw-general] Coding style doubts

2008-09-04 Thread enportugal
Hi, I've been reading the coding standard at Zend Manual but I have some doubts. According to this http://framework.zend.com/manual/en/zend.controller.modular.html We should use lower names in a modular structure, meaning that a controller should be named module_controllers_IndexController.

Re: [fw-general] Zend_Cache: how much time left before expiration ?

2008-09-04 Thread AJ McKee
2008/9/5 Lepidosteus <[EMAIL PROTECTED]>: > I think you didn't get my question, maybe I didn't explain that well: > > When I use the core/file cache I give a lifetime to my cache records > (it's in the zend_cache api), then it cleans it automagically when > used if the lifetime is expired. Look at

Re: [fw-general] Zend_Cache: how much time left before expiration ?

2008-09-04 Thread till
On Thu, Sep 4, 2008 at 7:51 PM, Lepidosteus <[EMAIL PROTECTED]> wrote: > I think you didn't get my question, maybe I didn't explain that well: > > When I use the core/file cache I give a lifetime to my cache records > (it's in the zend_cache api), then it cleans it automagically when > used if the

Re: [fw-general] Zend_Cache: how much time left before expiration ?

2008-09-04 Thread Lepidosteus
I think you didn't get my question, maybe I didn't explain that well: When I use the core/file cache I give a lifetime to my cache records (it's in the zend_cache api), then it cleans it automagically when used if the lifetime is expired. What I want to know is if there is a way, when I successfu

Re: [fw-general] Zend_Form_Element_Captcha decorator

2008-09-04 Thread GJ Bogaerts
Hi Michel thanks that did it for me. I couldn't find this phrase... GJ Michel Morelli wrote: > > > The phrase "Please type this word backwards" is here: Captcha/Dump.php > and the function is: > > public function render(Zend_View $view, $element = null) > { > return 'Please ty

Re: [fw-general] Zend_Cache: how much time left before expiration ?

2008-09-04 Thread AJ McKee
2008/9/4 Michel Morelli <[EMAIL PROTECTED]>: > There are no rules. Depends on your data. Agreed. We tend to examine our SQL queries (thats all we cache currently) and work backwards from there. We have the situation as we aggregate result data nightly into different tables to make SQL selects sim

Re: [fw-general] Zend_Cache: how much time left before expiration ?

2008-09-04 Thread Michel Morelli
Lepidosteus ha scritto: $cache = getMyCache(); if (($someData = $cache->load('id')) { echo 'X minutes left before deletion'; } There are no rules. Depends on your data. Say that you are a blog where U insert a post every day. The cache in this case can be 18-20h (obv. without comment fr

Re: [fw-general] Basic dojo help and programmatic dojo example

2008-09-04 Thread Matthew Weier O'Phinney
-- Ken Petri <[EMAIL PROTECTED]> wrote (on Thursday, 04 September 2008, 01:54 PM -0700): > I need some (I hope) very basic help in getting dojo up and working and some > notion of how to do not have to use the declarative syntax would also be > great. First off, programmatic usage is the default,

Re: [fw-general] [Log/Firebug] Irritating result.

2008-09-04 Thread Christoph Dorn
You are right. It is a problem on the client side. I am in the process of writing a custom variable renderer for variables in console messages for FirePHP. I'll make sure it treats indexed arrays properly. There is however one issue. Associative arrays with numeric keys that are not in sequenc

Re: [fw-general] disable autorender in a plugin preDispatch method?

2008-09-04 Thread Matthew Weier O'Phinney
-- David Mintz <[EMAIL PROTECTED]> wrote (on Thursday, 04 September 2008, 04:49 PM -0400): > I am trying to disable autorendering under certain conditions in a plugin > preDispatch() method. I thought this would work: > > Zend_Controller_Action_HelperBroker::getExistingHelper('ViewRenderer')-

[fw-general] Zend_Cache: how much time left before expiration ?

2008-09-04 Thread Lepidosteus
Hello, I didn't find anything in the docs, so here it is: is there any way using zend_cache (core, file) to know how much time a cached object you just loaded has left before expiring ? eg getting the X number in the following sample: $cache = getMyCache(); if (($someData = $cache->load('id')) {

Re: [fw-general] [Log/Firebug] Irritating result.

2008-09-04 Thread Jan Pieper
It really seems to be a "bug" in Firebug. PHP en-/decodes json strings correct. {"data":[1]} = array("data" => array(0 => 1)) {"data":[1,2,3]} = array("data" => array(0 => 1, 1 => 2, 2 => 3)) Firebug is showing {"data":[1]} as an single dimension array with key=>value. Its very inconsequent

[fw-general] Basic dojo help and programmatic dojo example

2008-09-04 Thread Ken Petri
I need some (I hope) very basic help in getting dojo up and working and some notion of how to do not have to use the declarative syntax would also be great. Here are the contents of the files in question: bootstrap.php: - setControllerDirectory('../application/controllers'); $frontCo

Re: [fw-general] [Log/Firebug] Irritating result.

2008-09-04 Thread Jason Webster
Jason Webster wrote: Matthew Weier O'Phinney wrote: -- Christoph Dorn <[EMAIL PROTECTED]> wrote (on Thursday, 04 September 2008, 10:54 AM -0700): It is an issue with Zend_Json_Encoder. The problem is that JSON does not support associative arrays. See ticket http://framework.zend.com/issues

[fw-general] disable autorender in a plugin preDispatch method?

2008-09-04 Thread David Mintz
I am trying to disable autorendering under certain conditions in a plugin preDispatch() method. I thought this would work: Zend_Controller_Action_HelperBroker::getExistingHelper('ViewRenderer')->setNoRender(); And this code is executing when I expect it to. But when a controller action is invoke

Re: [fw-general] [Log/Firebug] Irritating result.

2008-09-04 Thread Matthew Weier O'Phinney
-- Christoph Dorn <[EMAIL PROTECTED]> wrote (on Thursday, 04 September 2008, 10:54 AM -0700): > It is an issue with Zend_Json_Encoder. > > The problem is that JSON does not support associative arrays. See ticket > http://framework.zend.com/issues/browse/ZF-4159 Actually, that's not entirely true.

Re: [fw-general] [Log/Firebug] Irritating result.

2008-09-04 Thread Christoph Dorn
It is an issue with Zend_Json_Encoder. The problem is that JSON does not support associative arrays. See ticket http://framework.zend.com/issues/browse/ZF-4159 I am working on a solution but do not have a timeline yet. Thanks for reporting your use-case. I have added a comment to the ticket.

[fw-general] [Log/Firebug] Irritating result.

2008-09-04 Thread Jan Pieper
Hi guys, today I tried to use the new Zend_Log_Writer_Firebug and it works fine, but there is something irritating. If you log something like this: # $logger->log(array('data' => array(0 => 1)), Zend_Log::DEBUG); Firebug will show: # array(['data'] => 1) It is because the given array will b

Fwd: [fw-general] Zend_Form_Element_File & MimeType validator

2008-09-04 Thread Jaka Jančar
Forwarding this to the list, since I accidentally replied to Matthew directly. As a related note, if I understand the PHP 5.3 alpha1 announcement[1] correctly, fileinfo is getting included into PHP (not sure if enabled as default, though). [1] http://www.php.net/archive/2008.php#id2008-08

Re: [fw-general] Problem with Form Select and InArray Validator

2008-09-04 Thread Matthew Weier O'Phinney
-- Arthur M. Kang <[EMAIL PROTECTED]> wrote (on Thursday, 04 September 2008, 09:37 AM -0700): > After upgrading to ZF 1.6, some of my Form->Select elements started having > validation errors of 'value was not found in the haystack'. > > Firstly, I have not added any validators to these elements, s

RE: [fw-general] Re: Zend Framework 1.6 is now available!

2008-09-04 Thread Wil Sinclair
It's not just you. I sent it to the fw-announce list yesterday, but there seems to be some issue with moderation. I'm going to have to go in and directly accept it using the mailing list software this morning. ,Wil > -Original Message- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of

Re: [fw-general] Zend_Form_Element_File & MimeType validator

2008-09-04 Thread Thomas Weidner
I've already added it several days ago. You can try it out by using the trunk repository or you have to wait until the next subrelease comes out. Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: "gerardroche" <[EMAIL PR

[fw-general] Problem with Form Select and InArray Validator

2008-09-04 Thread Arthur M. Kang
After upgrading to ZF 1.6, some of my Form->Select elements started having validation errors of 'value was not found in the haystack'. Firstly, I have not added any validators to these elements, so I don't know if it is a new feature of the framework to automatically add the InArray validator

Re: [fw-general] Zend_Form_Element_File & MimeType validator

2008-09-04 Thread gerardroche
Thanks, it will be a welcome addition. Matthew Weier O'Phinney-3 wrote: > > -- gerardroche <[EMAIL PROTECTED]> wrote > (on Thursday, 04 September 2008, 08:45 AM -0700): >> >> Is the MimeType validator available in Zend_Form_Element_File ZF1.6? > > No. Currently there's an extension validator,

Re: [fw-general] Zend_Form_Element_File & MimeType validator

2008-09-04 Thread Matthew Weier O'Phinney
-- gerardroche <[EMAIL PROTECTED]> wrote (on Thursday, 04 September 2008, 08:45 AM -0700): > > Is the MimeType validator available in Zend_Form_Element_File ZF1.6? No. Currently there's an extension validator, but not one for MimeType. MimeType will be added in a later release (likely in 1.6.1).

Re: [fw-general] Zend_Form_Element_Captcha decorator

2008-09-04 Thread Michel Morelli
GJ Bogaerts ha scritto: Thanks for the link, but sorry, that doesn't help me very much. I understood that you had problem with error message. sorry. The phrase "Please type this word backwards" is here: Captcha/Dump.php and the function is: public function render(Zend_View $view, $element =

Re: [fw-general] Zend_Form_Element_Captcha decorator

2008-09-04 Thread GJ Bogaerts
Thanks for the link, but sorry, that doesn't help me very much. The point is that I can't find the name of the variable that sets this part of the message. I've searched the docs for it, but... that doesn't help me Michel Morelli wrote: > > GJ Bogaerts ha scritto: >> Hi all >> >> I have this

[fw-general] Zend_Form_Element_File & MimeType validator

2008-09-04 Thread gerardroche
Is the MimeType validator available in Zend_Form_Element_File ZF1.6? http://framework.zend.com/manual/en/zend.file.transfer.validators.html $upload = new Zend_File_Transfer(); // Limit the mimetype of all given files to gif images $upload->addValidator('MimeType', 'image/gif'); // Limit the

Re: [fw-general] Zend_Form_Element_Captcha decorator

2008-09-04 Thread Michel Morelli
GJ Bogaerts ha scritto: Hi all I have this code in my form: $this->addElement('Captcha', 'captcha', array('label'=>'Bestrijd spam','captcha'=>array('captcha'=>'Dumb','wordLen'=>6))); $this->getElement('captcha')->addDecorator('HtmlTag',array('tag'=>'li')); $this->getEle

[fw-general] Do not escape HeadTitle(). How ?

2008-09-04 Thread Michel Morelli
Hi all. I need to write an HTML code into my {TITLE} I set {TITLE} via headTitle(), but if I insert something like : ("√ PIPPO") my HTML source is : √ PIPPO How can I say to ZF to not escape title ? Tnx. -- Michel 'ZioBudda' Morelli [EMAIL PROTECTED] Consulenza si

[fw-general] Redefine headTitle()

2008-09-04 Thread Michel Morelli
Hi all, I need to write my title page like this : MYSITENAME :: {TITLE} Where {TITLE} is set into action view script and MYSITENAME is a string egual for all pages. I have think to redefine headTitle() with this: class Skebby_WWW_Helper_headTitle extends Zend_View_Helper_HeadTitle { static

Re: [fw-general] Zend_Dojo_Form validating date

2008-09-04 Thread Matthew Weier O'Phinney
-- R! <[EMAIL PROTECTED]> wrote (on Thursday, 04 September 2008, 05:21 AM -0700): > Is there any posibility how to validate date in Zend_Dojo_Form but wihtout > the pop-up calnedar? > I want to use jQuery datepicker (users like it, and it has more functions) > but the pop-ups produced by dojo_form_

[fw-general] Zend_Form_Element_Captcha decorator

2008-09-04 Thread GJ Bogaerts
Hi all I have this code in my form: $this->addElement('Captcha', 'captcha', array('label'=>'Bestrijd spam','captcha'=>array('captcha'=>'Dumb','wordLen'=>6))); $this->getElement('captcha')->addDecorator('HtmlTag',array('tag'=>'li')); $this->getElement('captcha')->addDecora

[fw-general] Zend Form - Removing an Elements Value

2008-09-04 Thread SiCo007
Hi, I have a checkbox as a flag the user can select, which determines whether to update the modified date in the db. I check this prior to updating the db for on or off and send an expression for the new date to the database. How do I then unset this in Zend Form so that after submit it won't be

[fw-general] Zend_Dojo_Form validating date

2008-09-04 Thread R!
Hi, Is there any posibility how to validate date in Zend_Dojo_Form but wihtout the pop-up calnedar? I want to use jQuery datepicker (users like it, and it has more functions) but the pop-ups produced by dojo_form_element are also beautiful :-) -- View this message in context: http://www.nabble.

Re: [fw-general] loading views into variables

2008-09-04 Thread Matthew Weier O'Phinney
-- Jim Pringle <[EMAIL PROTECTED]> wrote (on Wednesday, 03 September 2008, 11:32 PM -0700): > Been using Code Igniter for years and feeling out ZF. Just trying to figure > out > how i can render a "view" into a variable so I can echo it out in the > template. Any thoughts? Thanks! > > This of c

Re: [fw-general] loading views into variables

2008-09-04 Thread Paweł Chuchmała
On Thu, Sep 4, 2008 at 08:32, Jim Pringle <[EMAIL PROTECTED]> wrote: > Been using Code Igniter for years and feeling out ZF. Just trying to figure > out how i can render a "view" into a variable so I can echo it out in the > template. Any thoughts? Thanks! You can use layout as template: In ac

Re: [fw-general] loading views into variables

2008-09-04 Thread Holger Lampe
You forgot the extension of your view-script e.g. $this->view->navbar = $this->render('navbar.phtml'); This works for me. Greets Holger Jim Pringle wrote: Been using Code Igniter for years and feeling out ZF. Just trying to figure out how i can render a "view" into a variable so I can echo it

[fw-general] Re: Zend Framework 1.6 is now available!

2008-09-04 Thread Colin Guthrie
Wil Sinclair wrote: Yeah, yeah. I know. A day late. But as a wise man I once knew used to say 'Better late than never'. :) Enjoy the release. Is it just me or did this not get sent to the zf-announce list? I only read via Gmane/NNTP, so perhaps it's just that step that broke... Col -- Coli

Re: [fw-general] Partials

2008-09-04 Thread Ben Scholzen 'DASPRiD'
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 What I actually do is to either place them in a controllers directory directly, if it is only related to that controller (in that case, I prefix the filename with a _). If it is related to the entire module, I create a _partial folder in the views/scri

Re: [fw-general] Partials

2008-09-04 Thread monk.e.boy
Matthew Weier O'Phinney-3 wrote: > > > The convention used with partials by most ZF developers I've queried is > to place them either at the top-level of your views/scripts/ directory > and to simply prefix them with an underscore: _gui-element.phtml. This > visually sets them apart within you

[fw-general] Populate checkboxes (array) in Zend_Form

2008-09-04 Thread berthausmans
I'm building an ACL management form for the user roles in my application. I saved the application structure (module - controller - action) in the database. In another table I link the actions to the roles: Module -< Controller -< Action -< Role_Action >- Role In the code example below i'm loopin

[fw-general] Caching backend adapters

2008-09-04 Thread Michał Zieliński
At the moment I`m storing cached data in files. It works fine. However I`d like to try out others adapters for APC or Memcache to speed some part of my app even more. In manual I read: Be careful : with this backend, "tags" are not supported for the moment as the "doNotTestCacheValidity=true" arg