# |
Sep 23rd 2011, 13:52 |
bhp |
Don't pay attention to itâ?¦ ;o] |
# |
Sep 23rd 2011, 13:52 |
dogmatic69 |
no, it's annoying |
# |
Sep 23rd 2011, 13:52 |
bhp |
It's my digital signature ;o] |
# |
Sep 23rd 2011, 13:52 |
bhp |
Hahaha |
# |
Sep 23rd 2011, 13:51 |
dogmatic69 |
bhp: http://irc.cakephp.org/search/cakephp/%3Bo%5D |
# |
Sep 23rd 2011, 13:51 |
ADmad |
bioiq: if you can't read/follow error messages you should probably look for an alternate profession |
# |
Sep 23rd 2011, 13:50 |
bhp |
;o] |
# |
Sep 23rd 2011, 13:50 |
dogmatic69 |
the joys of conventions over configuration |
# |
Sep 23rd 2011, 13:50 |
dogmatic69 |
Bjorns: cake builds models on the fly |
# |
Sep 23rd 2011, 13:49 |
Bjorns |
dogmatic69: ??? How does controllers then interactt with DB if there are no models? |
# |
Sep 23rd 2011, 13:49 |
bioiq |
http://bin.cakephp.org/view/1687118926 |
# |
Sep 23rd 2011, 13:49 |
bioiq |
ADmad, i don't understant you... BTW here is the link with the errors I get by giving the command 'cake bake all' |
# |
Sep 23rd 2011, 13:49 |
Hyra |
Is it at all possible to "import" a task from within a shell without predefining it? as in .. not having var $tasks = array() .. but some sort of App::import('Task', 'Whatever'); (which doesnt work ;) |
# |
Sep 23rd 2011, 13:48 |
dogmatic69 |
Bjorns: its not necessary to create models at all in cake |
# |
Sep 23rd 2011, 13:48 |
Bjorns |
Is it necessary to create models of linktables? |
# |
Sep 23rd 2011, 13:48 |
bhp |
I thought my name was rare, Bjorns ;o] |
# |
Sep 23rd 2011, 13:48 |
dogmatic69 |
ADmad: and the second line repeats it, in case you miss the first one... |
# |
Sep 23rd 2011, 13:47 |
Bjorns |
Hey. |
# |
Sep 23rd 2011, 13:47 |
ADmad |
bioiq: the very first line of the stack trace tells you what the problem is |
# |
Sep 23rd 2011, 13:47 |
bhp |
Alright, will get to it, thanks for the help dogmatic69 |
# |
Sep 23rd 2011, 13:47 |
bhp |
Yeah, that's why I was asking ;o] |
# |
Sep 23rd 2011, 13:46 |
dogmatic69 |
if you have transactions in your controller you are doing it wrong |
# |
Sep 23rd 2011, 13:46 |
bhp |
Doh! Of course ;o] |
# |
Sep 23rd 2011, 13:46 |
dogmatic69 |
bhp: no, you should be doing your save in a model |
# |
Sep 23rd 2011, 13:46 |
dogmatic69 |
!tell bioiq about bin |
# |
Sep 23rd 2011, 13:45 |
bioiq |
#9 {main} |
# |
Sep 23rd 2011, 13:45 |
bhp |
dogmatic69; What's that? I can handle transactions from within the controller? |
# |
Sep 23rd 2011, 13:45 |
bioiq |
#8 /usr/share/php/cake/lib/Cake/Console/cake.php(24): ShellDispatcher::run(Array) |
# |
Sep 23rd 2011, 13:45 |
bioiq |
#7 /usr/share/php/cake/lib/Cake/Console/ShellDispatcher.php(69): ShellDispatcher->dispatch() |
# |
Sep 23rd 2011, 13:45 |
bioiq |
#6 /usr/share/php/cake/lib/Cake/Console/ShellDispatcher.php(176): Shell->runCommand('all', Array) |
# |
Sep 23rd 2011, 13:45 |
bioiq |
#5 /usr/share/php/cake/lib/Cake/Console/Shell.php(371): BakeShell->all() |
# |
Sep 23rd 2011, 13:45 |
bioiq |
#4 /usr/share/php/cake/lib/Cake/Console/Command/BakeShell.php(143): ModelTask->getName('default') |
# |
Sep 23rd 2011, 13:45 |
bioiq |
#3 /usr/share/php/cake/lib/Cake/Console/Command/Task/ModelTask.php(861): ModelTask->listAll('default') |
# |
Sep 23rd 2011, 13:45 |
bioiq |
#2 /usr/share/php/cake/lib/Cake/Console/Command/Task/ModelTask.php(780): ModelTask->getAllTables('default') |
# |
Sep 23rd 2011, 13:45 |
bioiq |
#1 /usr/share/php/cake/lib/Cake/Console/Command/Task/ModelTask.php(835): ConnectionManager::getDataSource('default') |
# |
Sep 23rd 2011, 13:45 |
bioiq |
#0 /usr/share/php/cake/lib/Cake/Model/ConnectionManager.php(92): ConnectionManager::_getConnectionObject('default') |
# |
Sep 23rd 2011, 13:45 |
bioiq |
Error: The datasource configuration "default" was not found in database.php |
# |
Sep 23rd 2011, 13:45 |
bioiq |
Warning Error: include_once(): Failed opening '/var/www/Config/database.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in [/usr/share/php/cake/lib/Cake/Model/ConnectionManager.php, line 65] |
# |
Sep 23rd 2011, 13:45 |
bioiq |
Warning Error: include_once(/var/www/Config/database.php): failed to open stream: No such file or directory in [/usr/share/php/cake/lib/Cake/Model/ConnectionManager.php, line 65] |
# |
Sep 23rd 2011, 13:45 |
bhp |
better than nothing |
# |
Sep 23rd 2011, 13:45 |
dogmatic69 |
use transactions |