Re: CakePHP 2.6 Controllers with New Folder Structure

2015-02-09 Thread Shiv Modi
Hi John,

I tried this solution as well but not working. Any other suggestion?

Regards,
Shiv

On Friday, 6 February 2015 01:36:41 UTC+5:30, John Andersen wrote:

 Please always reply to the group - I seldom checks my mailbox :)

 I looked in the CakePHP book and it did not show any examples of passing 
 all the different paths for different classes, so lets try this:

 App::build(array('Model' = array(APP . 'Model' . DS, APP . 'Model' . DS . 
 'Customers' . DS, APP . 'Model' . DS. 'Products' . DS)));
 App::build(array('Controller' = array(APP . 'Controller' . DS, APP. 
 'Controller' . DS. 'Customers' . DS, APP . 'Controller' . DS . 'Products' . 
 DS)));

 and so on. That should set it up with the full path as the book says it 
 needs. Please try and report back :)
 Enjoy, John


 On 5 February 2015 at 21:15, Shiv Modi shiv...@gmail.com wrote:
 Hi John,

 I tried that one as well but not getting desired results.

 Regards,
 Shiv

 On Thursday, 5 February 2015 20:05:01 UTC+2, John Andersen wrote:

 You are trying to create an array that contains two entries with the same 
 index - only the last entry with the same index will be used.

 Change your array to look like this - showing only the Model entry as an 
 example:
 'Model' = array('/Model/', '/Model/Customers/', '/Model/Products/'),

 Do the same for Controller and View entries.

 Enjoy, John

 On Thursday, 5 February 2015 12:24:41 UTC+2, Shiv Modi wrote:

 Hi,

 I am using CakePHP 2.6 and want to make two sub-folders, Products and 
 Customers in app/Controller , Model and View folders. So that I can 
 categories my product and customer controllers for proper understanding. To 
 implement and access the same I done some changes in bootstrap as follow:

 App::build(array(
   'Model' = array('/Model/', 
 '/Model/Products/'),
  
   'Controller'= array('/Controller/', 
 '/Controller/Products/'),
  
   'View'  = array('/View/', '/View/Products/'),
   
   ));

 It worked well.

 But when i tried to add the entries for Customers controllers also it 
 will get overwritten by the other one: 

 App::build(array(
   'Model' = array('/Model/', 
 '/Model/Customers/'),
   'Model' = array('/Model/', 
 '/Model/Products/'),
   'Controller'= array('/Controller/', 
 '/Controller/Customers/'),
   'Controller'= array('/Controller/', 
 '/Controller/Products/'),
   'View'  = array('/View/', '/View/Customers/'),
   'View'  = array('/View/', '/View/Products/'),
   
   ));

 It's not working proper. Only Products section is working fine not 
 Customers one because keys are same and it's getting overwritten. How I can 
 fix this problem?



-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


CakePHP 2.6 Controllers with New Folder Structure

2015-02-05 Thread Shiv Modi
Hi,

I am using CakePHP 2.6 and want to make two sub-folders, Products and 
Customers in app/Controller , Model and View folders. So that I can 
categories my product and customer controllers for proper understanding. To 
implement and access the same I done some changes in bootstrap as follow:

App::build(array(
  'Model' = array('/Model/', '/Model/Products/'),
 
  'Controller'= array('/Controller/', 
'/Controller/Products/'),
 
  'View'  = array('/View/', '/View/Products/'),
  
  ));

It worked well.

But when i tried to add the entries for Customers controllers also it will 
get overwritten by the other one: 

App::build(array(
  'Model' = array('/Model/', '/Model/Customers/'),
  'Model' = array('/Model/', '/Model/Products/'),
  'Controller'= array('/Controller/', 
'/Controller/Customers/'),
  'Controller'= array('/Controller/', 
'/Controller/Products/'),
  'View'  = array('/View/', '/View/Customers/'),
  'View'  = array('/View/', '/View/Products/'),
  
  ));

