[fw-general] Re: Newbie : Message: Invalid controller specified

2011-03-06 Thread mich
Hi Mark all , Many thanks for your suggestion. I changed the name andstarted the tutorial zf-tutorial in the hope of getting a project going. It seems it needs some patience to get going with Zend I have beentrying to connect to the public/index now but remain unsuccessful. When I get the

Re: [fw-general] Re: Newbie : Message: Invalid controller specified

2011-03-06 Thread Jigal sanders
Hello Mark, I would recheck your .htaccess file and your site configuration. Regards. On Sun, Mar 6, 2011 at 12:23 PM, mich michm...@gmail.com wrote: Hi Mark all , Many thanks for your suggestion. I changed the name andstarted the tutorial zf-tutorial in the hope of getting a project

[fw-general] Re: Service Layer and form validation/view interaction

2011-03-06 Thread dmitrybelyakov
As data in your application may come not only from web forms but also as a result of asynchronous requests or REST requests you can implement some sort of mediator to validate your domain object. You can then use this mediator to validate a domain object, retrieve a set of errors for domain

[fw-general] Re: Newbie : Message: Invalid controller specified

2011-03-06 Thread mich
Hey, Many thanks for your help. can you please specific the exact files as being new to Zend and php I m a bit confused. My zf-tutorial project is in the c://mowes_0174/mowes_0174/www/zf-tutorial and what do I check for please? Servername is zf-tutorial.local -- View this message in

[fw-general] Re: Error on 'non-object'? (Pro PHP book)

2011-03-06 Thread Nlissau
Thank you for the quick response. I can't believe it. I've been through that code maybe a hundred times, being sure that the problem was the line I posted. But the change of the m-M did the job :) Thank you! And by the way it is a really well written book. Made me change the way I do scripting

[fw-general] Service Layer and form validation/view interaction

2011-03-06 Thread tonystamp
I am slipping a service layer into my application and have come across my first hurdle - how does the service layer interact with forms? I'm assuming a single service can be responsible for creating more than one type of form? Is it the responsibility of the service layer to validate the form, and

[fw-general] Re: Best Zend Framework Tutorial

2011-03-06 Thread Mr.Kilmister
hi ;-) this one is good enough http://zendframework.com/manual/en/learning.quickstart.html this is nice, but maybe little old fashioned http://alex-tech-adventures.com/development/zend-framework/zf-archives.html and this http://www.slideshare.net/weierophinney/presentations -- View this message

[fw-general] Re: Service Layer and form validation/view interaction

2011-03-06 Thread Wil Moore III
dmitrybelyakov wrote: And Benjamin Eberlei in turn suggests to use a mediator: http://www.whitewashing.de/blog/109 Good reminder. I read this once and meant to circle back and incorporate some of those concepts into what I currently have. Thanks. - -- Wil Moore III Why is

[fw-general] how to use json action context?

2011-03-06 Thread Tim
I can't seem to get my controllers to recognize that I only want them to display json. Here's my controller ?php class IndexController extends Zend_Controller_Action { public function init() { $this-_helper-contextSwitch() -clearContexts()

Re: [fw-general] how to use json action context?

2011-03-06 Thread Hector Virgen
The ContextSwitch helper requires the format parameter to be set (see Zend_Controller_Action_Helper_ContextSwitch#initContext()). However, you could cheat and add the format parameter to the request at the top of your init() hook: public function init() {

Re: [fw-general] how to use json action context?

2011-03-06 Thread Markizano Draconus
Hey Tim, You could add something to disable the layout and set the proper headers: In the controller, under init() or the action you want to execute: $this-_helper-layout-disableLayout(); $this-_response-setHeader('Content-Type', 'application/json'); $this-view-json = array( 'status' = 'ok',