Re: [fw-general] ACL & View approach

2010-10-01 Thread Ramon de la Fuente
the helper but we pass the actual objects, but you could chose to have the helper find the role of the identity on it's own by placing Zend_Auth::getInstance()->getIdentity()->role; inside the isAllowed helper ] Hope this helps, Ramon de la Fuente On 1-10-2010 15:56, Serkan Temize

Re: [fw-general] Log sent emials

2010-04-07 Thread Ramon de la Fuente
In the meantime - since you've extended Zend_Mail and overridden the 'send()' method, why don't you override the setBody() and/or setBodyHtml() as well and save the text in your mail object yourself before it's encoded? Kind regards, Ramon de la Fuente Hector Vir

Re: [fw-general] Multiple submit buttons each with their own action

2009-06-23 Thread Ramon de la Fuente
. Gerard Ramon de la Fuente wrote: Also, if you have different actions depending on the button that submits the request, you could use Javascript to alter the "action" of the form prior to submit. The form tag looks like: The inputs look something like: value="Local&quo

Re: [fw-general] Multiple submit buttons each with their own action

2009-06-23 Thread Ramon de la Fuente
.action = </tt><tt>'<a rel="nofollow" href="http://www.remoteurl.nl/someform.php">http://www.remoteurl.nl/someform.php</a>'; </tt><pre style="margin: 0em;"> } } Ofcorse this could probably look a little smoother using your

Re: [fw-general] Survey: Development environment for PHP/ZFW

2009-05-03 Thread Ramon de la Fuente
howard chen wrote: Please feel free to answer: 1. What OS you are using during development? Windows? Mac? Linux? Windows locally with Apache 1.3; FreeBSD development server with Apache 1.3 2. Do you edit source code on localhost or remote? i.e. is your testing environment reside on localhos

Re: [fw-general] partialLoop() best practice

2009-02-05 Thread Ramon de la Fuente
If you create view helpers you can call them from anywhere in the levels with "this->helper()". I feel that having DB queries and php logic isn't right for a view script, but acceptable in a view helper (well, actually not DB queries, but model instantiation inside the view helpers...) - Ramo

Re: [fw-general] Routing so that 'index' never shows up in the url?

2008-11-03 Thread Ramon de la Fuente
;); /* Create a router */ $router = new Zend_Controller_Router_Rewrite(); $router->addConfig($config, 'routes'); /* Create a Zend_Controller_Front object and add route */ $front = Zend_Controller_Front::getInstance(); $front->setRouter($router); It's used with the default rewrite rules in t

[fw-general] Zend_Form_Element Metadata & Attributes

2008-05-08 Thread Ramon de la Fuente
Hi All, Fiddling around with Zend_Form_Element and extending it I created a F500_Form_Element_File (temporary, untill Zend one finally comes around...). I also added a decorator called "Progress" to automatically add the needed HTML for an upload progress bar, but in doing so I need some ext

[fw-general] Exception while opening PDF

2008-04-14 Thread Ramon de la Fuente
Hi all, Are there any types of PDF documents that Zend_Pdf cannot open? I'm trying to open a certain PDF document, but Zend_Pdf::load() throws the followtin exception (with trace): "Zend_Pdf_Exception: PDF file syntax error. Offset - 0x22BF. Object number expected." C:\x\projects\zend_frame

Re: [fw-general] Zend_Log_Writer_FirePHP

2008-04-14 Thread Ramon de la Fuente
nvironment: $writer = new F500_Log_Writer_FirePHP(); $logger = new Zend_Log($writer); $filter = new Zend_Log_Filter_Suppress(); $filter->suppress($live); $logger->addFilter($filter); [ Note the rename of the class Zend_Log_Writer_FirePHP - as not to conflict with the Zend namespace, at least for now)] T

Re: [fw-general] Zend_Log_Writer_FirePHP

2008-04-11 Thread Ramon de la Fuente
I've installed it - took about 4 minutes to get up-and-running... I love it already! Debugging without breaking the application output - it is exactly what the doctor ordered!*grin* Eric Marden wrote: I'm intrigued. Keep us abreast of the progress of this extension. -- Eric Marden -

Re: [fw-general] Broken after upgrade to Apache 2.2

