Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <blockquote> <p>... some controller classes have specific methods not present on the local version.</p> </blockquote> <p>You might also consider the option of setting up <a href="http://book.cakephp.org/view/916/Additional-Class-Paths" rel="nofollow">additional class paths</a> within each of your website applications. You can tell CakePHP to check other directories entirely for files missing from the current application. For example, you could have the following directory structure:</p> <pre><code>/app1 - a standard client's website application /app2 /app3 - a custom client's website application (with custom controller) /core - the core CMS application /cake </code></pre> <p>By adding the following to your <code>/appN/config/bootstrap.php</code> files, you are telling CakePHP to look for controllers in <code>/core/controllers</code> if it can't find one it's looking for in the current application.</p> <pre><code>App::build(array( 'controllers' =&gt; array(ROOT . DS . 'core' . DS . 'controllers' . DS), )); </code></pre> <p>This would, for example, allow you to put all your CMS controllers in <code>/core/controllers</code> and delete all your <code>/appN/controllers</code> directories. Only where a client needed a controller customized (ie. <code>/app3</code> above) would you create a controllers directory, copy the specific controller across and make modifications (adding methods and such).</p> <p>(This is the approach the developer of <a href="https://github.com/klevo/wildflower" rel="nofollow">Wildflower CMS</a> took - note the <code>/wildflower</code> directory.)</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload