throw exceptions is not on and I've also tested the dispatchLoopStartup in
the plugins broker. It is not catching the exception.
Waigani wrote:
The code
throw new Zend_Exception('test');
in the predispatch hook of a plugin returns
Fatal error: Uncaught exception 'Zend_Exception'
Thanks for that, I've managed to get it working now with the rewritten
autoCompleteDojo at
http://www.makina-corpus.org/2008/10/26/autocomplete-ajax-search-with-dojo-and-zend-framework/,
and I've got dropdown dependencies working with a bit of javascript, but now
I have one last little problem!
Have a look at the paragraph 35.5.4: Text Drawing
http://framework.zend.com/manual/en/zend.pdf.drawing.html
It takes an optional argument for the character encoding which defaults to
the current locale. I think that is what is causing your problem
Jani Hartikainen wrote:
Hey all
I've
When I throw an exception from dispatchLoopStartup I get the following
output:
___
Application Error
this is index view
This is error view
The following error occurred:
exception 'Zend_Exception' with message 'test'
___
So its catching the exception but both the index action from the index
Hi All,
I'm trying using 'Digits' filter on Zend_Form like this :
==
class My_Form_Project_Test extends Zend_Form{
public function __construct($options = null){
parent::__construct($options);
$update = new Zend_Form_Element_Text('test');
$update-setLabel('Test')
Sorry for off topic:
But AnyBody Could you help in my thead layout.phtml calling action
--
View this message in context:
http://www.nabble.com/APC-and-ZF-tutorial-tp20319957p20324493.html
Sent from the Zend Framework mailing list archive at Nabble.com.
I confirm this does not work using capture... I have the same problem.
Thanks
gerardroche wrote:
vladimirn wrote:
Alert you suggested me to make wont work as well :(
phtml:
? $this-dojo()-javascriptCaptureStart() ?
function validateForm() {
var form = dijit.byId(signup);
-- Bagus Nugroho [EMAIL PROTECTED] wrote
(on Tuesday, 04 November 2008, 10:18 PM +0700):
I'm trying using 'Digits' filter on Zend_Form like this :
==
class My_Form_Project_Test extends Zend_Form{
public function __construct($options = null){
parent::__construct($options);
http://www.nabble.com/file/p20325789/1.gif
The captcha gets created but i noticed besides the fact that i cant get the
text on the captcha validated with entered text. On my folder two captcha
images are created on hiting the page.
I have tried to figure out what might be causing this but to
I found this example code in one of the bug reports ...
(http://framework.zend.com/issues/browse/ZF-4045)
Works good enough to get an idea of how to put the captcha to use. (as there
is limited documentation examples)
I didn't see one of these Zend_Form_Element_Captcha in your code, maybe it
is
Hi,
I thought I would take the Preview Release for a spin. But I immediately
hit an issue with Zend_Translate.
My error message is:
Notice: No translation for the language 'en_GB' available. in
/Users/rwc/Sites/ZendFramework-SVN/library/Zend/Translate/Adapter.php on
line 301
I have a
-- Jason Webster [EMAIL PROTECTED] wrote
(on Tuesday, 04 November 2008, 08:26 AM -0800):
Huh? I really don't understand. Matthew, could you please elaborate?
The preDispatch method of the Plugin Broker has a try/catch block that
should grab anything, and send it to the request object? no?
In the framework/db/ dir I can't see any file with multiple classes.
e.g.,
http://yii.googlecode.com/svn/trunk/framework/db/ar/CActiveRecord.php
http://yii.googlecode.com/svn/trunk/framework/db/ar/CActiveFinder.php
-Matt
On Mon, Nov 3, 2008 at 10:54 PM, ekerazha [EMAIL PROTECTED] wrote:
-- Waigani [EMAIL PROTECTED] wrote
(on Monday, 03 November 2008, 09:59 PM -0800):
Is it possible? I want to throw an exception in the preDispatch of a plugin
if you are not allowed to view the page. I then want to handle that
exception via the errorController. I can wrap the $front-dispatch()
correction, it is catching the exception when thrown from dispatchLoopStartup
from my plugin, but not whe it is thrown from preDispatch. Is this the
expected behaviour?
Waigani wrote:
throw exceptions is not on and I've also tested the dispatchLoopStartup in
the plugins broker. It is not
Hey davideFashionPeople,
First off, sorry for sounding like a teacher now, but begging for answers in
other threads is gonna get you some instant *plonk*s. You know that, right?
Second, most people on this list use their real names to post, and I
personally like it that way :-).
About your
Yeah, I'm trying that:
$this-getResponse()-setException(new Zend_Exception(test));
It does get handled in dispatchLoopStartup by the error controller, but
orginal action also gets called as well as the error action (and you get two
views rendered - orginal and error). When I throw an exception
You can manually clear the response body.
$response-clearBody()
I think I'll file a ticket and start work on improving the Exception
handling with regards to plugins.
Waigani wrote:
Yeah, I'm trying that:
$this-getResponse()-setException(new Zend_Exception(test));
It does get handled in
Hi
I see APC mentioned a lot on this list and I was wondering if anyone has a
tutorial for configuring APC for use with ZF?
I have a default PHP and Apache install on Windows XP/Ubuntu/Mac and would
like to what I have to do to my ZF app to get it using APC.
Cheers,
- Robert
Matthew Weier O'Phinney-3 wrote:
-- Matthew Ratzloff [EMAIL PROTECTED] wrote
I'm going to have to agree here. The rule of thumb I use -- based back
on my CGI::Application days -- is that an action/page controller should
only have around 7 actions, maximum; more than that, and it should
Thank you and sorry for wasting your time Thomas. While I feel badly for not
catching this, one of the reasons I love working with the ZF is when
something doesn't work I can almost always count on the issue being related
to some stage of deterioration in my mind instead of a limitation of or
That's only the Active Record implementation (I did miss that 2 files
though). We are at 4 files found now - excluding yiilite.php obviously -.
However, I think these few situations do make a good use of multiple classes
inside a file (PHP doesn't allow nested classes but at least it allows
Oh sorry, my fault. I used Memcached as slow backend :-)
Fabien MARTY wrote:
Hi,
Jan Pieper a écrit :
Can you please show us an example how to realize tagged-memcache-caching
with
this new two-level backend?
something like that (not tested) :
?php
$slowBackend = 'File';
Would adding an exception to the Response work though?
2008/11/4 Matthew Weier O'Phinney [EMAIL PROTECTED]:
-- Waigani [EMAIL PROTECTED] wrote
(on Monday, 03 November 2008, 09:59 PM -0800):
Is it possible? I want to throw an exception in the preDispatch of a plugin
if you are not allowed to
Hey all, Atlassian has expressed interest in support PHP development, so
I'd like to help them by providing feature requests from actual PHP
developers. To this end, I've set up this wiki page:
http://framework.zend.com/wiki/display/ZFDEV/Feature+Requests+for+Atassi
an+Toolset. I'd like to focus
On Tue, Nov 4, 2008 at 10:47 AM, monk.e.boy [EMAIL PROTECTED] wrote:
Matthew Weier O'Phinney-3 wrote:
-- Matthew Ratzloff [EMAIL PROTECTED] wrote
I'm going to have to agree here. The rule of thumb I use -- based back
on my CGI::Application days -- is that an action/page controller should
indeed :-)
2008/11/4 Jan Pieper [EMAIL PROTECTED]
I think you mean extension=php_apc.dll and not extension=php_apc.so
on Windows systems :-)
--
*Von:* Tobias Gies [mailto:[EMAIL PROTECTED]
*Gesendet:* Dienstag, 4. November 2008 12:18
*An:* Robert Castley
Any one out there with help? Please!!
dele454 wrote:
hi,
i am trying to verify the text submitted to match that of the captcha. If
valid(same) echo 'validated'.
class JoinController extends Zend_Controller_Action
{
public function indexAction(){
Thanks for the code. Am not using Zend_Form for my forms. Am using plain
html. I just didnt find it flexible enough for views such as floating three
drop downs side by side and etc. It was taking too much of my time trying to
make my view display as intended.
Thanks for the code anyway.
Thomas,
Thanks for the response. While going through the
Zend_File_Transfer_Adapter_Abstract looking for the appropriate function, I
noticed that setDestination() is depreciated in favour of using a filter.
How do I set the destination path for the adapter if the method is
depreciated? Or, has
Hi all, sorry for being a bit OT here, but Zend currently has some very
high-impact positions that require strong ZF expertise. Here is the job
board as it currently stands:
http://www.zend.com/en/company/jobs-at-zend/. We need people to do
training, support, and- a very special position that our
I've been unable to get this working and so thought I would post some code to
see if anyone might see something out of place.
Here's the form class:
http://www.paste2.org/p/97000
I found this post,
http://www.nabble.com/two-column-site-to19665005.html#a19670193, but
changing the location where
Hello all,
I am proposing we introduce a pre-commit hook on the framework subversion
repository that will help ensure that commit messages are properly formatted
before the commit goes through. The driving factor behind this proposal is
simply integration. Ideally, we would like to see all svn
Might want to make the ticket expression /ZF\-\d+/ just to make maintenance
of the hook easier. You'll also want to prevent commits to tickets that are
closed.
The way that I've worked in the past with hooks like these is to use open
tickets for common tasks so that all Spanish documentation
Use it...
In future it will be reworked so that it uses the rename filter but I have
not finished my thoughts and it will not be reworked for 1.7 anyway.
If you don't set it, it will use the systems temp path, so there is nothing
which you can do wrong.
Greetings
Thomas Weidner, I18N Team
35 matches
Mail list logo