[fw-general] Item paginators + Dojo Grids

2008-11-03 Thread Cameron
Hi again, I'm trying to put together simple item paginators (ala the http://framework.zend.com/manual/en/zend.paginator.usage.html example), and I'm just wondering what the best practice for something like this is when used with the Dojo grid. The Dojo grid takes care of the search pagination, so

Re: [fw-general] Developing for Zend Framework in Zend Studio for Eclipse

2008-11-03 Thread jkush1121
Karol is correct. ZSE prior to 6.1 will not work correctly. Also, be sure to set your php inclusion paths. - Jonathan Themselves wrote: This is a very common issue with Eclipse, it dies in the arse with large projects. The building workspace thing has cost me a handful of days in lost

[fw-general] Notes on deploying ZF on MT Grid Server / Mac Bootcamp

2008-11-03 Thread mothmenace
Hello, I wanted to post some observations on my usage of ZF, fairly random: Grid I had to deploy a ZF based site on an MT Grid package. The performance was very sporadic - page serves anything from 8s - 25s on a bad day. Grid is a terrible hosting environment, so I'm not for a second saying the

[fw-general] Zend_Controller_Router_Route_Hostname question

2008-11-03 Thread Mills Guo
Hi Ben. I have a question about Zend_Controller_Router_Route_Hostname. How configure this URL? subdomain.fengone.com/home/index module - subdomain , controller - home , action - index If you can't busy, pls help me. Thanks. -- Mills Guo

Re: [fw-general] Framework speed shotout -- question

2008-11-03 Thread ekerazha
Matthew Weier O'Phinney-3 wrote: You miss several important issues: it's not necessarily about testing on Windows, it's the entire methodology. If you want to have a good benchmark on windows, use a reasonable production environment: dedicated machine, using IIS + FastCGI. Apache on

Re: [fw-general] Developing for Zend Framework in Zend Studio for Eclipse

2008-11-03 Thread Bradley Holt
Good point Karol and Jonathan. I haven't upgraded from 6.0 yet. I will try that and see if it makes a difference. On Mon, Nov 3, 2008 at 4:23 AM, jkush1121 [EMAIL PROTECTED] wrote: Karol is correct. ZSE prior to 6.1 will not work correctly. Also, be sure to set your php inclusion paths. -

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

2008-11-03 Thread Ramon de la Fuente
I have been using this since the beginning of thte framework for the simplest of projects (the ones that only require one controller and no modules and where the extra 'index' in the url only hurts the eyes): - This is a snippet from an INI config file: [main] ; Settings for routing engine

Re: [fw-general] db table prefix from config

2008-11-03 Thread Giovanni A. D.
On Fri, Oct 31, 2008 at 11:07 PM, Rob Allen [EMAIL PROTECTED] wrote: I would probably extend Zend_Db_Table_Abstract and automatically add the prefix when setting up the table name. Something like this: class App_Db_Table_Abstract extends Zend_Db_Table_Abstract { [...] hi, where would it be

Re: [fw-general] Zend_Form Decorators, tried to add parameters - unexpected HTML output

2008-11-03 Thread Mon Zafra
Replace the label with these: array(array('labelTdClose'='HtmlTag'), array('tag'='td', 'closeOnly'=true, 'placement'='prepend')), 'Label', array(array('labelTdOpen'='HtmlTag'), array('tag'='td', 'openOnly'=true, 'class'='y_class', 'placement'='prepend')), It looks weird

Re: [fw-general] Framework speed shotout -- question

2008-11-03 Thread Karol Grecki
Setting up a proper environment that at least a bit resembles what's used in production is a matter of professionalism, I don't think you will convince anyone here otherwise. It puts into questions author's technical abilities as a whole. You have no way to tell how this choice affected the

RE: [fw-general] Speed up Zend framework

2008-11-03 Thread Wil Sinclair
Matthew Weier O'Phinney is working on a performance guide as an appendix to our manual. It covers a lot of practices that should improve the performance of your ZF app. In addition, the 1.7 release contains several performance enhancements in the MVC components and elsewhere. An important fact to

RE: [fw-general] Speed up Zend framework

2008-11-03 Thread Karol Grecki
I suggest you just run it through a profiler and analyse bottlenecks, try Xdebug+KCachegrind. If bottlenecks are in ZF code that you have no control over you can always suggest an improvement or at least raise an issue. Some generic tips that might help: enable APC, put ZF library at the

[fw-general] Controller Speed

2008-11-03 Thread monk.e.boy
Hi, Seeing as we're talking speed, I have a question. One of my controllers is close to 3,000 lines long, that section of my site has many, many pages. Before I ZF'd my site, I just had a lot of .php files. How come I need to merge all these into one controller? Why does the parser need to

Re: [fw-general] Controller Speed

2008-11-03 Thread Christopher Östlund
Don't put businesses logic into the controllers. Controllers should contain application logic. You business logic should be in your models. On Mon, Nov 3, 2008 at 3:17 PM, monk.e.boy [EMAIL PROTECTED]wrote: Hi, Seeing as we're talking speed, I have a question. One of my controllers is

Re: [fw-general] Framework speed shotout -- question

2008-11-03 Thread Isaak Malik
It seems like you didn't understand what I was trying to explain. Have you received my E-mail containing my benchmarks? If so compare them to the ones the Yii author performed. My benchmarks (quoted because I didn't intend to perform real benchmarks) were performed on a Windows XP