2008-03-13 Thread Ramon de la Fuente
letter. Perhaps you could try that? Regards, Ramon de la Fuente Chuck Bai wrote: Hi, I have a App working fine with Apache 2.0/PHP 5.2.4/ZF 1.0.2. Now, I upgrade to Apache 2.2 with others remain the same (I changed PHP config to run with Apache 2.2). The app broke: the home page (http

[fw-general] Zend_Framework error handling

2008-01-22 Thread Ramon de la Fuente
Hi all, I've been fidling around with Zend_Mail for seding messages - and I'm trying to accomplish capturing any errors while sending. I was using a try { $mail->send() } catch ( Exception $e) { // do something } block but if I use an impossible email address for example, I get an on-sc

Re: [fw-general] Zend_Layout now in core!

2007-12-11 Thread Ramon de la Fuente
Three thumbs up, incredible work! Matthew Weier O'Phinney wrote: (as announced on fw-mvc) Greetings! I'm happy to announce that Zend_Layout has now been successfully merged to core! This includes the following components: * Zend_Controller_(Plugin|Action_Helper)_ActionStack * Zend_Contro

Re: [fw-general] Zend_Session without cookies

2007-07-26 Thread Ramon de la Fuente
Hi Greg, This could have something to do with the security within the browser. I had the same kind of issue where the PHP session ID wasn't resent to the server by the browser, but only in IE. FireFox worked fine. I also use local url's with entries in the local hosts file, and I figured out t

Re: [fw-general] Zend Framework 1.0.0 released

2007-07-02 Thread Ramon de la Fuente
Amazing job guys, I'd like to give you all a big well-deserved pat-on-the-back! So.. if you could all line up in a neat and organised fashion I'll get started... (with a bit of luck, all the Wiki problems will be over by the time I'm done. Then again..) Regards, Ramon de la Fuente

Re: [fw-general] Deployment dependent code

2007-06-25 Thread Ramon de la Fuente
h(); $response = $front->getResponse(); if ($response->isException()) { Zend_Debug::dump($response, 'Response', $islive); } echo $response; - So no throwExceptions() and no Zend_Debug::dump() when we're in a live situation. Cheers, Ramon de la Fu

Re: [fw-general] Re: [fw-server] Sandbox

2007-06-19 Thread Ramon de la Fuente
Hi, Please excuse my quick reply. I got the same error while running "phpunit Alltests" and figured that to be the missing extention. I now see that it was the wrong case (T) and that "phpunit AllTests" should work. Kind regards, Ramon Richard Thomas wrote: Anyone able to help? Looks like

Re: [fw-general] Re: [fw-server] Sandbox

2007-06-19 Thread Ramon de la Fuente
Hi Richard, Thomas, Pointing out the obvious - forgive me if this is too simplictic - shouldn't the command be "phpunit Alltests.php" (note the .php) Or "php Alltests.php" for that matter... Richard Thomas wrote: Anyone able to help? Looks like a phpunit issue which I am not to familiar with

[fw-general] Jira down?

2007-06-18 Thread Ramon de la Fuente
Heads-up: Yesterday I couldn't submit an issue to Jira due to a timeout - today I can't even get to the issues page due to a proxy-error... Regards, Ramon de la Fuente

Re: [fw-general] Dutch PHP Conference

2007-06-18 Thread Ramon de la Fuente
f proper introduction and overall documentation. And that is something I wanted to bring a little attention to. Kind regards, Ramon de la Fuente

[fw-general] Dutch PHP Conference

2007-06-16 Thread Ramon de la Fuente
the whole release (not only code maybe?), and what can be done to pitch in? Sorry for the length of this email, but I felt the need to express these concerns. Kind regards, Ramon de la Fuente

Re: [fw-general] _forward() Question

2007-05-05 Thread Ramon de la Fuente
Hi All, Then why not just set a variable in the Registry? Or am I overlooking something? Regards, Ramon Maurice Fonk wrote: You are right. That's what you get for thinking out loud, you can be wrong, I don't quote Socrates for nothing ;). You can't use attributes of the object (controll

[fw-general] HTTP client error

2007-04-23 Thread Ramon de la Fuente
Hi all, I tried to find the newsgroup/project team for the Http_Client real quick but I coudn't find it so here goes to fw-general: I get the following error when opening an RSS feed: *Fatal error*: Uncaught exception 'Zend_Http_Client_Adapter_Exception' with message 'Invalid chunk size "E9F

Re: [fw-general] Great work with 0.9

2007-03-19 Thread Ramon de la Fuente
Three thumbs up from over here as well! I decided to take the bitter with the sweet months ago and develop new projects in the Zend-Framework, knowing I would probably have to revisit all projects multiple times due to refactoring. I have, but the design has always changed for the better. Than

Re: [fw-general] The new Zend_Filter

2007-03-04 Thread Ramon de la Fuente
hp(455): if (!Zend_Filter::isBetween($options['start'], 1, 1000, true)) { library\Zend\Service\Yahoo.php(486): if (!Zend_Filter::isBetween($options['results'], 1, 20, true)) { library\Zend\Service\Yahoo.php(491): if (!Zend_Filter::isBetween($options['start'], 1, 10

Re: [fw-general] Request for feedback: moving Zend.php to Zend/Zend.php

2007-02-26 Thread Ramon de la Fuente
the first starting point), and I would also agree with moving the ::dump() method to a Zend_Debug class and the registry methods to Zend_Registry. Regards, Ramon de la Fuente Bill Karwin wrote: Please take a look at http://framework.zend.com/issues/browse/ZF-958 We propose to move Zend.ph

Re: [fw-general] svn:externals - zend framework

2007-02-23 Thread Ramon de la Fuente
Hi Andries, I currently import the Zend_Framework completely from SVN to it's own directory, and add the path to the "Zend_Framework/library" folder to php_path with a .htaccess directive. This means I maintain only 1 framework folder for all projects, and leaves me free to add a 'lib' folder

[fw-general] RewriteRouter gone...

2007-02-14 Thread Ramon de la Fuente
n the following days. Regards, Ramon de la Fuente

[fw-general] "IndexController.php" was not found.

2007-01-25 Thread Ramon de la Fuente
config. When relying on the default controller the $dispatchDir returns NULL - and it calls Zend::loadClass('IndexController', NULL) and bombs out. What am I doing wrong here? Kind regards, Ramon de la Fuente

[fw-general] Subversion problem

2006-10-11 Thread Ramon de la Fuente
Same here... (windows as well) Hello, My checkout of the framework is failing with these errors; Error: In directory 'C:\Documents and Settings\tcullen\Desktop\zfw2\incubator\tests\Zend\Mail\_files\test.maildir\cur' Error: Can't move 'C:\Documents and Settings\tcullen\Desktop\zfw2\incubator