[fw-general] Re: includes are slow - wrong set_include_path ?

2010-09-30 Thread debussy007
@jason What would be the difference between function testAction() { [...] } and function testAction() { [...] $this->render('test'); } what do I really skip by doing so, and why isn't that done by default ? -- View this message in context: http://zend-framework-community.634137.n4.

Re: [fw-general] Re: includes are slow - wrong set_include_path ?

2010-09-30 Thread Jason Webster
On 30/09/2010 2:01 PM, debussy007 wrote: Thanks Hector, I need high performance for a specific page, which need includes in /index, /includes and /includes/agenda What about improving performance for that specific page by adding entries in setScriptPath ? $this->view->setScriptPath( ar

[fw-general] Re: includes are slow - wrong set_include_path ?

2010-09-30 Thread debussy007
Thanks Hector, I need high performance for a specific page, which need includes in /index, /includes and /includes/agenda What about improving performance for that specific page by adding entries in setScriptPath ? $this->view->setScriptPath( array ( "./application/module

Re: [fw-general] includes are slow - wrong set_include_path ?

2010-09-30 Thread Hector Virgen
View scripts are not handled by the autoloader. Take a look at your view's script paths, which is a LIFO stack: var_dump($view->getScriptPaths()); Since there is no prefixing for view scripts, the view object has to search each of the directories (starting with the last one) for the matching view

[fw-general] includes are slow - wrong set_include_path ?

2010-09-30 Thread debussy007
Hi, I profiled my application, and noticed with the help of xdebug and webgrind that my includes are very slow. Like for example ~450 ms was needed for an include of a .phtml file ! I wonder if I am doing something wrong with include paths, if I'm not wrong, ZF uses it to find the files. This i

Re: [fw-general] How to run an application installer?

2010-09-30 Thread Daniel Stefaniuk
That works well for me. Thanks, Hector. Daniel

Re: [fw-general] How to run an application installer?

2010-09-30 Thread Hector Virgen
The separate installer script is a good idea, but I'd stick with a single ini configuration file. The installer script doesn't need to bootstrap everything like your application does. You can pick and choose what to bootstrap: $application = new Zend_Application(APPLICATION_ENV, APPLICATION_PATH .

[fw-general] How to run an application installer?

2010-09-30 Thread Daniel Stefaniuk
I have build an installer for my web application and I have a problem when the bootstrap process initializes all the resources defined in the application.ini file. Because a database haven't been created yet some of the resources that need to use it fail to initialize. I created two application's

Re: [fw-general] Re: Committing to milestones branch

2010-09-30 Thread Matthew Weier O'Phinney
-- Wil Moore III wrote (on Wednesday, 29 September 2010, 01:48 PM -0700): > I just ran: > > phpunit Zend/Paginator > > and a ton of tests are skipped. I assume I am to ignore that and focus only > on the exceptions for this milestone? Especially given that this component > will be completely re-

[fw-general] Re: Limiting DELETE

2010-09-30 Thread Wil Moore III
You might also consider utilizing a flag such as "enabled". `enabled` TINYINT(1) NOT NULL DEFAULT 1 This way, you are not deleting, but rather updating (0|1). - -- Wil Moore III Why is Bottom-posting better than Top-posting: http://www.caliburn.nl/topposting.html -- View this message in