Re: [fw-general] Framework speed shotout -- question

2008-11-03 Thread ekerazha
Karol Grecki wrote: You have no way to tell how this choice affected the benchmarks, you cannot assume that every framework was slowed down equally. For example if I/O was particularly slow, that would penalize frameworks with larger number of includes more than others, skewing the

[fw-general] Zend_Pdf and special character problems

2008-11-03 Thread Jani Hartikainen
Hey all I've been using Zend_Pdf to create some stuff, and now I ran into an issue with the finnish letters Ä and Ö. On my dev box, which is Win XP in finnish, the characters show up just fine in the PDF, but on the *nix server which isn't in finnish, when the pdf generation encounters the

Re: [fw-general] Framework speed shotout -- question

2008-11-03 Thread Martin Martinov
Martin Martinov-2 wrote: The bare fact that they say the tests were run on a windows vista pc says much by itself :-) 2008/11/3 ekerazha [EMAIL PROTECTED]: Karol Grecki wrote: You have no way to tell how this choice affected the benchmarks, you cannot assume that every framework was

Re: [fw-general] Framework speed shotout -- question

2008-11-03 Thread ekerazha
Isaak Malik-3 wrote: It seems like you didn't understand what I was trying to explain. Don't worry, I perfectly understand it :-) Isaak Malik-3 wrote: My benchmarks (quoted because I didn't intend to perform real benchmarks) were performed on a Windows XP everyday-computer (meaning a

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

2008-11-03 Thread Bowen, Daniel
I realized my solution only solves the duplicate content problem, not the routing problem. You'd still have to manually define your routes to the index controller. I'll give yours a shot. Looks simpler than manually defining every single route. Dan Bowen Web Developer

Re: [fw-general] Speed up Zend framework

2008-11-03 Thread till
On Mon, Nov 3, 2008 at 11:23 AM, O'BRIEN, Steven X [EMAIL PROTECTED] wrote: Guys, Has anyone got some tips on how to speed up Zend Framework applications? Indeed I do (sorry for the shameless plug): http://till.vox.com/library/post/zendframework-performance.html I'm working on a follow-up

Re: [fw-general] Zend_Dojo Email validation, checkbox and Submit dojo form question- please?

2008-11-03 Thread gerardroche
vladimirn wrote: Alert you suggested me to make wont work as well :( phtml: ? $this-dojo()-javascriptCaptureStart() ? function validateForm() { var form = dijit.byId(signup); if (!form.validate()) { alert(Invalid form); return false; } return true; }

Re: [fw-general] Zend Form Validation

2008-11-03 Thread nwhiting
nwhiting wrote: Matthew Weier O'Phinney-3 wrote: -- nwhiting [EMAIL PROTECTED] wrote (on Friday, 31 October 2008, 07:34 AM -0700): I am having a small problem with validating input I have everything setup correctlybut it seems that every time I submit the form it will

[fw-general] Zend_Capcha

2008-11-03 Thread dele454
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(){ $this-_helper-layout-setLayout('layout-site');

Re: [fw-general] Framework speed shotout -- question

2008-11-03 Thread ekerazha
With your benchmark I mean the pmjones' ones, I did not receive your benchmarks Isaak. -- View this message in context: http://www.nabble.com/Framework-speed-shotoutquestion-tp19914787p20305143.html Sent from the Zend Framework mailing list archive at Nabble.com.

RE: [fw-general] Speed up Zend framework

2008-11-03 Thread O'BRIEN, Steven X
Guys, Has anyone got some tips on how to speed up Zend Framework applications? I have noticed that using Zend framework although speeding up development time, does slow down the runtime app. The information in this e-mail is confidential. The contents may not be disclosed or used by

Re: [fw-general] Framework speed shotout -- question

2008-11-03 Thread Matthew Weier O'Phinney
-- ekerazha [EMAIL PROTECTED] wrote (on Monday, 03 November 2008, 02:43 AM -0800): That's insignificant, he didn't test some frameworks on a personal computer with Windows Vista and other frameworks on a supercomputer; his test was perfectly fair. Absolute results of that benchmark are

Re: Re: [fw-general] Tags for the memcached and APC backends for Zend_Cache - new approach

2008-11-03 Thread Jan Pieper
Can you please show us an example how to realize tagged-memcache-caching with this new two-level backend? Fabien MARTY wrote: Hi, Please have a look at the TwoLevels backend in 1.7 trunk (or in 1.7 PR), it's want you want. It does exactly this. Feedback welcome Regards,

Re: [fw-general] Framework speed shotout -- question

2008-11-03 Thread ekerazha
Isaak Malik-3 wrote: *As for Yii:* Yii: 144.51 RPC without APC 153.62 RPC without APC Yiilite: 153.15 RPC without APC 129.01 RPC without APC Yii: 150.61 RPC with APC 151.99 RPC with APC Yiilite: 150.61 RPC with APC 156.76 RPC with APC Ok. Using these benchmarks Isaak, I

Re: [fw-general] Zend_Paginator: $paginator-setView($view) has no effect

2008-11-03 Thread Matthew Ratzloff
What does $paginator-setView($view) do vs $this-view-paginator = $paginator; ? They serve two different purposes. You do not need to call setView() if you use the ViewRenderer, but you always need to assign the paginator to the view. -Matt On Sun, Nov 2, 2008 at 9:19 PM, frank.quosdorf

Re: [fw-general] Framework speed shotout -- question

2008-11-03 Thread Isaak Malik
Note that I didn't perform *real* benchmarks so the results are not exact from *real* benchmarks, they were just to show that these were much different from Dandan's, where his ZFW benchmarks performed much worse than Yii and mine slightly better, and how unreliable it can be to perform benchmarks

Re: [fw-general] db table prefix from config

2008-11-03 Thread gerardroche
If the class is App_Db_Table_Abstract or i prefer My_Db_Table_Abstract and you're using the autoloader in bootstrap it would map to application/../library/My/Db/Table/Abstract.php. Assuming of course that you have the the lib in the include_path. e.g. /** * 1. Set the include_path to include

Re: [fw-general] Zend_Capcha

2008-11-03 Thread dele454
Forgot to mention that captcha being the name i gave the textfield to check the captcha value with. - dee -- View this message in context: http://www.nabble.com/Zend_Capcha-tp20300142p20300315.html Sent from the Zend Framework mailing list archive at Nabble.com.

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

2008-11-03 Thread gerardroche
David Mintz-3 wrote: I think he wants to know one routing recipe whereby all the actions in his index controller can be accessed as example.org/action instead of example.org/index/action. I have wondered the same thing but was afraid to ask :-) Though I could image an intelligent 404

Re: [fw-general] JSON format for ComboBox / FilteringSelect

2008-11-03 Thread lupusBE
http://framework.zend.com/issues/browse/ZF-4494 Themselves wrote: Hi guys, I'm trying to build some autocomplete dropdowns using Zend + Dojo, but I can't seem to work out how to get the select to submit the id and display the name. As per the documentation, a ComboBox submits the value

[fw-general] Zend_Form Decorators, tried to add parameters - unexpected HTML output

2008-11-03 Thread wenbert
THE DECORATOR: $elementDecorators = array( 'ViewHelper', //generates the input tag 'Errors', //appends errors, if any 'Description',

Re: [fw-general] Framework speed shotout -- question

2008-11-03 Thread ekerazha
Isaak Malik-3 wrote: Also, I've run only 2 benchmarks per framework and they were all warm benchmarks, in theory real benchmarks should be performed several times and the average should be calculated out of those. And if we do that for my benchmarks this brings up the following results:

Re: [fw-general] Controller Speed

2008-11-03 Thread Matthew Ratzloff
I genuinely can't fathom how a controller could be 3000 lines long without a serious organization problem. Give us some examples of what your URLs look like. -Matt On Mon, Nov 3, 2008 at 6:22 AM, Christopher Östlund [EMAIL PROTECTED] wrote: Don't put businesses logic into the controllers.

Re: [fw-general] Linux Gaming Antispam

2008-11-03 Thread till
On Mon, Nov 3, 2008 at 6:52 PM, Jan Pieper [EMAIL PROTECTED] wrote: Someone can tell me why I am always getting email from Linux Game Publishing Antispam service after sending mail to zf mailinglist? -- Jan Because some people who are subscribed to the list use it. It's a service where you

Re: [fw-general] Speed up Zend framework

2008-11-03 Thread Matthew Ratzloff
Steve, can you remove the duplicate disclaimer? -Matt On Mon, Nov 3, 2008 at 2:23 AM, O'BRIEN, Steven X [EMAIL PROTECTED] wrote: Guys, Has anyone got some tips on how to speed up Zend Framework applications? I have noticed that using Zend framework although speeding up development time,

Re: [fw-general] Controller Speed

2008-11-03 Thread Matthew Weier O'Phinney
-- Matthew Ratzloff [EMAIL PROTECTED] wrote (on Monday, 03 November 2008, 09:49 AM -0800): I genuinely can't fathom how a controller could be 3000 lines long without a serious organization problem. Give us some examples of what your URLs look like. I'm going to have to agree here. The rule of

RE: [fw-general] Linux Gaming Antispam

2008-11-03 Thread Terre Porter
I got one too.. I figured it was someone who was signed up on the list that has a email acceptance validation. If you don't validate they keep rejecting your mail and you keep getting that message. Terre -Original Message- From: Jan Pieper [mailto:[EMAIL PROTECTED] Sent: Monday,

Re: [fw-general] Linux Gaming Antispam

2008-11-03 Thread Matthew Weier O'Phinney
-- Jan Pieper [EMAIL PROTECTED] wrote (on Monday, 03 November 2008, 06:52 PM +0100): Someone can tell me why I am always getting email from Linux Game Publishing Antispam service after sending mail to zf mailinglist? Somebody is using the you must reply to me form of anti-spam with an account

Re: [fw-general] Framework speed shotout -- question

2008-11-03 Thread Matthew Ratzloff
I think we need to reign in the personal attacks in this thread. Labels like 'so-called' professionals and incompetent do nothing to further the discussion. Now that Qiang Xue has re-ran the tests against RHEL 5 using Apache 2 and the latest PHP release, it's evident that Yii Framework is quite a

Re: [fw-general] Linux Gaming Antispam

2008-11-03 Thread Matthew Ratzloff
I just created a Gmail filter to automatically delete these obnoxious e-mails. -Matt On Mon, Nov 3, 2008 at 10:05 AM, Matthew Weier O'Phinney [EMAIL PROTECTED]wrote: -- Jan Pieper [EMAIL PROTECTED] wrote (on Monday, 03 November 2008, 06:52 PM +0100): Someone can tell me why I am always

RE: [fw-general] Zend Form Validation

2008-11-03 Thread Terre Porter
I was able to get your _createElement function to create elements that did validate as expected. I have something similar but it's not using the zend_form class, so I have to manaually test each field for validation. Though, after making this test code - I am likely to redo my original form

Re: [fw-general] Zend_Capcha

2008-11-03 Thread dele454
I changed the array item: 'name' = 'captcha' instead and now i have a bad captcha value is wrong error. - though am entering the right characters dele454 wrote: hi, i am trying to verify the text submitted to match that of the captcha. If valid(same) echo 'validated'. class

Re: [fw-general] Framework speed shotout -- question

2008-11-03 Thread ekerazha
That's insignificant, he didn't test some frameworks on a personal computer with Windows Vista and other frameworks on a supercomputer; his test was perfectly fair. Absolute results of that benchmark are insignificant, you should care about relative results. As I've already said (I quote myself)

Re: [fw-general] Framework speed shotout -- question

2008-11-03 Thread Matthew Weier O'Phinney
-- Matthew Ratzloff [EMAIL PROTECTED] wrote (on Monday, 03 November 2008, 10:45 AM -0800): I think we need to reign in the personal attacks in this thread. Labels like 'so-called' professionals and incompetent do nothing to further the discussion. Now that Qiang Xue has re-ran the tests

RE: [fw-general] Zend Form Validation

2008-11-03 Thread nwhiting
vRandom wrote: I was able to get your _createElement function to create elements that did validate as expected. I have something similar but it's not using the zend_form class, so I have to manaually test each field for validation. Though, after making this test code - I am likely to

Re: [fw-general] Zend_Session and IE7

2008-11-03 Thread Ben Scholzen 'DASPRiD'
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Most certainly cookies disabled or denied by security software. ... : ___ _ ___ ___ ___ _ ___: : | \ /_\ / __| _ \ _ (_) \ : : | |) / _ \\__ \ _/ / | |) | : : |___/_/:\_\___/_| |_|_\_|___/ :

Re: [fw-general] Framework speed shotout -- question

2008-11-03 Thread Matthew Ratzloff
This would be a simple Zend_Tool provider to create; want to give it a try? Sure, I'll take a look once Zend_Tool is code complete. -Matt On Mon, Nov 3, 2008 at 11:24 AM, Matthew Weier O'Phinney [EMAIL PROTECTED]wrote: -- Matthew Ratzloff [EMAIL PROTECTED] wrote (on Monday, 03 November

Re: [fw-general] Zend Session and objects

2008-11-03 Thread Matthew Ratzloff
Of course; think about how sessions work and their relationship with in-memory objects. You must serialize all the information necessary to recreate that object in its current state, then handle its corresponding deserialization. http://www.php.net/~helly/php/ext/spl/interfaceSerializable.html

[fw-general] ImageSize Validator

2008-11-03 Thread Matthew Lurz
Other validators are working, but ImageSize is not for some reason. I've attempted to add the validator to both the form and the transfer adapter using trunk and 1.7. Is this known not to work yet or am I doing something wrong? In a form, I've tried something akin to: $image = new

Re: [fw-general] ImageSize Validator

2008-11-03 Thread Thomas Weidner
Stupid question: Do you really want to accept ONLY images which have exactly one pixel height and width ? I would think that only one picture will be accepted by this settings... a placeholder 1x1 picture. :-) Greetings Thomas Weidner, I18N Team Leader, Zend Framework

Re: [fw-general] Zend Session and objects

2008-11-03 Thread spaceage
Matt--thanks for your reply. So, I think I'm clear about the need to implement the __sleep() method in the object to perform serialization--return an array with the list of properties you want serialized. I have a couple more questions on this: a) if I have properties in my class which are

Re: [fw-general] Tags for the memcached and APC backends for Zend_Cache - new approach

2008-11-03 Thread Fabien MARTY
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'; $fastBackend = 'Memcached'; $slowBackendOptions = array( 'cache_dir' = '/tmp/' );

Re: [fw-general] Framework speed shotout -- question

2008-11-03 Thread ekerazha
Matthew Ratzloff wrote: - Multiple classes in a single file. I doubt ZF will ever do this, as it is a maintenance headache. Where do you see this? I've opened many files (maybe I've been unlucky :-D) but the only file I found with multiple classes is the CApplication.php file where there

