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

2007-02-27 Thread Lee Saferite
Perhaps moving Zend.php to Zend/Core.php as-is AND making new classes to replace it is the better solution. We can make the move from Zend to Zend_Core and people can easily do a global search-replace to handle it. Once Zend_Core is in the framework, you can basically turn each of it's

[fw-general] ZF and Autoloading

2007-01-02 Thread Lee Saferite
Hi everyone. I was playing around with the spl_autoload_register function today and decided to ask, Why doesn't ZF use it instead of all the require_once calls? a simple spl_register_autoload(array('Zend', 'loadClass')); would do the trick i think. It's valid from PHP 5 = 5.1.0RC1 (

Re: [fw-general] Zend_View and php 5.2 notice

2006-12-28 Thread Lee Saferite
That specific error is due to the fact that when you use an array in a foreach loop, PHP tries to update the internal pointer to the 'current' key. Since you cannot get the array by reference using __get or offsetGet, you cannot update this pointer. PHP is telling you that you are updating the

[fw-general] Re: [fw-mvc] Suggestion for missing norouteAction

2006-12-26 Thread Lee Saferite
I vote for the idea of the ability to set the no route controller/action. I would also expect the original controller/action to still be set when the noroute controller/action is called so you could properly log errors. Lee On 12/23/06, Willie Alberty [EMAIL PROTECTED] wrote: On Dec 23,

Re: [fw-general] dynamic image generation

2006-12-26 Thread Lee Saferite
: Lee Saferite [EMAIL PROTECTED] To: Don Reeves [EMAIL PROTECTED]; Zend Framework General fw-general@lists.zend.com Sent: Tuesday, December 26, 2006 8:17:56 AM Subject: Re: [fw-general] dynamic image generation Generally, in firefox, you can 'view source' and get the actual error message

Re: [fw-general] Problem after upgrading to 0.6.0

2006-12-22 Thread Lee Saferite
You would get that if you had no Zend_Controller_Request object. What does your bootstrap code look like? Lee. On 12/22/06, Marc Lindemann [EMAIL PROTECTED] wrote: Hello, I have to problems after upgrading to 0.6.0: -*Fatal error*: Call to a member function getParam() on a

Re: [fw-general] Two Problems after upgrading to 0.6.0

2006-12-22 Thread Lee Saferite
Actually, a call to $this-_getParam('id') gets translated into $this-getRequest()-getParam('id') in the Action class. So, his code 'should' work. It seems that the internal call to getRequest() is not returning a valid object. The source code provided is insufficient to diagnose the problem.

Re: [fw-general] Two Problems after upgrading to 0.6.0

2006-12-22 Thread Lee Saferite
/response/invokeArgs The new Zend_Controller_Action class provides a stub function called init() that you can override to do any controller level setup if needed. Lee. On 12/22/06, Lee Saferite [EMAIL PROTECTED] wrote: Actually, a call to $this-_getParam('id') gets translated

Fwd: [fw-general] Routing Question

2006-12-21 Thread Lee Saferite
What does your code look like? If, for example, you are using the RewriteRouter, you could do something like this: $router-addRoute('catchall', new Zend_Controller_Router_Route('/*', array('controller'='index', 'action'='error'), array()); $router-addRoute('home', new

Re: [fw-general] noRouteAction ....no function ...please help

2006-12-21 Thread Lee Saferite
Wait... doesn't using __call provide the same effect? On 12/21/06, Kevin McArthur [EMAIL PROTECTED] wrote: I second this. Bring back noroute =P K - Original Message - From: Willie Alberty [EMAIL PROTECTED] To: Zend Framework General fw-general@lists.zend.com Sent: Thursday, December

Re: [fw-general] noRouteAction ....no function ...please help

2006-12-21 Thread Lee Saferite
BTW, This discussion belongs in the MVC list ([EMAIL PROTECTED]) On 12/21/06, Lee Saferite [EMAIL PROTECTED] wrote: Wait... doesn't using __call provide the same effect? On 12/21/06, Kevin McArthur [EMAIL PROTECTED] wrote: I second this. Bring back noroute =P K - Original Message

Re: [fw-general] inheritance not working ?

2006-12-06 Thread Lee Saferite
Matthew, In the first message from wimg, it says that Zend_Db_Table::setDefaultAdapter($db) is being called. However, even if that were not the case, you should not be able to get the reported error, at least as far as I can tell from the code in question. If the default adapter was never set

[fw-general] Weird Issue (Slightly OT)

2006-10-25 Thread Lee Saferite
Hi all, I just ran into a strange problem and since the project uses ZF and you guys are the only PHP community I am part of, I thought I'd present it to you all.We currently run with Zend Platform on our testing and live servers without any problems. We also have a series of laptops running linux

Re: [fw-general] Weird Issue (Slightly OT)

2006-10-25 Thread Lee Saferite
on the demo laptops running the Zend Framework application?On 10/25/06, Lee Saferite [EMAIL PROTECTED] wrote: Software details:Apache 2.0.52PHP 5.0.4Zend Framework 0.1.5 (not on demo laptops)

Re: [fw-general] Weird Issue (Slightly OT)

2006-10-25 Thread Lee Saferite
without it?Lee.On 10/25/06, Lee Saferite [EMAIL PROTECTED] wrote: =) Good call. Too much Cut and Paste. we DO use ZF on the laptops.And as an update, I have further isolated it to the __get/__set functions having the issue.Lee. On 10/25/06, Christopher Östlund [EMAIL PROTECTED] wrote: Just making sure

Re: [fw-general] Weird Issue (Slightly OT)

2006-10-25 Thread Lee Saferite
exception? */ if ($key[0] != '_') { if(isset($this-_vars[$key])) { return $this-_vars[$key]; } else { return null; } } }On 10/25/06, Lee Saferite [EMAIL PROTECTED] wrote: Ok, so I tried changing the __get method of the Zend_View_Abstract class to one I found here: http

Re: [fw-general] Weird Issue (Slightly OT)

2006-10-25 Thread Lee Saferite
or user error? Also, seems to me that Zend Platform changes the behavior of the laguage in an undocumented way, isn't this a bad thing? I would appreciate any comments on this.LeeOn 10/25/06, Lee Saferite [EMAIL PROTECTED] wrote:Wow, I'm not a master PHP programmer, so this confuses me. This fails

Re: [fw-general] (testing, please ignore)

2006-10-23 Thread Lee Saferite
I had the same issue a few days ago. Anyone know what was up?On 10/22/06, Charles [EMAIL PROTECTED] wrote: Weird.Along with the list post, here's the email I received from Amazon (!): Greetings from Amazon.com. We're sorry. You've written to an address that cannot accept incoming e-mail. But

Re: [fw-general] Controller/Action Name

2006-10-12 Thread Lee Saferite
. ehehehe In the manual don't say that things :(. And now, How I can get additionals param ? I.E: /controllerName/actionName/addtionalvalue1/addtionalvalue2 Thanks for all. (Please, give me a good website with Zend Framework Tutorial's) 2006/10/11, Lee Saferite [EMAIL PROTECTED]:I currently use

Re: [fw-general] Controller/Action Name

2006-10-11 Thread Lee Saferite
I currently use:$this-_action-getControllerName()$this-_action-getActionName()Not sure if this is the best way.LeeOn 10/11/06, Matthias Zitzmann [EMAIL PROTECTED] wrote: Try to use $this-_getParam('controller') and $this-_getParam('action')for that.MatthiasRenan Gonçalves wrote: How I can get