Re: [fw-general] Do I have to use Zend_Registry, Zend_Locale and Zend_Config if I use ZF?

2009-06-02 Thread Vadim Gabriel
ZF components are dependent on each other, Some have more dependencies then others. There is a section in the manual that describes those dependencies on a component bases. On Wed, Jun 3, 2009 at 9:49 AM, Mary Nicole Hicks < webmas...@marynicolehicks.com> wrote: > > I like Zf, but I would like to

[fw-general] Do I have to use Zend_Registry, Zend_Locale and Zend_Config if I use ZF?

2009-06-02 Thread Mary Nicole Hicks
I like Zf, but I would like to use only some parts of it. I would like to use ZF without having Zend_Registry, Zend_Locale and Zend_Config included into PHP (eg through require_once). Can someone explain to me why ZF is so reliant on Zend_Registry, Zend_Locale and Zend_Config? I have been followi

Re: [fw-general] In Action, add new pages to Zend_Navigation_Container at specific position

2009-06-02 Thread Jonathon Wallen
You need to 'find' the page within your navigation container first and add the pages to that instead of the parent container. Try using $parisPage = $navigation->findOneBy('controller','paris'); $parisPage->addPage($myNewPage); On 03/06/2009, at 3:39 PM, Jonathan Maron wrote: How is it possi

[fw-general] In Action, add new pages to Zend_Navigation_Container at specific position

2009-06-02 Thread Jonathan Maron
How is it possible to add new navigation pages at a SPECIFIC position in Zend_Navigation_Container? For example, in my bootstrap, I define: /contact/france/paris/ (/module/controller/action) In Contact_FranceController::parisAction() I need to get names of workers from a database and add them to

[fw-general] Zend_View: View scripts path stack and ViewRenderer

2009-06-02 Thread dmitrybelyakov
Hello, We are trying to change the order in which view scripts are searched in the filesystem and experiencing some difficulties. We generally want to keep all our View scripts under the same directory like: APPLICATION_PATH . '/design/views/modulename/views/scripts/' and if it is not there, d

Re: [fw-general] Zend_Application_Module_Bootstrap - bootstrapping the default module

2009-06-02 Thread dmitrybelyakov
ignace wrote: > > Why can't i have a Bootstrap in my default module? The code says: > > if ($module === $default) { > continue; > } > Hi, I think that's because your default module actually 'is' your application. You may use your application Bootstrap instead. -- View this message in

Re: [fw-general] ZF 1.8 Webinar

2009-06-02 Thread David Mintz
On Tue, Jun 2, 2009 at 3:09 PM, Jurian Sluiman wrote: > Op Tuesday 02 June 2009 21:05:58 schreef Matthew Weier O'Phinney: > > -- David Mintz wrote > > > > (on Tuesday, 02 June 2009, 02:31 PM -0400): > > > On Tue, Jun 2, 2009 at 12:15 PM, Matthew Weier O'Phinney > > > wrote: > > > In case you hav

[fw-general] Zend_Application_Module_Bootstrap - bootstrapping the default module

2009-06-02 Thread ignace
Why can't i have a Bootstrap in my default module? The code says: if ($module === $default) { continue; } -- View this message in context: http://www.nabble.com/Zend_Application_Module_Bootstrap---bootstrapping-the-default-module-tp23838994p23838994.html Sent from the Zend Framework mailing

Re: [fw-general] ZF 1.8 Webinar

2009-06-02 Thread Jurian Sluiman
Op Tuesday 02 June 2009 21:05:58 schreef Matthew Weier O'Phinney: > -- David Mintz wrote > > (on Tuesday, 02 June 2009, 02:31 PM -0400): > > On Tue, Jun 2, 2009 at 12:15 PM, Matthew Weier O'Phinney > > wrote: > > In case you haven't had a chance to explore ZF 1.8 yet, Ralph > > Schindler and

[fw-general] Trouble using Gdata Calendar