RE: [fw-general] Framework speed shotout -- question

2008-11-03 Thread Michael Tramontano
Anything prefixed by over- is bad by definition :P -Original Message- From: ekerazha [mailto:[EMAIL PROTECTED] Sent: Monday, November 03, 2008 5:12 PM To: fw-general@lists.zend.com Subject: Re: [fw-general] Framework speed shotout -- question Matthew Ratzloff wrote: - Multiple

Re: [fw-general] Framework speed shotout -- question

2008-11-03 Thread ekerazha
I've also found CApplication.php It seems like this is done only in a very few cases (atm I've found 2 files), with very small support-classes, avoiding over-engineering and file invasion. ekerazha wrote: Matthew Ratzloff wrote: - Multiple classes in a single file. I doubt ZF will

Re: [fw-general] Framework speed shotout -- question

2008-11-03 Thread ekerazha
Pardon, CComponent.php ekerazha wrote: I've also found CApplication.php It seems like this is done only in a very few cases (atm I've found 2 files), with very small support-classes, avoiding over-engineering and file invasion. ekerazha wrote: Matthew Ratzloff wrote: -

Re: [fw-general] Framework speed shotout -- question

2008-11-03 Thread ekerazha
Sorry for the double message, the last one is the good one. -- View this message in context: http://www.nabble.com/Framework-speed-shotoutquestion-tp19914787p20312491.html Sent from the Zend Framework mailing list archive at Nabble.com.

