# |
Sep 13th 2009, 17:39 |
guille1983 |
hello, I just read the acl section on the manual, it explains everything but it does not say how to protect a custom action, how to do that? |
# |
Sep 13th 2009, 17:36 |
unclezoot |
but if i dont, the js + css never get loaded |
# |
Sep 13th 2009, 17:36 |
unclezoot |
strange, if i use my plugin.helper in a view, the same call in the layout mysteriously starts working |
# |
Sep 13th 2009, 17:30 |
unclezoot |
so did i, but i dont know what the benefit is for string substitution in a bit of custom sql, which is what he was trying to do |
# |
Sep 13th 2009, 17:29 |
dogmatic69 |
) i knew there was a cake way |
# |
Sep 13th 2009, 17:29 |
Ephigenia |
does someone haas some experience with xcache? |
# |
Sep 13th 2009, 17:29 |
NoReGreT |
and it asked about db config even thought i configured them manually in database.php |
# |
Sep 13th 2009, 17:29 |
dogmatic69 |
unclezoot: # String::insert('My name is :name and I am :age years old.', array('name' => 'Bob', 'age' => '65')); |
# |
Sep 13th 2009, 17:28 |
NoReGreT |
dogmatic69: that's what i entered when it asked me |
# |
Sep 13th 2009, 17:28 |
dogmatic69 |
Ceeram: bake will see that and tell you to make it |
# |
Sep 13th 2009, 17:28 |
Ceeram |
well do you have the database.php and have you set the database settings? |
# |
Sep 13th 2009, 17:28 |
dogmatic69 |
cd\ (enter) cd\xampp\htdocs\cake\cake\console\ (enter) cake bake -app c:\xampp\htdocs\cake\app (enter) |
# |
Sep 13th 2009, 17:28 |
NoReGreT |
my doc root is htdocs, and I have the main cake dir under it |
# |
Sep 13th 2009, 17:27 |
Ephigenia |
? |
# |
Sep 13th 2009, 17:27 |
Ephigenia |
do i need the /tmp/cache/views directory with xcache enabled |
# |
Sep 13th 2009, 17:27 |
NoReGreT |
cake contains all 3: app, cake, and vendors |
# |
Sep 13th 2009, 17:27 |
Ephigenia |
hi guys, someone still there? i need some advice or help with configuring xcache with cakephp |
# |
Sep 13th 2009, 17:27 |
unclezoot |
you need to make sure your %PATH% can find /cake |
# |
Sep 13th 2009, 17:27 |
Ceeram |
cake cake is not a problem whe app and cake are both in a dir called cake, thats what it looks like in his setup |
# |
Sep 13th 2009, 17:26 |
unclezoot |
yeah, why are you in /cake/app ? |
# |
Sep 13th 2009, 17:26 |
dogmatic69 |
oh wait |
# |
Sep 13th 2009, 17:26 |
unclezoot |
and run cake bake and see what happens |
# |
Sep 13th 2009, 17:26 |
dogmatic69 |
C:\xampp\htdocs\cake\cake\ there is your problem |
# |
Sep 13th 2009, 17:26 |
unclezoot |
just cd into your app folder before you bake |
# |
Sep 13th 2009, 17:25 |
NoReGreT |
dogmatic69: so I put C:\xampp\htdocs\cake\app, at the end it gave me "Fatal error: Class 'DATABASE_CONFIG' not found in C:\xampp\htdocs\cake\cake\console\libs\tasks\db_config.php on line 265" |
# |
Sep 13th 2009, 17:25 |
unclezoot |
just use the APP constant |
# |
Sep 13th 2009, 17:25 |
dogmatic69 |
that depends on your setup |
# |
Sep 13th 2009, 17:24 |
NoReGreT |
dogmatic69: "What is the full path for this app including the app directory name?" |
# |
Sep 13th 2009, 17:24 |
dogmatic69 |
you must use -app c:/full/path |
# |
Sep 13th 2009, 17:23 |
unclezoot |
yup |
# |
Sep 13th 2009, 17:23 |
dogmatic69 |
unclezoot: you have a echo? |
# |
Sep 13th 2009, 17:23 |
Ceeram |
cd to the app dir or use cake bake -app pathtoapp |
# |
Sep 13th 2009, 17:23 |
unclezoot |
actually that's a lie, the html is coming out but the js + css arent getting loaded |
# |
Sep 13th 2009, 17:23 |
dogmatic69 |
NoReGreT: ? |
# |
Sep 13th 2009, 17:22 |
NoReGreT |
the app directory is passed to cake bake ? |
# |
Sep 13th 2009, 17:22 |
dogmatic69 |
what is the folder structure? |
# |
Sep 13th 2009, 17:22 |
unclezoot |
no error, that's the problem |
# |
Sep 13th 2009, 17:21 |
dogmatic69 |
what is the error |
# |
Sep 13th 2009, 17:21 |
unclezoot |
my plugin.helpers methods arent working in my layout :\ |
# |
Sep 13th 2009, 17:20 |
Dimatter |
nevermind :) |
# |
Sep 13th 2009, 17:20 |
dogmatic69 |
i think there is a way to do it with find also |