It's not working proper. Only Products section is working fine not 
Customers one because keys are same and it's getting overwritten. How I can 
fix this problem?

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: CakePHP 2.6 Controllers with New Folder Structure

2015-02-05 Thread John Andersen
You are trying to create an array that contains two entries with the same 
index - only the last entry with the same index will be used.

Change your array to look like this - showing only the Model entry as an 
example:
'Model' = array('/Model/', '/Model/Customers/', '/Model/Products/'),

Do the same for Controller and View entries.

Enjoy, John

On Thursday, 5 February 2015 12:24:41 UTC+2, Shiv Modi wrote:

 Hi,

 I am using CakePHP 2.6 and want to make two sub-folders, Products and 
 Customers in app/Controller , Model and View folders. So that I can 
 categories my product and customer controllers for proper understanding. To 
 implement and access the same I done some changes in bootstrap as follow:

 App::build(array(
   'Model' = array('/Model/', '/Model/Products/'),
  
   'Controller'= array('/Controller/', 
 '/Controller/Products/'),
  
   'View'  = array('/View/', '/View/Products/'),
   
   ));

 It worked well.

 But when i tried to add the entries for Customers controllers also it will 
 get overwritten by the other one: 

 App::build(array(
   'Model' = array('/Model/', '/Model/Customers/'),
   'Model' = array('/Model/', '/Model/Products/'),
   'Controller'= array('/Controller/', 
 '/Controller/Customers/'),
   'Controller'= array('/Controller/', 
 '/Controller/Products/'),
   'View'  = array('/View/', '/View/Customers/'),
   'View'  = array('/View/', '/View/Products/'),
   
   ));

 It's not working proper. Only Products section is working fine not 
 Customers one because keys are same and it's getting overwritten. How I can 
 fix this problem?


-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: CakePHP 2.6 Controllers with New Folder Structure

2015-02-05 Thread John Andersen
Please always reply to the group - I seldom checks my mailbox :)

I looked in the CakePHP book and it did not show any examples of passing 
all the different paths for different classes, so lets try this:

App::build(array('Model' = array(APP . 'Model' . DS, APP . 'Model' . DS . 
'Customers' . DS, APP . 'Model' . DS. 'Products' . DS)));
App::build(array('Controller' = array(APP . 'Controller' . DS, APP. 
'Controller' . DS. 'Customers' . DS, APP . 'Controller' . DS . 'Products' . 
DS)));

and so on. That should set it up with the full path as the book says it 
needs. Please try and report back :)
Enjoy, John


On 5 February 2015 at 21:15, Shiv Modi shiv...@gmail.com 
shiv@gmail.com wrote:
Hi John,

I tried that one as well but not getting desired results.

Regards,
Shiv

On Thursday, 5 February 2015 20:05:01 UTC+2, John Andersen wrote:

 You are trying to create an array that contains two entries with the same 
 index - only the last entry with the same index will be used.

 Change your array to look like this - showing only the Model entry as an 
 example:
 'Model' = array('/Model/', '/Model/Customers/', '/Model/Products/'),

 Do the same for Controller and View entries.

 Enjoy, John

 On Thursday, 5 February 2015 12:24:41 UTC+2, Shiv Modi wrote:

 Hi,

 I am using CakePHP 2.6 and want to make two sub-folders, Products and 
 Customers in app/Controller , Model and View folders. So that I can 
 categories my product and customer controllers for proper understanding. To 
 implement and access the same I done some changes in bootstrap as follow:

 App::build(array(
   'Model' = array('/Model/', '/Model/Products/'),
  
   'Controller'= array('/Controller/', 
 '/Controller/Products/'),
  
   'View'  = array('/View/', '/View/Products/'),
   
   ));

 It worked well.

 But when i tried to add the entries for Customers controllers also it 
 will get overwritten by the other one: 

 App::build(array(
   'Model' = array('/Model/', 
 '/Model/Customers/'),
   'Model' = array('/Model/', '/Model/Products/'),
   'Controller'= array('/Controller/', 
 '/Controller/Customers/'),
   'Controller'= array('/Controller/', 
 '/Controller/Products/'),
   'View'  = array('/View/', '/View/Customers/'),
   'View'  = array('/View/', '/View/Products/'),
   
   ));

 It's not working proper. Only Products section is working fine not 
 Customers one because keys are same and it's getting overwritten. How I can 
 fix this problem?