Re: [fw-general] ImageSize Validator

2008-11-03 Thread Matthew Lurz
No, I just did that to shorten the message. The actual values are coming from a config file but either way the validator doesn't seem to fire. thomasW wrote: Stupid question: Do you really want to accept ONLY images which have exactly one pixel height and width ? I would think that

Re: [fw-general] ImageSize Validator

2008-11-03 Thread Thomas Weidner
And what's the reason why you supressed the second parameter for the ImageSize validator ? Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: Matthew Lurz [EMAIL PROTECTED] To: fw-general@lists.zend.com Sent: Tuesday,

Re: [fw-general] Framework speed shotout -- question

2008-11-03 Thread Matthew Ratzloff
The database classes, for instance. One class per file is not over-engineering. -Matt On Mon, Nov 3, 2008 at 2:12 PM, ekerazha [EMAIL PROTECTED] wrote: Matthew Ratzloff wrote: - Multiple classes in a single file. I doubt ZF will ever do this, as it is a maintenance headache.

[fw-general] Best practice for creating a nested Zend_Form

2008-11-03 Thread Vince42
Hi, before running into the wrong direction, I would like to hear your opinion about how to realize the nested form, that i sketched earlier. The form should list some fields for each record, links related to this record and a list of tags associated with every record. I currently fetch the

