Domanda

Recentemente ho scaricato un sito torta da un server di vivere, e sto cercando di cuocere alcuni aspetti. Ma io sono sempre i file che non si trovano errori (anche se esistono), ma la struttura è diverso che l'out-of-box CakePHP download. Quindi mi chiedo se mi manca il punto su tutto questo, o c'è un modo semplice per registrare ciò che gli sguardi CLI in termini di percorsi - vale a dire la config / per uno schema ACL è quello che sto cercando di sgranocchiare fuori .. grazie per qualsiasi consiglio. Stato a questo per un po 'di tempo.

È stato utile?

Soluzione 2

Beh, io si sarebbe potuto fare qualcosa di totalmente zombie, ma ho deciso solo per ri-cuocere e copiare i miei file originali MVC alle nuove cartelle da forno (utilizzati nella nuova cartella dello schema di configurazione), ma il problema è ora risolto farlo.

Altri suggerimenti

Si potrebbe avere un po 'di fortuna guardando il file di configurazione paths.php. E 'in /cake/config/paths.php. Io non sono positivi come funziona, ma potrebbe portare nella giusta direzione.

Idea 1:

Perhaps this is too simple, but are you sure you are running bake correctly? You should setup a environment variable for bake, orrr type the full path of bake while you are in your app folder. There are more details here: http://book.cakephp.org/view/1106/The-CakePHP-Console

Note:

$ cd /my/cake/app_folder
$ ../cake/console/cake

That will open up your cake prompt and should also resolve missing paths.

Idea 2:
Missing paths in cake can also occur as a result of non-conventional filenames, classnames etc... even if your app is working other things may not like testing, tasks, or bake. Example: in plugins if you actually follow the standard and append model to the class name, you need to then have $uses in your controller. Testing also brakes as a result if everything isn't defined.

Idea 3:
I have changed the path for my cake location before in app/index.php and app/webroot/test.php perhaps you could do the same for bake in one of those files, but since it is in cake/console you may need to do it from somewhere in that folder. Before you modify they cake folder, I would make sure to fork cake, so that you can easily still pull updates without over writing your changes.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top