-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


CakePHP custom folder structure

2014-07-24 Thread Sunil Shah
Hi I am having a problem in understanding cakephp. I do not know what is 
this git repository. Here is the link: https://github.com/cakephp/app. I am 
a developer and thinking of turning to cakephp big time. And I am 
interested in making models,controllers and views in src folder as in the 
above link. But I do not know how to do it.

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: CakePHP custom folder structure

2014-07-24 Thread José Lorenzo
That is the template repository for CakePHP 3.0, you should use this one 
instead https://github.com/cakephp/cakephp

On Thursday, July 24, 2014 2:52:09 AM UTC+2, Sunil Shah wrote:

 Hi I am having a problem in understanding cakephp. I do not know what is 
 this git repository. Here is the link: https://github.com/cakephp/app. I 
 am a developer and thinking of turning to cakephp big time. And I am 
 interested in making models,controllers and views in src folder as in the 
 above link. But I do not know how to do it.


-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: CakePHP custom folder structure

2014-07-24 Thread Dr. Tarique Sani
If you are starting then start from
http://book.cakephp.org/3.0/en/index.html

T


On Thu, Jul 24, 2014 at 6:22 AM, Sunil Shah sunil.shah2...@gmail.com
wrote:

 Hi I am having a problem in understanding cakephp. I do not know what is
 this git repository. Here is the link: https://github.com/cakephp/app. I
 am a developer and thinking of turning to cakephp big time. And I am
 interested in making models,controllers and views in src folder as in the
 above link. But I do not know how to do it.

 --
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 ---
 You received this message because you are subscribed to the Google Groups
 CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to cake-php+unsubscr...@googlegroups.com.
 To post to this group, send email to cake-php@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.




-- 
=
The Conference Schedule Creator : http://shdlr.com

PHP for E-Biz : http://sanisoft.com
=

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


CakePHP 2 Folder Structure

2012-02-27 Thread Jordy van Kuijk
Hi all,

I'm working on transferring an existing PHP application to the CakePHP
framework.
I've baked all my models, controllers and views.

My folder structure looks like this:

ProjectName
   - app
   - lib
   - projectname
  - Config
  - Console
  - Controller
  - Lib
  - Locale
  - Model
  - Plugin
  - Test
  - tmp
  - Vendor
  - View
  - webroot
   - plugins
   - vendors
   - index.php

When I point my local server to the projectname folder, all works
fine.
I would like to let projectname work independently.
The Lib folder, for example, is empty, and the actual lib files are
stored in lib.

Is there a way to fix this?

Thanks in advance.

Jordy

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: CakePHP 2 Folder Structure

2012-02-27 Thread thatsgreat2345
I'm not sure what you're asking, but it sounds like you want to move
it somewhere else. You can do this by moving your webroot, and then
modifying your webroot index.php file and pointing it to where cake is
at (lib) and then also providing it the name of your application
folder (projectname)

On Feb 27, 9:30 am, Jordy van Kuijk jvank...@gmail.com wrote:
 Hi all,

 I'm working on transferring an existing PHP application to the CakePHP
 framework.
 I've baked all my models, controllers and views.

 My folder structure looks like this:

 ProjectName
    - app
    - lib
    - projectname
       - Config
       - Console
       - Controller
       - Lib
       - Locale
       - Model
       - Plugin
       - Test
       - tmp
       - Vendor
       - View
       - webroot
    - plugins
    - vendors
    - index.php

 When I point my local server to the projectname folder, all works
 fine.
 I would like to let projectname work independently.
 The Lib folder, for example, is empty, and the actual lib files are
 stored in lib.

 Is there a way to fix this?

 Thanks in advance.

 Jordy

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: CakePHP 2 Folder Structure