2009-06-02 Thread Leif Hetlesæther
Been using zf since 1.7.2 and recently tried the later 1.8.2. It throws an error using the following code: require_once 'Zend/Loader/Autoloader.php'; $loader = Zend_Loader_Autoloader::getInstance(); $service = Zend_Gdata_Calendar::AUTH_SERVICE_NAME; try {

Re: [fw-general] ZF 1.8 Webinar

2009-06-02 Thread Matthew Weier O'Phinney
-- David Mintz wrote (on Tuesday, 02 June 2009, 02:31 PM -0400): > On Tue, Jun 2, 2009 at 12:15 PM, Matthew Weier O'Phinney > wrote: > In case you haven't had a chance to explore ZF 1.8 yet, Ralph Schindler > and I will be doing a webinar tomorrow: > >http://short.ie/zf18webinar

Re: [fw-general] ZF 1.8 Webinar

2009-06-02 Thread Matthew Weier O'Phinney
-- Jurian Sluiman wrote (on Tuesday, 02 June 2009, 08:23 PM +0200): > Op Tuesday 02 June 2009 18:15:22 schreef Matthew Weier O'Phinney: > > In case you haven't had a chance to explore ZF 1.8 yet, Ralph Schindler > > and I will be doing a webinar tomorrow: > > > > http://short.ie/zf18webinar > > >

Re: [fw-general] ZF 1.8 Webinar

2009-06-02 Thread David Mintz
On Tue, Jun 2, 2009 at 12:15 PM, Matthew Weier O'Phinney wrote: > Hey, all -- > > In case you haven't had a chance to explore ZF 1.8 yet, Ralph Schindler > and I will be doing a webinar tomorrow: > >http://short.ie/zf18webinar > > A quick dumb question about this: where they ask you to check

Re: [fw-general] ZF 1.8 Webinar

2009-06-02 Thread Jurian Sluiman
Op Tuesday 02 June 2009 18:15:22 schreef Matthew Weier O'Phinney: > Hey, all -- > > In case you haven't had a chance to explore ZF 1.8 yet, Ralph Schindler > and I will be doing a webinar tomorrow: > > http://short.ie/zf18webinar > > Please come join us! Hi Matthew, It looks pretty good, reall

[fw-general] Newbie HELP! Invalid controller specified (index)?

2009-06-02 Thread redpaint
Hi, Quite new to Zend and I cannot get a Hello World script to work. As far as I can tell I have set up the directory structure correctly and I am including the Library folder correctly. When trying to access the test site I get an exception: Fatal error: Uncaught exception 'Zend_Controller_Di

Re: [fw-general] How to get Config options?

2009-06-02 Thread dmitrybelyakov
Rob Allen-3 wrote: > > > You can create an _initConfig() method in your Bootstrap class that > looks like this: > > protected function _initConfig() > { > $config = new Zend_Config($this->getOptions()); > Zend_Registry::set('config', $config); > } > > > Re

[fw-general] ZF 1.8 Webinar

2009-06-02 Thread Matthew Weier O'Phinney
Hey, all -- In case you haven't had a chance to explore ZF 1.8 yet, Ralph Schindler and I will be doing a webinar tomorrow: http://short.ie/zf18webinar Please come join us! -- Matthew Weier O'Phinney Project Lead| matt...@zend.com Zend Framework | http://framework.zend

Re: [fw-general] struggling to get modules working

2009-06-02 Thread monk.e.boy
I have managed to get my modules working. I had a variety of problems, the biggest was I had no error controller (I was using 1.7PR) so every exception I had was a controller error that did not say which controller it was looking for :( monk.e.boy -- View this message in context: http://www.nab

Re: [fw-general] [General] Windows vs Web Apps

2009-06-02 Thread lightflowmark
Sure, well-written & optimised compiled code is going to be faster than well-written & optimised interpreted code in theory, but for a trivial application like this the difference should be almost unnoticeable running over a local network. For CPU-limited apps, this would be a real issue - I susp

Re: [fw-general] [General] Windows vs Web Apps

2009-06-02 Thread Matthew Ratzloff
Well, which do you think is going to be faster? Compiled C++ or interpreted PHP (querying MySQL)? http://en.wikipedia.org/wiki/Compiled_language http://en.wikipedia.org/wiki/Interpreted_language -Matt On Tue, Jun 2, 2009 at 5:26 AM, iceangel89 wrote: > > i know this maybe a wrong forum to pos

Re: [fw-general] [General] Windows vs Web Apps

2009-06-02 Thread Mon Zafra
Do you have an opcode cache in place? It dramatically increases performance. Since this is Windows, try the free version of Zend Server. My Windows setup with Zend Optimizer+ is much faster than my Ubuntu setup (on the same machine) with APC and FastCGI. It will probably be even faster if you use I

[fw-general] Auditing DB Modifications

2009-06-02 Thread iceangel89
how do u do auditing for DB modifications? like in a DB table with alot of fields i want to know how changed which fields when and from what value to what value. i guess to do this i need to know if the field has been updated but how do i do this efficiently? or how is auditing (audit trails) do

Re: [fw-general] DB Exceptions - shld include whole SQL

2009-06-02 Thread Matthew Weier O'Phinney
-- iceangel89 wrote (on Tuesday, 02 June 2009, 05:18 AM -0700): > > sometimes when exception happen, i would like more info ... like when DB > queries fail ... the stack trace don't seem to helpful to me. i think the > full SQL that failed shld be outputted ... don't u think? No, actually. Exce

Re: [fw-general] DB Exceptions - shld include whole SQL

2009-06-02 Thread Vadim Gabriel
First you can profile everything using the DB profiler. Second you can look in the stack trace for the parameters if you have: request->getParams()) ?> in your error view script you will see the Query that failed. On Tue, Jun 2, 2009 at 3:18 PM, iceangel89 wrote: > > sometimes when exception h

[fw-general] [General] Windows vs Web Apps

2009-06-02 Thread iceangel89
i know this maybe a wrong forum to post this but i like to know what PHP/ZF developers think abt this i just develop a web app that was supposed to be a replacement for a school's inventory management system which was originally developed in MS Access. i was quite embarassing actually ... after

[fw-general] DB Exceptions - shld include whole SQL

2009-06-02 Thread iceangel89
sometimes when exception happen, i would like more info ... like when DB queries fail ... the stack trace don't seem to helpful to me. i think the full SQL that failed shld be outputted ... don't u think? -- View this message in context: http://www.nabble.com/DB-Exceptions---shld-include-whole-

[fw-general] Multiple containers in navigation application resource

2009-06-02 Thread admirau
Is there a possibility to have multiple menus constructed via application.ini? Now I do: resources.view[] = resources.navigation.pages.indexFoo.label = "Foo" resources.navigation.pages.indexFoo.controller = "index" resources.navigation.pages.indexFoo.action = "foo" resources.navigation.pages.i

[fw-general] Re: "Root" and "Module" level of navigation breadcrumbs helper disappears

2009-06-02 Thread Jonathan Maron
So, I finally figured out and fixed the problem. The secret is to ensure that the default module, controller and action names are the same in the routes definition AND in the navigation definition. Please see my corrected routes.xml: http://pastie.org/497666 And my corrected navigation.xml htt

Re: [fw-general] Standard caches for components list

2009-06-02 Thread keith Pope
2009/6/2 Martin Martinov : > 2009/6/2 Jonathan Maron : >> You can search through the ZF library with the following. It will show >> you all classes that include "setCache": >> >> find -name "*.php" | xargs grep -H "function setCache(" 2> /dev/null >> >> The result is as follows: >> >> ./Zend/Pagina

Re: [fw-general] struggling to get modules working

2009-06-02 Thread keith Pope
2009/6/2 monk.e.boy : > > How do I set the path to a module? > > I my application.ini I have: > >  bootstrap.path = APPLICATION_PATH "/Bootstrap.php" >  bootstrap.class = "Bootstrap" > >  ; module bootstrapping >  resources.frontController.moduleDirectory = APPLICATION_PATH "/modules" >  resources.

Re: [fw-general] struggling to get modules working

2009-06-02 Thread monk.e.boy
How do I set the path to a module? I my application.ini I have: bootstrap.path = APPLICATION_PATH "/Bootstrap.php" bootstrap.class = "Bootstrap" ; module bootstrapping resources.frontController.moduleDirectory = APPLICATION_PATH "/modules" resources.modules.projects = "" The error I

Re: [fw-general] What documentation do I need?

2009-06-02 Thread lightflowmark
Try the Zend Framework In Action book (http://www.manning.com/allen/). It's not perfect, but it's a good introduction to ZF and will give you a good feel for it. It's available as an eBook and on paper. Obviously the ZF docs will also help ... For PHP programming, PHP In Action is one of the b

Re: [fw-general] Standard caches for components list

2009-06-02 Thread Martin Martinov
2009/6/2 Jonathan Maron : > You can search through the ZF library with the following. It will show > you all classes that include "setCache": > > find -name "*.php" | xargs grep -H "function setCache(" 2> /dev/null > > The result is as follows: > > ./Zend/Paginator.php:    public static function se