setup problem

2006-08-26 Thread bingo

hi,

I have two questions regarding the setup
1. I have downloaded CakePHP and placed the cake folder within the
htdocs folder i.e. my setup is as follows
/htdocs/cake/cake
   /htdocs/cake/app
But when I go to
   http://localhost/cake
I am able to see the cakePHP page but not its style. Even the CakePHP
icon is missing.

where I am making a mistake ?

2. I created a new application 'elearning' using the bake.php script.
It create a new folder for my application and it contains model,
controller, view folder in it. But when I created my models and
controller using the bake script, it placed them inside the 'app'
folder. I am not sure whether that's the right place or not. If it is,
then what's the use of 'elearning' folder that was created by the bake
script.

Looking forward for comments
Regards


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: setup problem

2006-08-26 Thread John Zimmerman [gmail]
It sounds like mod_rewrite is not enabled.Please post back with the following and someone can walk you through enabling it on your system.Operating System:WebServer (i.e. Apache2):Bundle If Applicable (
i.e. WAMP, XAMPP, etc..):On 8/26/06, bingo [EMAIL PROTECTED] wrote:
hi,I have two questions regarding the setup1. I have downloaded CakePHP and placed the cake folder within thehtdocs folder i.e. my setup is as follows/htdocs/cake/cake /htdocs/cake/app
But when I go to http://localhost/cakeI am able to see the cakePHP page but not its style. Even the CakePHPicon is missing.where I am making a mistake ?
2. I created a new application 'elearning' using the bake.php script.It create a new folder for my application and it contains model,controller, view folder in it. But when I created my models andcontroller using the bake script, it placed them inside the 'app'
folder. I am not sure whether that's the right place or not. If it is,then what's the use of 'elearning' folder that was created by the bakescript.Looking forward for commentsRegards
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake PHP group.  To post to this group, send email to cake-php@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/cake-php  -~--~~~~--~~--~--~---


Re: setup problem

2006-08-26 Thread bingo

Hi John,

Thanks for the hint. After google search on cakephp xampp
mod_rewrite, I got referred to
http://wiki.cakephp.org/docs:mod_rewrite.

Now I able to get stylesheet working.

But the other question still persist. I baked an application
'elearning' using bake.php script. It created a folder 'elearning' and
modules, controller, and view folder within the 'elearning' folder. But
when I create modules and controller using bake.php, they are created
within app folder. Do I need to copy modules and controller from there
to my elearning folder ?

thanks for the help
Regards


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: setup problem

2006-08-26 Thread John Zimmerman [gmail]
AFAIK bake.php will only operate on the /app folder structure.i.e. /app/controllers, /app/models, /app/views/controller_nameSo if my controller is called 'posts' and my model is called 'post' and I have the default actions 'add', 'view', 'edit', and 'delete' the 
bake.php script would generate the following files and nothing more.../app/controllers/posts_controller.php/app/models/post.php/app/views/posts/add.thtml/app/views/posts/edit.thtml/app/views/posts/view.thtml
/app/views/posts/delete.thtmlIf you are developing a plugin you will have to generate these with bake.php in the app directory and then move the files generated into the plugin structure.
On 8/26/06, bingo [EMAIL PROTECTED] wrote:
Hi John,Thanks for the hint. After google search on cakephp xamppmod_rewrite, I got referred tohttp://wiki.cakephp.org/docs:mod_rewrite
.Now I able to get stylesheet working.But the other question still persist. I baked an application'elearning' using bake.php script. It created a folder 'elearning' andmodules, controller, and view folder within the 'elearning' folder. But
when I create modules and controller using bake.php, they are createdwithin app folder. Do I need to copy modules and controller from thereto my elearning folder ?thanks for the helpRegards

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake PHP group.  To post to this group, send email to cake-php@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/cake-php  -~--~~~~--~~--~--~---


Re: setup problem

2006-08-26 Thread bingo

Hi John,