2012-02-27 Thread Jordy van Kuijk
Hi, thanks for responding.

We're working with a team on this project. Everyone has his/her own
working copy of the folder structure I gave above.
Ideally, the situation would be in which every user would have his/her
copy of the projectname folder only, and let the contents of
ProjectName (without projectname) rest somewhere on our project
server.

Is it possible to define the DS, ROOT, APP_DIR to be a somewhere on
server (for example: http://server.com/ProjectName/)?

I hope you understand what I mean.

On Feb 27, 7:16 pm, thatsgreat2345 thatsgreat2...@gmail.com wrote:
 I'm not sure what you're asking, but it sounds like you want to move
 it somewhere else. You can do this by moving your webroot, and then
 modifying your webroot index.php file and pointing it to where cake is
 at (lib) and then also providing it the name of your application
 folder (projectname)

 On Feb 27, 9:30 am, Jordy van Kuijk jvank...@gmail.com wrote:







  Hi all,

  I'm working on transferring an existing PHP application to the CakePHP
  framework.
  I've baked all my models, controllers and views.

  My folder structure looks like this:

  ProjectName
     - app
     - lib
     - projectname
        - Config
        - Console
        - Controller
        - Lib
        - Locale
        - Model
        - Plugin
        - Test
        - tmp
        - Vendor
        - View
        - webroot
     - plugins
     - vendors
     - index.php

  When I point my local server to the projectname folder, all works
  fine.
  I would like to let projectname work independently.
  The Lib folder, for example, is empty, and the actual lib files are
  stored in lib.

  Is there a way to fix this?

  Thanks in advance.

  Jordy

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: CakePHP 2 Folder Structure

2012-02-27 Thread thatsgreat2345
So I would recommend having one location of Cake on your root, then
people can just create new applications(or projects) inside this
directory.
So you can access them from example.com/projectname you just simply
move your webroot out of your app(project) folder and rename it to
ProjectName.
Then in your new ProjectName folder(webroot) you can modify the
index.php, to something like what is listed below. This is how I
generally do it so that I can just modify what APP_DIR
and then toss all my applications inside a cake folder that is
chilling on my root. That way only webroot is exposed.
The folder structure of my cake folder is
cake
-lib
-plugins
-vendors
-ProjectName
-ProjectName2
-SomeOtherProj

Then my webroot I can move somewhere and then you just need to add the
appropriate amount of dirnames to get back to your root, and then
specify the folder that you are using, and in my case it is cake.
if (!defined('ROOT')) {
define('ROOT', dirname(dirname(__FILE__)) . DS . 'cake');
}
/**
 * The actual directory name for the app.
 *
 */
if (!defined('APP_DIR')) {
define('APP_DIR', 'ProjectName');
}

On Feb 27, 11:06 am, Jordy van Kuijk jvank...@gmail.com wrote:
 Hi, thanks for responding.

 We're working with a team on this project. Everyone has his/her own
 working copy of the folder structure I gave above.
 Ideally, the situation would be in which every user would have his/her
 copy of the projectname folder only, and let the contents of
 ProjectName (without projectname) rest somewhere on our project
 server.

 Is it possible to define the DS, ROOT, APP_DIR to be a somewhere on
 server (for example:http://server.com/ProjectName/)?

 I hope you understand what I mean.

 On Feb 27, 7:16 pm, thatsgreat2345 thatsgreat2...@gmail.com wrote:







  I'm not sure what you're asking, but it sounds like you want to move
  it somewhere else. You can do this by moving your webroot, and then
  modifying your webroot index.php file and pointing it to where cake is
  at (lib) and then also providing it the name of your application
  folder (projectname)

  On Feb 27, 9:30 am, Jordy van Kuijk jvank...@gmail.com wrote:

   Hi all,

   I'm working on transferring an existing PHP application to the CakePHP
   framework.
   I've baked all my models, controllers and views.

   My folder structure looks like this:

   ProjectName
      - app
      - lib
      - projectname
         - Config
         - Console
         - Controller
         - Lib
         - Locale
         - Model
         - Plugin
         - Test
         - tmp
         - Vendor
         - View
         - webroot
      - plugins
      - vendors
      - index.php

   When I point my local server to the projectname folder, all works
   fine.
   I would like to let projectname work independently.
   The Lib folder, for example, is empty, and the actual lib files are
   stored in lib.

   Is there a way to fix this?

   Thanks in advance.

   Jordy

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Folder structure: why are there so many webroot or vendors folders?

2010-09-14 Thread Joshua Muheim
Thanks for the information!

On Fri, Sep 10, 2010 at 7:12 PM, Miles J mileswjohn...@gmail.com wrote:
 Vendors within an app are specific to that app.
 Vendors outside of the app apply to all apps.

 The same goes for plugins.

 On Sep 10, 3:49 am, euromark dereurom...@googlemail.com wrote:
 what are the advantages of an apartment-sharing community? :)
 well same goes for apps and their cake and vendors folders

 On 10 Sep., 11:25, Joshua Muheim psybea...@gmail.com wrote:

  *thinking*... didn't help ;-)

  On Fri, Sep 10, 2010 at 11:03 AM, AD7six andydawso...@gmail.com wrote:

   On Sep 10, 10:42 am, psybear83 psybea...@gmail.com wrote:
   Oh, my fault, there's only a webroot folder under app!

   But still, what about the two vendors folders? :-)

   Build 2 apps (root/app, root/app2, root/cake) and think about it ;)

   Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp others 
   with their CakePHP related questions.

   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 
   athttp://groups.google.com/group/cake-php?hl=en

 Check out the new CakePHP Questions site http://cakeqs.org and help others 
 with their CakePHP related questions.

 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


Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


