Re: my .htaccess only in documentroot can be use, other .htacess can't be use

2009-01-01 Thread MikeB
Don't spam the group with duplicate problems. Describe/show your directory structure and .htaccess files. The reason nothing else but the index works is because your htaccess files are not functioning correctly. On Jan 1, 10:27 pm, RIMOE meiyo...@gmail.com wrote: hi, everyone, happy new year.

Re: Problem Cake php

2008-12-31 Thread MikeB
Ugh.. That's normal debug data. Set debug to 0 in config/core.php to turn this off. On Dec 31, 4:29 am, garza2002 puc...@gmail.com wrote: I have CakePHP v 1.0.0.2363. It is working fine in my actually server. But i want to transfer to another server. In this new server with the same

DebugKit for 1.2 Final throws error

2008-12-26 Thread MikeB
I decided to try out the debug kit toolbar that Gwoo mentioned in the release notice and I'm getting the following error: Cannot redeclare class View in cake\libs\view\view.php on line 921 The app I'm working on doesn't have anything special and I followed the 2 instructions in the debugkit

Re: file uploading in cake php

2008-12-26 Thread MikeB
Have you tried printing the array to see what it contains? The array holds everything that $_FILE[] normally would. Use these values to upload your file, then set the variable to the name of the file or whatever you want inserted into the database. Cake does not have an automagic way to handle

Re: How to change the layout of your pages in cake php

2008-12-26 Thread MikeB
function login() { $this-layout = 'newlayout'; } Should work. On Dec 26, 11:54 am, mona poojapinj...@gmail.com wrote: I am making login page but due to default settings of cakephp my layout is not looking good i m using table on my login page but if i customize cakephp default page and

Re: How to change the layout of your pages in cake php

2008-12-26 Thread MikeB
Also, more controller properties: http://book.cakephp.org/view/51/Controller-Attributes On Dec 26, 12:27 pm, MikeB bern...@gmail.com wrote: function login() {     $this-layout = 'newlayout'; } Should work. On Dec 26, 11:54 am, mona poojapinj...@gmail.com wrote: I am making login

Re: Model association

2008-12-26 Thread MikeB
var $hasmany = array('People', 'Post', 'Tag); On Dec 26, 11:51 am, mona poojapinj...@gmail.com wrote: How to make association between three of four tables because i m fetching data on my table from three different tables --~--~-~--~~~---~--~~ You received this

Re: Problem related to dropdown box

2008-12-26 Thread MikeB
http://groups.google.com/group/cake-php/browse_thread/thread/5ff7e9219837cb61/a39bdc58592a8133?lnk=gstq=dropdown+belongsto#a39bdc58592a8133 On Dec 26, 11:46 am, mona poojapinj...@gmail.com wrote: How to fetch data from a database and display in dropdown box. For e.g i have one table enteries

Re: file uploading in cake php

2008-12-26 Thread MikeB
I'd like to help, but It's way too late for me to be reading that bad of a run-on sentence. Could you try rephrasing the question with some punctuation? On Dec 26, 10:04 pm, mona poojapinj...@gmail.com wrote: thanks for the reply but when i click on add button to submit the form value in the

Re: Test Suite and HABTM Models - Not Working

2008-10-31 Thread MikeB
-models-in-cakephp---now-let%27s-g... On Fri, Oct 31, 2008 at 3:18 AM, MikeB [EMAIL PROTECTED] wrote: I'm having a problem with the Cake Test Suite throwing errors about HABTM join tables not being found. I've successfully recreated the problem on a much smaller scale. I've created a very

Re: Test Suite and HABTM Models - Not Working

2008-10-31 Thread MikeB
Fixed it! I grabbed the nightly build for 1.2.x.x_31.10.2008 and everything is going smoothly now. Thanks for the suggestions and link Anupom. On Oct 31, 9:50 am, MikeB [EMAIL PROTECTED] wrote: Thanks Anupom, That got me past the missing table cake errors, but now 2/3 of the tests that cake

Test Suite and HABTM Models - Not Working

2008-10-30 Thread MikeB
I'm having a problem with the Cake Test Suite throwing errors about HABTM join tables not being found. I've successfully recreated the problem on a much smaller scale. I've created a very basic 3 table database: posts (id, name) posts_tags (post_id, tag_id) tags (id, name) I've baked each

Re: Does Cake issue a HTTP 404 status code for missing pages.

2008-10-26 Thread MikeB
It does indeed respond with a 404 Not Found header. On Oct 26, 7:44 pm, Mathew [EMAIL PROTECTED] wrote: Hi, When Cake produces the 404 error page for missing pages. Does it send a http/1.1 404 Not Found response code or does it send a http/1.1 200 OK response code? Thanks,

Re: Using requestAction() on a hidden method i.e. _navigation()

2008-10-10 Thread MikeB
pages (including elements). $this-set('siteNavigation', $this-Categories-find(...)); It also removes the extra overhead of requestAction. Just remember to include the Categories model in AppController. On Oct 9, 2:10 pm, MikeB [EMAIL PROTECTED] wrote: I need to be able to create a navigation

Re: Linking to non-admin action from admin-action

2008-10-10 Thread MikeB
Thank you all for your responses. I appreciate the help. On Oct 10, 3:21 pm, mark_story [EMAIL PROTECTED] wrote: Matthew, If you'd like open an RFC ticket about this subject, the router was rebuilt in 1.2 from the ground up. If there is enough community support to change it so you must

Using requestAction() on a hidden method i.e. _navigation()

2008-10-09 Thread MikeB
I need to be able to create a navigation used across my site on many pages. This particular navigation is table-driven from the categories table. It seems like using requestAction() of the categories controller in an element, navigation.ctp, would be the perfect solution. I got all that to work

Linking to non-admin action from admin-action

2008-10-09 Thread MikeB
I have a users controller with 2 actions, view() and admin_add(). I've tried to create a link in the admin_add view that points the user to view(), however it keeps /admin/ in the url it generates. I'm using the link method in the Html helper and I don't understand how to prevent this. Here is