Re: [fw-general] setControllerDirectory in 0.9.2
Dispatcher/Standard.php has a method: isDispatchable() inside that method, a method is called: $this->getDispatchDirectory() And gets the default path: ./application/default/controllers That's the problem. It should get ./application/admin/controllers So I need to check where and how the URI is parsed. Maybe the problem is with mod_rewrite. Matthew Weier O wrote: > > -- mysticav <[EMAIL PROTECTED]> wrote > (on Thursday, 03 May 2007, 01:55 PM -0700): >> Before version 0.9.2, I was ebled to set the modules like this: >> >> $frontController->setControllerDirectory(array( >> 'default' => './application/default/controllers', >> 'web'=> './application/web/controllers', >> 'admin'=> './application/admin/controllers' >> )); >> >> Seems that 0.9.2 Has changed this paradigm. So how can I get the same >> results as previous versions ? > > Nothing changed with regards to module functionality in 0.9.2, and I use > something similar in a couple different projects. What errors or > misbehaviours are you seeing? > > -- > Matthew Weier O'Phinney > PHP Developer| [EMAIL PROTECTED] > Zend - The PHP Company | http://www.zend.com/ > > -- View this message in context: http://www.nabble.com/setControllerDirectory-in-0.9.2-tf3688902s16154.html#a10313468 Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] setControllerDirectory in 0.9.2
I just updated Zend version, and I start getting this error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (/admin)' As you can see, admin is the module, but the Router is looking for a controller as though no module haven't been set up. In Which class Zend parses the URI and gets the module, controller and action ? That way I would be able to see what's exactly hapenning. Any idea ? Matthew Weier O wrote: > > -- mysticav <[EMAIL PROTECTED]> wrote > (on Thursday, 03 May 2007, 01:55 PM -0700): >> Before version 0.9.2, I was ebled to set the modules like this: >> >> $frontController->setControllerDirectory(array( >> 'default' => './application/default/controllers', >> 'web'=> './application/web/controllers', >> 'admin'=> './application/admin/controllers' >> )); >> >> Seems that 0.9.2 Has changed this paradigm. So how can I get the same >> results as previous versions ? > > Nothing changed with regards to module functionality in 0.9.2, and I use > something similar in a couple different projects. What errors or > misbehaviours are you seeing? > > -- > Matthew Weier O'Phinney > PHP Developer| [EMAIL PROTECTED] > Zend - The PHP Company | http://www.zend.com/ > > -- View this message in context: http://www.nabble.com/setControllerDirectory-in-0.9.2-tf3688902s16154.html#a10313410 Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] setControllerDirectory in 0.9.2
-- mysticav <[EMAIL PROTECTED]> wrote (on Thursday, 03 May 2007, 01:55 PM -0700): > Before version 0.9.2, I was ebled to set the modules like this: > > $frontController->setControllerDirectory(array( > 'default' => './application/default/controllers', > 'web'=> './application/web/controllers', > 'admin'=> './application/admin/controllers' > )); > > Seems that 0.9.2 Has changed this paradigm. So how can I get the same > results as previous versions ? Nothing changed with regards to module functionality in 0.9.2, and I use something similar in a couple different projects. What errors or misbehaviours are you seeing? -- Matthew Weier O'Phinney PHP Developer| [EMAIL PROTECTED] Zend - The PHP Company | http://www.zend.com/
[fw-general] setControllerDirectory in 0.9.2
Before version 0.9.2, I was ebled to set the modules like this: $frontController->setControllerDirectory(array( 'default' => './application/default/controllers', 'web'=> './application/web/controllers', 'admin'=> './application/admin/controllers' )); Seems that 0.9.2 Has changed this paradigm. So how can I get the same results as previous versions ? Thanks. -- View this message in context: http://www.nabble.com/setControllerDirectory-in-0.9.2-tf3688902s16154.html#a10313018 Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Problems with Router
Yes. Thanks! Matthew Weier O wrote: > > -- mysticav <[EMAIL PROTECTED]> wrote > (on Wednesday, 02 May 2007, 11:26 PM -0700): >> I'm trying to setup Zend Framwork on IIS using Ionic IsapiRewriter. >> The application is in a subfolder: >> /www/myApp/index.php >> >> the mod_rewrite seems to be working ok: >> http://localhost/myApp/Foo rewrites to myApp/index.php >> >> The problem is that Zend Framework always points to IndexController/index >> >> so, http://localhost/myApp/Foo should give me an error because >> FooController >> doesn't exists , but instead, shows me IndexController/index. So no >> matter >> what URI, always points to IndexController > > In your index.php, try adding the following: > > $front->setBaseUrl('/myApp'); > > and see if that corrects the issue. > > -- > Matthew Weier O'Phinney > PHP Developer| [EMAIL PROTECTED] > Zend - The PHP Company | http://www.zend.com/ > > -- View this message in context: http://www.nabble.com/Problems-with-Router-tf3684817s16154.html#a10313001 Sent from the Zend Framework mailing list archive at Nabble.com.
[fw-general] Zend_Search_Lucene - ArrayAccess
Hi, what do you think about making Zend_Search_Lucene_Search_QueryHit implement ArrayAccess? I have unified code that processes/stores search results that are produced by different searching strategies (lucene being one of them) i simply want this code to access the results in a unified manner (as an array) without knowing what it really is (an object like the lucene QueryHit object, a plain array, ...) Regards Roman -- "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
Re: [fw-general] I'm getting white space on the top of every page
Some editors prepend a UTF-8 bom to your file (if you are working with UTF-8 files), so make sure you double check that. These UTF-8 bom's are not visible in most editors, altough Zend Studio, vim, and nano do. Best, Andriesss Maurice Fonk schreef: Omitting the ?> tag when possible is a good thing. I once had a similar problem. It appeared I had a space in front of the opening my bootstrap file. I suggest you check that as well. MF Shaun Rowe wrote: mysticav wrote: Every time an action is call from the controller, the result html comes with white space at the top of the page Start --- ---End-- The white space between the start and end is sent. Is there any problem with the controller ? Do you have any whitespace after the closing ?> tag in your php files? If a php file contains nothing but php then you can omit the final closing ?> tag. Shaun
Re: [fw-general] I'm getting white space on the top of every page
Omitting the ?> tag when possible is a good thing. I once had a similar problem. It appeared I had a space in front of the opening my bootstrap file. I suggest you check that as well. MF Shaun Rowe wrote: mysticav wrote: Every time an action is call from the controller, the result html comes with white space at the top of the page Start --- ---End-- The white space between the start and end is sent. Is there any problem with the controller ? Do you have any whitespace after the closing ?> tag in your php files? If a php file contains nothing but php then you can omit the final closing ?> tag. Shaun
Re: [fw-general] I'm getting white space on the top of every page
It can be caused be ?> in the end of your code: http://framework.zend.com/manual/en/coding-standard.php-file-formatting.html wrote: > > A.2.1. General > > For files that contain only PHP code, the closing tag ("?>") is never > permitted. It is not required by PHP. Not including it prevents trailing > whitespace from being accidentally injected into the output. > mysticav wrote: > > Every time an action is call from the controller, the result html comes > with white space at the top of the page > Start --- > > > > > ---End-- > The white space between the start and end is sent. Is there any problem > with the controller ? > -- View this message in context: http://www.nabble.com/I%27m-getting-white-space-on-the-top-of-every-page-tf3687265s16154.html#a10307986 Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] I'm getting white space on the top of every page
Shaun Rowe wrote: mysticav wrote: Every time an action is call from the controller, the result html comes with white space at the top of the page Start --- ---End-- The white space between the start and end is sent. Is there any problem with the controller ? Do you have any whitespace after the closing ?> tag in your php files? If a php file contains nothing but php then you can omit the final closing ?> tag. Shaun Forgot to point out that whitespace after the ?> closing tag will be output. So that would be my first port of call. Shaun
Re: [fw-general] I'm getting white space on the top of every page
mysticav wrote: Every time an action is call from the controller, the result html comes with white space at the top of the page Start --- ---End-- The white space between the start and end is sent. Is there any problem with the controller ? Do you have any whitespace after the closing ?> tag in your php files? If a php file contains nothing but php then you can omit the final closing ?> tag. Shaun
[fw-general] I'm getting white space on the top of every page
Every time an action is call from the controller, the result html comes with white space at the top of the page Start --- ---End-- The white space between the start and end is sent. Is there any problem with the controller ? -- View this message in context: http://www.nabble.com/I%27m-getting-white-space-on-the-top-of-every-page-tf3687265s16154.html#a10307445 Sent from the Zend Framework mailing list archive at Nabble.com.
RE: [fw-general] Form validation and error/success messages
Thanks, the new Zend_Filter_Input proposal is intended to solve the use case of applying multiple filters and validators to multiple inputs. The absence of this solution seemed to be the greatest need for ZF 1.0; otherwise we're really trying to limit scope creep, because we need to release ZF 1.0. There are other use cases to solve regarding forms. For instance: - creating form fields and auto-populating them with data. - generating client-side javascript validation code or Ajax routines to dynamically update field content. - consuming and validating form data on the server-side; basically, collect the input data and feed it to Zend_Filter_Input. - generate error output, either client-side or server-side, when the user's input does not pass validation. - handle multi-page forms and maintain state and "data entered so far". The Zend_Filter_Input proposal is continuing the design of low-level pieces that eventually can be utilized to create a very rich form-handling solution. That solution depends on other pieces being developed, and we should not delay ZF 1.0 to wait for them. Regards, Bill Karwin > -Original Message- > From: Markus Wolff [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 03, 2007 8:07 AM > To: José de Menezes Soares Neto > Cc: fw-general@lists.zend.com > Subject: Re: [fw-general] Form validation and error/success messages > > José de Menezes Soares Neto schrieb: > > Hi friends, > > > > 1) I would like to make form validations using Zend Framework (not > > Javascript), how to do this in the best way? > > > > 2) Other thing is, how to display errors and success messagens? > > Hi, > > also have a look at this proposal: > > http://framework.zend.com/wiki/display/ZFPROP/Zend_Filter_Inpu > t+redesign+-+Bill+Karwin > > Seems it also has found its way into the incubator by now: > > http://framework.zend.com/fisheye/browse/Zend_Framework/trunk/ > incubator/library/Zend/Filter/Input.php > > IMHO, this component will largely obsolete the need for a > full-blown form class (or at least make its absence a lot > more bearable for some :-)). > > CU > Markus >
Re: [fw-general] Form validation and error/success messages
I used patForms on a recent project and I would caution others about investing time in learning to use it. It's certainly not bad - it's pretty good in many ways and very flexible, but it appears to be a pretty dead project currently (last release was Aug 2006 and very little activity since). There is very little documentation except the phpDocumentor API and many of the online examples don't work. I found parts of it to be fairly rough around the edges. I don't want to sound overly harsh as the authors obviously put a lot of effort into it but I would hope Zend_Form will be a much more professional component. So I'd like to add my encouragement to the Zend_Form team - it's a tricky one to get right but you'll have a lot of grateful developers thanking you afterwards! Tony On 3 May 2007, at 16:50, Cristian Bichis wrote: Just checked on references section, basically as far as i see only patForms can replace for a while a Zend_Form. PEAR Quick Forms 1 is no longer for use on PHP5, Quick Forms 2 is on alpha 0.1... Any other idea for a temp orary replacement ? Cristian Bichis www.zftutorials.com | www.zfforums.com | www.zflinks.com to be honest, I hadn't thought of progressing on it until after ZF1.0 There's been a lot of changes to ZF, including that of the Filter/ Validator components, the Request object as well as view helpers, etc... So I think it would be best to re-evaluate the role of the 'Form' component after 1.0 is ready. Feel free to add comments to the proposal in the meantime! Any idea when will be out of incubator ? Is a very usefull component... --Cristian Bichis www.zftutorials.com | www.zfforums.com | www.zflinks.com Here's the proposal for the Zend_Form. It includes ideas on how validation should occur as well as how to display the error messages. It's probably your best starting point. http://framework.zend.com/wiki/pages/viewpage.action?pageId=3596 José de Menezes Soares Neto wrote: Hi friends, 1) I would like to make form validations using Zend Framework (not Javascript), how to do this in the best way? 2) Other thing is, how to display errors and success messagens? Thanks! José de Menezes -- Simon Mundy | Director | PEPTOLAB """ " "" "" "" "" """ " "" " " " " "" "" " 202/258 Flinders Lane | Melbourne | Victoria | Australia | 3000 Voice +61 (0) 3 9654 4324 | Mobile 0438 046 061 | Fax +61 (0) 3 9654 4124 http://www.peptolab.com -- Cu stima, Cristian Bichis www.avantis.ro | www.avantis-interactive.com | www.imagis.ro www.zftutorials.com | www.zfforums.com | www.parteneriate.ro SC Imagis SRL Sibiu Str. Gorjului, bl. 1, ap. 32 Sibiu 550063 Mobil: 0744.596106 Tel: 0369401610
Re: [fw-general] Form validation and error/success messages
José de Menezes Soares Neto schrieb: Hi friends, 1) I would like to make form validations using Zend Framework (not Javascript), how to do this in the best way? 2) Other thing is, how to display errors and success messagens? Hi, also have a look at this proposal: http://framework.zend.com/wiki/display/ZFPROP/Zend_Filter_Input+redesign+-+Bill+Karwin Seems it also has found its way into the incubator by now: http://framework.zend.com/fisheye/browse/Zend_Framework/trunk/incubator/library/Zend/Filter/Input.php IMHO, this component will largely obsolete the need for a full-blown form class (or at least make its absence a lot more bearable for some :-)). CU Markus
Re: [fw-general] Form validation and error/success messages
Just checked on references section, basically as far as i see only patForms can replace for a while a Zend_Form. PEAR Quick Forms 1 is no longer for use on PHP5, Quick Forms 2 is on alpha 0.1... Any other idea for a temp orary replacement ? Cristian Bichis www.zftutorials.com | www.zfforums.com | www.zflinks.com to be honest, I hadn't thought of progressing on it until after ZF1.0 There's been a lot of changes to ZF, including that of the Filter/Validator components, the Request object as well as view helpers, etc... So I think it would be best to re-evaluate the role of the 'Form' component after 1.0 is ready. Feel free to add comments to the proposal in the meantime! Any idea when will be out of incubator ? Is a very usefull component... --Cristian Bichis www.zftutorials.com | www.zfforums.com | www.zflinks.com Here's the proposal for the Zend_Form. It includes ideas on how validation should occur as well as how to display the error messages. It's probably your best starting point. http://framework.zend.com/wiki/pages/viewpage.action?pageId=3596 José de Menezes Soares Neto wrote: Hi friends, 1) I would like to make form validations using Zend Framework (not Javascript), how to do this in the best way? 2) Other thing is, how to display errors and success messagens? Thanks! José de Menezes -- Simon Mundy | Director | PEPTOLAB """ " "" "" "" "" """ " "" " " " " "" "" " 202/258 Flinders Lane | Melbourne | Victoria | Australia | 3000 Voice +61 (0) 3 9654 4324 | Mobile 0438 046 061 | Fax +61 (0) 3 9654 4124 http://www.peptolab.com -- Cu stima, Cristian Bichis www.avantis.ro | www.avantis-interactive.com | www.imagis.ro www.zftutorials.com | www.zfforums.com | www.parteneriate.ro SC Imagis SRL Sibiu Str. Gorjului, bl. 1, ap. 32 Sibiu 550063 Mobil: 0744.596106 Tel: 0369401610
Re: [fw-general] Form validation and error/success messages
to be honest, I hadn't thought of progressing on it until after ZF1.0 There's been a lot of changes to ZF, including that of the Filter/ Validator components, the Request object as well as view helpers, etc... So I think it would be best to re-evaluate the role of the 'Form' component after 1.0 is ready. Feel free to add comments to the proposal in the meantime! Any idea when will be out of incubator ? Is a very usefull component... -- Cristian Bichis www.zftutorials.com | www.zfforums.com | www.zflinks.com Here's the proposal for the Zend_Form. It includes ideas on how validation should occur as well as how to display the error messages. It's probably your best starting point. http://framework.zend.com/wiki/pages/viewpage.action?pageId=3596 José de Menezes Soares Neto wrote: Hi friends, 1) I would like to make form validations using Zend Framework (not Javascript), how to do this in the best way? 2) Other thing is, how to display errors and success messagens? Thanks! José de Menezes -- Simon Mundy | Director | PEPTOLAB """ " "" "" "" "" """ " "" " " " " "" "" " 202/258 Flinders Lane | Melbourne | Victoria | Australia | 3000 Voice +61 (0) 3 9654 4324 | Mobile 0438 046 061 | Fax +61 (0) 3 9654 4124 http://www.peptolab.com
Re: [fw-general] Form validation and error/success messages
Any idea when will be out of incubator ? Is a very usefull component... -- Cristian Bichis www.zftutorials.com | www.zfforums.com | www.zflinks.com Here's the proposal for the Zend_Form. It includes ideas on how validation should occur as well as how to display the error messages. It's probably your best starting point. http://framework.zend.com/wiki/pages/viewpage.action?pageId=3596 José de Menezes Soares Neto wrote: Hi friends, 1) I would like to make form validations using Zend Framework (not Javascript), how to do this in the best way? 2) Other thing is, how to display errors and success messagens? Thanks! José de Menezes
Re: [fw-general] Form validation and error/success messages
Here's the proposal for the Zend_Form. It includes ideas on how validation should occur as well as how to display the error messages. It's probably your best starting point. http://framework.zend.com/wiki/pages/viewpage.action?pageId=3596 José de Menezes Soares Neto wrote: Hi friends, 1) I would like to make form validations using Zend Framework (not Javascript), how to do this in the best way? 2) Other thing is, how to display errors and success messagens? Thanks! José de Menezes -- Dale McNeill | Alchemy Systems | phone: (512) 532-8050 http://www.alchemysystems.com | email: [EMAIL PROTECTED]
[fw-general] Form validation and error/success messages
Hi friends, 1) I would like to make form validations using Zend Framework (not Javascript), how to do this in the best way? 2) Other thing is, how to display errors and success messagens? Thanks! José de Menezes
Re: [fw-general] Problems with Router
-- mysticav <[EMAIL PROTECTED]> wrote (on Wednesday, 02 May 2007, 11:26 PM -0700): > I'm trying to setup Zend Framwork on IIS using Ionic IsapiRewriter. > The application is in a subfolder: > /www/myApp/index.php > > the mod_rewrite seems to be working ok: > http://localhost/myApp/Foo rewrites to myApp/index.php > > The problem is that Zend Framework always points to IndexController/index > > so, http://localhost/myApp/Foo should give me an error because FooController > doesn't exists , but instead, shows me IndexController/index. So no matter > what URI, always points to IndexController In your index.php, try adding the following: $front->setBaseUrl('/myApp'); and see if that corrects the issue. -- Matthew Weier O'Phinney PHP Developer| [EMAIL PROTECTED] Zend - The PHP Company | http://www.zend.com/