Folder structure: why are there so many webroot or vendors folders?

2010-09-10 Thread psybear83
Hi everybody

I'm trying to get the sense out of the folder structure of the CakePHP
package.

I understand that the cake folder contains the framework and I
shouldn't change anything there.

But then, why do I have a vendors and webroot directory in my root AND
a vendors and webroot directory under app? Where should I place what?

Thanks
Josh

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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: Folder structure: why are there so many webroot or vendors folders?

2010-09-10 Thread psybear83
Oh, my fault, there's only a webroot folder under app!

But still, what about the two vendors folders? :-)

On Sep 10, 10:36 am, psybear83 psybea...@gmail.com wrote:
 Hi everybody

 I'm trying to get the sense out of the folder structure of the CakePHP
 package.

 I understand that the cake folder contains the framework and I
 shouldn't change anything there.

 But then, why do I have a vendors and webroot directory in my root AND
 a vendors and webroot directory under app? Where should I place what?

 Thanks
 Josh

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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: Folder structure: why are there so many webroot or vendors folders?

2010-09-10 Thread AD7six


On Sep 10, 10:42 am, psybear83 psybea...@gmail.com wrote:
 Oh, my fault, there's only a webroot folder under app!

 But still, what about the two vendors folders? :-)

Build 2 apps (root/app, root/app2, root/cake) and think about it ;)

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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: Folder structure: why are there so many webroot or vendors folders?

2010-09-10 Thread Joshua Muheim
*thinking*... didn't help ;-)

On Fri, Sep 10, 2010 at 11:03 AM, AD7six andydawso...@gmail.com wrote:


 On Sep 10, 10:42 am, psybear83 psybea...@gmail.com wrote:
 Oh, my fault, there's only a webroot folder under app!

 But still, what about the two vendors folders? :-)

 Build 2 apps (root/app, root/app2, root/cake) and think about it ;)

 Check out the new CakePHP Questions site http://cakeqs.org and help others 
 with their CakePHP related questions.

 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


Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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: Folder structure: why are there so many webroot or vendors folders?

