Re: home.ctp cannot be found when debug = 0
Now that I'm not in the middle of getting the app read it is a bit funny. :) Is it clearly documented to remove this check or just an assumed part of the process? (once you get familiar with the API) Guess I was expecting something like: configure::read(debug) 0 -r On Sat, Jul 18, 2009 at 6:13 AM, kai k3ho...@gmail.com wrote: it's sort of funny that that was the problem. On Jul 17, 9:48 am, Robert Edeker idxma...@gmail.com wrote: err. That was stupid. I just re-opened the ctp and noticed this little jem. I forgot that I copied it from the stock home.ctp and wasn't quite sure what it was for so I left it in.. (didn't realize that was checking for debug) whoops. if (Configure::read() == 0): $this-cakeError('error404'); endif; On Fri, Jul 17, 2009 at 12:34 PM, Robert Edeker idxma...@gmail.com wrote: So should I name that page differently (main.ctp/index.ctp) then tell the default router to go there instead? I basically just want a front splash page with the application's title and a few links to controllers. On Fri, Jul 17, 2009 at 12:09 PM, Gwoo gwoo.cake...@gmail.com wrote: Look in pages/home.ctp. The debug check was added because too many applications forgot to remove home.ctp. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: home.ctp cannot be found when debug = 0
http://book.cakephp.org/view/413/read http://book.cakephp.org/view/413/readGuess there is this. Suppose I should have taken more time on my first cake app. needed to really get moving though and learn all the cakey stuff along the way. 2009/7/18 Robert Edeker idxma...@gmail.com Now that I'm not in the middle of getting the app read it is a bit funny. :) Is it clearly documented to remove this check or just an assumed part of the process? (once you get familiar with the API) Guess I was expecting something like: configure::read(debug) 0 -r On Sat, Jul 18, 2009 at 6:13 AM, kai k3ho...@gmail.com wrote: it's sort of funny that that was the problem. On Jul 17, 9:48 am, Robert Edeker idxma...@gmail.com wrote: err. That was stupid. I just re-opened the ctp and noticed this little jem. I forgot that I copied it from the stock home.ctp and wasn't quite sure what it was for so I left it in.. (didn't realize that was checking for debug) whoops. if (Configure::read() == 0): $this-cakeError('error404'); endif; On Fri, Jul 17, 2009 at 12:34 PM, Robert Edeker idxma...@gmail.com wrote: So should I name that page differently (main.ctp/index.ctp) then tell the default router to go there instead? I basically just want a front splash page with the application's title and a few links to controllers. On Fri, Jul 17, 2009 at 12:09 PM, Gwoo gwoo.cake...@gmail.com wrote: Look in pages/home.ctp. The debug check was added because too many applications forgot to remove home.ctp. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: home.ctp cannot be found when debug = 0
No, I don't believe so. I haven't changed it from the default. On Fri, Jul 17, 2009 at 11:03 AM, GravyFace gravyf...@gmail.com wrote: Is the Security component enabled in your app_controller? On Fri, Jul 17, 2009 at 10:47 AM, idxidxma...@gmail.com wrote: Gives a 404. Although with debug=1 it's 200. Absolutely nothing else changed except for the core config. (this is running via the XAMPP package on a windows2003 server - not sure if that makes any difference) debug=0 10.1.7.25 - - [17/Jul/2009:09:46:03 -0500] GET / HTTP/1.1 404 1003 10.1.7.25 - - [17/Jul/2009:09:46:03 -0500] GET /css/cake.generic.css HTTP/1.1 304 - 10.1.7.25 - - [17/Jul/2009:09:46:03 -0500] GET /img/cake.power.gif HTTP/1.1 304 - 10.1.7.25 - - [17/Jul/2009:09:46:03 -0500] GET /img/cake.icon.gif HTTP/1.1 304 - debug=1 10.1.7.25 - - [17/Jul/2009:09:48:46 -0500] GET / HTTP/1.1 200 978 10.1.7.25 - - [17/Jul/2009:09:48:47 -0500] GET /css/cake.generic.css HTTP/1.1 304 - 10.1.7.25 - - [17/Jul/2009:09:48:47 -0500] GET /img/cake.power.gif HTTP/1.1 304 - 10.1.7.25 - - [17/Jul/2009:09:48:47 -0500] GET /img/cake.icon.gif HTTP/1.1 304 - On Jul 17, 10:25 am, GravyFace gravyf...@gmail.com wrote: What does your webserver log say? On Fri, Jul 17, 2009 at 9:42 AM, idxidxma...@gmail.com wrote: Hello, I've had my cake config set to debug 3 when developing and now that everything seems to be working I want to change to zero and test it out. All of the controllers and such seem fine, but now when I go to the cake root, I receive the following error. Not Found Error: The requested address '/' was not found on this server. The headers and footers work, but it doesn't want to load app/views/ pages/home.ctp . It works fine if I change debug to 1. Any ideas? Thanks, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: home.ctp cannot be found when debug = 0
Hm. Nothing in there from today. Just previous errors that I've fixed by now. On Fri, Jul 17, 2009 at 11:15 AM, Piotr Kilczuk kilc...@gmail.com wrote: Hello, Nothing interesting in app/tmp/logs? Regards, Piotr --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: home.ctp cannot be found when debug = 0
Here's routes.php if that helps any. I think this is basically the default. Router::connect('/', array('controller' = 'pages', 'action' = 'display', 'home')); /** * ...and connect the rest of 'Pages' controller's urls. */ Router::connect('/pages/*', array('controller' = 'pages', 'action' = 'display')); On Fri, Jul 17, 2009 at 11:17 AM, Robert Edeker idxma...@gmail.com wrote: Hm. Nothing in there from today. Just previous errors that I've fixed by now. On Fri, Jul 17, 2009 at 11:15 AM, Piotr Kilczuk kilc...@gmail.com wrote: Hello, Nothing interesting in app/tmp/logs? Regards, Piotr --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: home.ctp cannot be found when debug = 0
Also if I go to /pages/home it works when debug 0, but not otherwise. Still nothing in the app/tmp/logs directory and the apache logs are the same with a 404. (I swear, home.ctp is there. :) == Not Found Error: The requested address '/pages/home' was not found on this server. == == 10.1.7.25 - - [17/Jul/2009:10:35:46 -0500] GET /pages/home HTTP/1.1 404 1042 10.1.7.25 - - [17/Jul/2009:10:35:46 -0500] GET /css/cake.generic.css HTTP/1.1 304 - 10.1.7.25 - - [17/Jul/2009:10:35:46 -0500] GET /img/cake.power.gif HTTP/1.1 304 - 10.1.7.25 - - [17/Jul/2009:10:35:46 -0500] GET /img/cake.icon.gif HTTP/1.1 304 - == On Fri, Jul 17, 2009 at 11:21 AM, Robert Edeker idxma...@gmail.com wrote: Here's routes.php if that helps any. I think this is basically the default. Router::connect('/', array('controller' = 'pages', 'action' = 'display', 'home')); /** * ...and connect the rest of 'Pages' controller's urls. */ Router::connect('/pages/*', array('controller' = 'pages', 'action' = 'display')); On Fri, Jul 17, 2009 at 11:17 AM, Robert Edeker idxma...@gmail.comwrote: Hm. Nothing in there from today. Just previous errors that I've fixed by now. On Fri, Jul 17, 2009 at 11:15 AM, Piotr Kilczuk kilc...@gmail.comwrote: Hello, Nothing interesting in app/tmp/logs? Regards, Piotr --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: home.ctp cannot be found when debug = 0
So should I name that page differently (main.ctp/index.ctp) then tell the default router to go there instead? I basically just want a front splash page with the application's title and a few links to controllers. On Fri, Jul 17, 2009 at 12:09 PM, Gwoo gwoo.cake...@gmail.com wrote: Look in pages/home.ctp. The debug check was added because too many applications forgot to remove home.ctp. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: home.ctp cannot be found when debug = 0
err. That was stupid. I just re-opened the ctp and noticed this little jem. I forgot that I copied it from the stock home.ctp and wasn't quite sure what it was for so I left it in.. (didn't realize that was checking for debug) whoops. if (Configure::read() == 0): $this-cakeError('error404'); endif; On Fri, Jul 17, 2009 at 12:34 PM, Robert Edeker idxma...@gmail.com wrote: So should I name that page differently (main.ctp/index.ctp) then tell the default router to go there instead? I basically just want a front splash page with the application's title and a few links to controllers. On Fri, Jul 17, 2009 at 12:09 PM, Gwoo gwoo.cake...@gmail.com wrote: Look in pages/home.ctp. The debug check was added because too many applications forgot to remove home.ctp. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: CakePHP and the new MS SQL 2005/2008 Driver for PHP
Thanks Ernesto. I might be able to get by with using it due to the small dataset and limited use. I was trying to get the new driver working and thought I had it yesterday, but kept receiving a blank page when testing out the blog demo. Basically ran out of time and had to look into some other things. On Tue, Jul 7, 2009 at 2:13 AM, Ernesto e.fanz...@gmail.com wrote: i have 2000.80.194.0 On 6 Lug, 16:58, Robert Edeker idxma...@gmail.com wrote: What dll version is that? The one I have is 2000.2.8.0 . Although I've read reports of the updated driver not being reliable. On Mon, Jul 6, 2009 at 10:51 AM, Ernesto e.fanz...@gmail.com wrote: Hello. i recently developed a CakePHP app using MSSQL 2005 as DB. i updated ntwdblib.dll in apache/bin (and in php/bin also) directory and now cake's mssql driver is working fine :) On 6 Lug, 16:09, idx idxma...@gmail.com wrote: Hello, http://groups.google.com/group/cake-php/browse_thread/thread/8babbaf1... Regarding this old thread, has anyone modified the mssql class appropriately to work with Microsoft's new sqlsrv driver within CakePHP? I'm on the fence on whether to use Cake to quickly collect data outside of our standard application or not. I do have access to MySQL so I could fall back to that if necessary, but would like to avoid it. I also need to make sure this mini-app can authenticate via LDAP (active directory) and limit application access via an AD group. The app itself should be dead simple, but I haven't worked with cake enough to know if I can pull it off in a few days. (regardless of cake I still have to write an application in the other proprietary system to initiate this process so that will eat up some time.) Thank You, Robert --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: CakePHP and the new MS SQL 2005/2008 Driver for PHP
Seems to be working with the updated version of ntwdblib.dll . At some point it would probably be best to support the new sqlsrv driver, but that's for later. In case it helps anyone I downloaded sp4 for SQL Server 2000 which contains the updated dll. I believe this is available on a number of sites, but just to be safe this is the version from Microsoft. http://www.microsoft.com/downloads/details.aspx?FamilyID=8e2dfc8d-c20e-4446-99a9-b7f0213f8bc5displaylang=en On Tue, Jul 7, 2009 at 3:25 PM, Robert Edeker idxma...@gmail.com wrote: Thanks Ernesto. I might be able to get by with using it due to the small dataset and limited use. I was trying to get the new driver working and thought I had it yesterday, but kept receiving a blank page when testing out the blog demo. Basically ran out of time and had to look into some other things. On Tue, Jul 7, 2009 at 2:13 AM, Ernesto e.fanz...@gmail.com wrote: i have 2000.80.194.0 On 6 Lug, 16:58, Robert Edeker idxma...@gmail.com wrote: What dll version is that? The one I have is 2000.2.8.0 . Although I've read reports of the updated driver not being reliable. On Mon, Jul 6, 2009 at 10:51 AM, Ernesto e.fanz...@gmail.com wrote: Hello. i recently developed a CakePHP app using MSSQL 2005 as DB. i updated ntwdblib.dll in apache/bin (and in php/bin also) directory and now cake's mssql driver is working fine :) On 6 Lug, 16:09, idx idxma...@gmail.com wrote: Hello, http://groups.google.com/group/cake-php/browse_thread/thread/8babbaf1... Regarding this old thread, has anyone modified the mssql class appropriately to work with Microsoft's new sqlsrv driver within CakePHP? I'm on the fence on whether to use Cake to quickly collect data outside of our standard application or not. I do have access to MySQL so I could fall back to that if necessary, but would like to avoid it. I also need to make sure this mini-app can authenticate via LDAP (active directory) and limit application access via an AD group. The app itself should be dead simple, but I haven't worked with cake enough to know if I can pull it off in a few days. (regardless of cake I still have to write an application in the other proprietary system to initiate this process so that will eat up some time.) Thank You, Robert --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: CakePHP and the new MS SQL 2005/2008 Driver for PHP
What dll version is that? The one I have is 2000.2.8.0 . Although I've read reports of the updated driver not being reliable. On Mon, Jul 6, 2009 at 10:51 AM, Ernesto e.fanz...@gmail.com wrote: Hello. i recently developed a CakePHP app using MSSQL 2005 as DB. i updated ntwdblib.dll in apache/bin (and in php/bin also) directory and now cake's mssql driver is working fine :) On 6 Lug, 16:09, idx idxma...@gmail.com wrote: Hello, http://groups.google.com/group/cake-php/browse_thread/thread/8babbaf1... Regarding this old thread, has anyone modified the mssql class appropriately to work with Microsoft's new sqlsrv driver within CakePHP? I'm on the fence on whether to use Cake to quickly collect data outside of our standard application or not. I do have access to MySQL so I could fall back to that if necessary, but would like to avoid it. I also need to make sure this mini-app can authenticate via LDAP (active directory) and limit application access via an AD group. The app itself should be dead simple, but I haven't worked with cake enough to know if I can pull it off in a few days. (regardless of cake I still have to write an application in the other proprietary system to initiate this process so that will eat up some time.) Thank You, Robert --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---