# |
Aug 9th 2008, 20:58 |
JD__ |
well im starting a REALLY big project, so I dont want to use stuff that is depricated |
# |
Aug 9th 2008, 20:58 |
markstory |
app::import doesn't build objects just loads classes. |
# |
Aug 9th 2008, 20:58 |
JD__ |
for example: http://bin.cakephp.org/view/1336178153 |
# |
Aug 9th 2008, 20:58 |
markstory |
JD__: what are you trying to do? |
# |
Aug 9th 2008, 20:55 |
JD__ |
is it not working verywhere or am i using it wrong? |
# |
Aug 9th 2008, 20:55 |
JD__ |
Ok, what is the deal with App::import()? from what I have read, its how we are supposed to include compoents, models etc, but none of the articles i have found really explain where to use it. I have made beforeFilter() in my app_controller.php, and in Parent::beforeFilter() in other controllers where i need things liek email. |
# |
Aug 9th 2008, 20:51 |
Spoom |
heading out, cyas |
# |
Aug 9th 2008, 20:51 |
Spoom |
anyway |
# |
Aug 9th 2008, 20:51 |
Spoom |
maybe i'll try moving it to my personal server with the db and see |
# |
Aug 9th 2008, 20:50 |
Spoom |
it could be the server somewhere, unfortunately i can't mess with it too much as i don't have root |
# |
Aug 9th 2008, 20:50 |
kalileo |
) |
# |
Aug 9th 2008, 20:50 |
Spoom |
i really appreciate the help |
# |
Aug 9th 2008, 20:50 |
kalileo |
may be mod rewrite or router.php messed up |
# |
Aug 9th 2008, 20:50 |
Spoom |
i'll likely be back later tonight to try to fix this |
# |
Aug 9th 2008, 20:50 |
Spoom |
thanks very much for your help folks :^) |
# |
Aug 9th 2008, 20:50 |
Spoom |
anyway, i have to go |
# |
Aug 9th 2008, 20:49 |
Spoom |
this is what i've been referring to |
# |
Aug 9th 2008, 20:48 |
Spoom |
yes |
# |
Aug 9th 2008, 20:48 |
kalileo |
"You don't have permission to access /questionnaire/questionnaire/questions/index/page:2 on this server." |
# |
Aug 9th 2008, 20:47 |
kalileo |
in the cake page layout a cake generated error message |
# |
Aug 9th 2008, 20:47 |
Spoom |
? |
# |
Aug 9th 2008, 20:47 |
kalileo |
nice cake error |
# |
Aug 9th 2008, 20:46 |
Spoom |
ajax* |
# |
Aug 9th 2008, 20:46 |
kalileo |
oh I see |
# |
Aug 9th 2008, 20:46 |
Spoom |
obviously the non-ajas links work :^) |
# |
Aug 9th 2008, 20:46 |
Spoom |
like 2 or next |
# |
Aug 9th 2008, 20:46 |
kalileo |
works |
# |
Aug 9th 2008, 20:46 |
Spoom |
a page link |
# |
Aug 9th 2008, 20:46 |
Spoom |
no |
# |
Aug 9th 2008, 20:46 |
kalileo |
such as "view"? |
# |
Aug 9th 2008, 20:45 |
Spoom |
and then click a link in the pages |
# |
Aug 9th 2008, 20:45 |
Spoom |
try now |
# |
Aug 9th 2008, 20:44 |
Spoom |
i was just debugging stuff trying to fix it |
# |
Aug 9th 2008, 20:44 |
Spoom |
yeah, one sec |
# |
Aug 9th 2008, 20:44 |
kalileo |
Spoom: going to the page you just pointed to I get a "app/controllers/questions_controller.php (line 12)" message with the cake debug output below |
# |
Aug 9th 2008, 20:44 |
Spoom |
71.74.111.184 - - [09/Aug/2008:20:55:13 -0400] "POST /questionnaire/questionnaire/questions/index/page:2 HTTP/1.1" 403 - "http://jamiearseneault.com/questionnaire/questionnaire/questions/index/page:1" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9) Gecko/2008062009 (Gentoo) Firefox/3.0" |
# |
Aug 9th 2008, 20:43 |
Spoom |
sec |
# |
Aug 9th 2008, 20:43 |
Spoom |
access log on the other hand... one se |
# |
Aug 9th 2008, 20:42 |
Spoom |
error log shows [Sat Aug 9 21:49:16 2008] [error] [client 71.74.111.184] File does not exist: /home/jamiears/public_html/403.shtml which just means it's not finding the custom error page it's looking for (not a fatal thing) |
# |
Aug 9th 2008, 20:42 |
JD__ |
ah i see |
# |
Aug 9th 2008, 20:42 |
Spoom |
hehe thanks |