2010-09-10 Thread euromark
what are the advantages of an apartment-sharing community? :)
well same goes for apps and their cake and vendors folders


On 10 Sep., 11:25, Joshua Muheim psybea...@gmail.com wrote:
 *thinking*... didn't help ;-)

 On Fri, Sep 10, 2010 at 11:03 AM, AD7six andydawso...@gmail.com wrote:

  On Sep 10, 10:42 am, psybear83 psybea...@gmail.com wrote:
  Oh, my fault, there's only a webroot folder under app!

  But still, what about the two vendors folders? :-)

  Build 2 apps (root/app, root/app2, root/cake) and think about it ;)

  Check out the new CakePHP Questions sitehttp://cakeqs.organd help others 
  with their CakePHP related questions.

  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 
  athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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: Folder structure: why are there so many webroot or vendors folders?

2010-09-10 Thread Miles J
Vendors within an app are specific to that app.
Vendors outside of the app apply to all apps.

The same goes for plugins.

On Sep 10, 3:49 am, euromark dereurom...@googlemail.com wrote:
 what are the advantages of an apartment-sharing community? :)
 well same goes for apps and their cake and vendors folders

 On 10 Sep., 11:25, Joshua Muheim psybea...@gmail.com wrote:

  *thinking*... didn't help ;-)

  On Fri, Sep 10, 2010 at 11:03 AM, AD7six andydawso...@gmail.com wrote:

   On Sep 10, 10:42 am, psybear83 psybea...@gmail.com wrote:
   Oh, my fault, there's only a webroot folder under app!

   But still, what about the two vendors folders? :-)

   Build 2 apps (root/app, root/app2, root/cake) and think about it ;)

   Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp others 
   with their CakePHP related questions.

   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 
   athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


Folder structure

2009-05-10 Thread Mateo San Román

One thing I don't like of CakePHP is the way the folder structure is
done. When working on one particular resource, you have to navigate on
three different folders: (models, controllers, and views/resource). If
the folder structure were resource-oriented, one could have a folder
for every resource, and contain the model, controller and view files.
You can even use this configuration to give Cake some mtadata about
the resource (just a thought).


--~--~-~--~~~---~--~~
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: cPanel folder structure issue with .htaccess solution

2007-05-11 Thread tekcorap

your .htacces file must be this :

   RewriteRule^$ /test/app/webroot/[L]
   RewriteRule(.*) /test/app/webroot/$1 [L]

On May 11, 5:38 am, laptop [EMAIL PROTECTED] wrote:
 hi all,

 was just struggling to figure out how to do this in a shared
 environment with cPanel.

 subdomain files are placed inside a directory inside where the www
 domain files are located this means that the subdomain
 test.example.com will be availablewww.example.com/test

 placing a .htaccess file for cake to work meant that it applied to
 test.example.com and i was getting server errors.

 following is a code snipped which allows you to restrict to just that
 database

 RewriteCond %{HTTP_HOST} ^www\.novanate\.com$
 RewriteRule^$ app/webroot/[L]
 RewriteCond %{HTTP_HOST} ^www\.novanate\.com$
 RewriteRule(.*) app/webroot/$1 [L]


--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



cPanel folder structure issue with .htaccess solution

2007-05-10 Thread laptop

hi all,

was just struggling to figure out how to do this in a shared
environment with cPanel.

subdomain files are placed inside a directory inside where the www
domain files are located this means that the subdomain
test.example.com will be available www.example.com/test

placing a .htaccess file for cake to work meant that it applied to
test.example.com and i was getting server errors.

following is a code snipped which allows you to restrict to just that
database

RewriteCond %{HTTP_HOST} ^www\.novanate\.com$
RewriteRule^$ app/webroot/[L]
RewriteCond %{HTTP_HOST} ^www\.novanate\.com$
RewriteRule(.*) app/webroot/$1 [L]


--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---