Re: [fw-general] Zend Session and objects

2008-11-03 Thread Matthew Ratzloff
a) A-B-C: A has object B has object C. A's serialization method should call serialize() on B. B's serialization method should call serialize() on C. The only automatic aspect is that serialize() called on an object calls its __sleep() method. b) Not sure. I'll let Ralph or someone else answer

[fw-general] Lucene search recommendation

2008-11-03 Thread xmrcivicboix
Hello, I have never worked with Lucene before and I would like to get some help on this topic. Anyways, what I want to achieve is to be able to index and search all 4 tables at once. I have an event table that contains all user created events. The eventsPeople table contains all user id and

Re: [fw-general] Zend Session and objects

2008-11-03 Thread spaceage
That makes perfect sense (each object calling its own serialize method(s))... I learned that omitting the __sleep method in the object will result in all properties getting serialized (as one would expect from $_SESSION functionality). My issue seems to be that I had a Zend_Db_Select object as

Re: [fw-general] handle any exception with errorController

2008-11-03 Thread Jason Webster
Waigani wrote: 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() in a try / catch and catch the exception in the bootstrap, but then

Re: [fw-general] handle any exception with errorController

2008-11-03 Thread Jason Webster
The Plugin Broker (Zend_Controller_Plugin_Broker) _should_ catch any exceptions thrown by controller plugins. Well, not should, it does. Perhaps this is an issue with how you're instantiating your plugins?? Waigani wrote: Thanks for the run down. Is it possible to throw an error in a plugin

Re: [fw-general] Framework speed shotout -- question

2008-11-03 Thread ekerazha
Matthew Ratzloff wrote: The database classes, for instance. In the framework/db/ dir I can't see any file with multiple classes. Matthew Ratzloff wrote: One class per file is not over-engineering. It does depend on the situation. -- View this message in context:

Re: [fw-general] handle any exception with errorController

2008-11-03 Thread Waigani
The code throw new Zend_Exception('test'); in the predispatch hook of a plugin returns Fatal error: Uncaught exception 'Zend_Exception' with message 'test' … I am registering my plugins via $frontController-registerPlugin() method. Is this not the expected behaviour? Jason Webster

Re: [fw-general] handle any exception with errorController

2008-11-03 Thread Waigani
Thanks for the run down. Is it possible to throw an error in a plugin though? So far the errorController has missed it. Jason Webster wrote: Waigani wrote: 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