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
unsubscribe
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 ..
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_'];
-- 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
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.
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
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
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
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
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
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
-- 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,
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
-- 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')-
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')) {
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
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
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
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
-- 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.
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.
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
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
-- 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
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
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
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
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,
-- 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).
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 =
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
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
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
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
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
-- 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_
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
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
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.
-- 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
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
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
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
-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
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
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
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
48 matches
Mail list logo