Can you tell me then what is the use of creating a 'elearning' and
subsequent 'elearning/models', 'elearning/view' etc folder. Also, thus
it mean that when I am creating any view or stylesheet, all of this
will go in app folder and nothing in 'elearing' folder

Regard


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: setup problem

2006-08-26 Thread John Zimmerman [gmail]
Please post back with the paths relative to your cake installation. It sounds like you are either confusing the way plugins are structured with the way a full application is structured or are trying to do things 'non-standard'.
Normally you would develop your whole application in /app and develop your plugins in /app/plugins.A plugin has the structure of a mini-application.So you should not really have a folder called 'elearning' where you are building your application unless you are developing a plugin.
If you want to rename the /app folder to elearning you can, but then you have to modify values in /.htaccess and /index.php to read from the new folder. I wouldn't recommend doing this because any changes you make outside of the /app directory will be overwritten when you upgrade to the next release of cake.
bake.php will put the files in the right places.So questions from hereAre you developing a plugin?Do you have a reason not to develop your application in the location where 
bake.php puts the files?On 8/26/06, bingo [EMAIL PROTECTED] wrote:
Hi John,Can you tell me then what is the use of creating a 'elearning' andsubsequent 'elearning/models', 'elearning/view' etc folder. Also, thusit mean that when I am creating any view or stylesheet, all of this
will go in app folder and nothing in 'elearing' folderRegard

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake PHP group.  To post to this group, send email to cake-php@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/cake-php  -~--~~~~--~~--~--~---


Re: setup problem

2006-08-26 Thread bingo

Hi John

1. I am not developing a plugin
2. No. I was just trying to use bake.php script from command line and
it created a elearning folder.

I used XAMPP to install Apache, PHP, and MySQL. Here is the current
folder structure of CakePHP

1. D:\xampp\xampp\htdocs\cake
   |-app
  |--- models

|--user.php

|--lession.php
  |--- controller

|--users_controller.php

|--lession_controller.php
  |--- view
   |-cake
   |---\
   |---\
   |- elearning
   |--- model
   |--- controller
   |--- view
   
   Thanks


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: setup problem

2006-08-26 Thread John Zimmerman [gmail]
That is odd. Everything in the elearning folder should have been created in the app folder.If you merge your app folder and your elearning folder you should be good to go.I would try running the bake.php script one more time as well to see where it is creating the files for sure. Maybe the mod_rewrite setting was interfering?
I have only used bake.php on unix/linux systems and the generated files end up in the /app folder.Anyway, see if that helps.On 8/26/06, bingo
 [EMAIL PROTECTED] wrote:Hi John
1. I am not developing a plugin2. No. I was just trying to use bake.php script from command line andit created a elearning folder.I used XAMPP to install Apache, PHP, and MySQL. Here is the current
folder structure of CakePHP1. D:\xampp\xampp\htdocs\cake |-app|--- models|--user.php
|--lession.php|--- controller|--users_controller.php|--lession_controller.php|--- view
 |-cake |---\ |---\ |- elearning
 |--- model |--- controller |--- view Thanks

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake PHP group.  To post to this group, send email to cake-php@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/cake-php  -~--~~~~--~~--~--~---


Re: setup problem

2006-08-26 Thread bingo

Hi John,

I think there is some miscommunication. Sorry If I am confusing you.
Actually, everything is created within the application (app) folder.

What I am not understanding is then why the bake script created the
elearning folder. If all the models, controllers and view are to be
stored in app folder, then there is no need for elearning folder.

Regards


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: setup problem

2006-08-26 Thread John Zimmerman [gmail]
Yeah, that is why I wasn't getting it.The elearning folder should not have been created.On 8/26/06, bingo 
[EMAIL PROTECTED] wrote:Hi John,I think there is some miscommunication. Sorry If I am confusing you.
Actually, everything is created within the application (app) folder.What I am not understanding is then why the bake script created theelearning folder. If all the models, controllers and view are to be
stored in app folder, then there is no need for elearning folder.Regards

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake PHP group.  To post to this group, send email to cake-php@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/cake-php  -~--~~~~--~~--~--~---