# |
Sep 13th 2009, 18:09 |
unclezoot |
but in a layout, only the html comes out, the js and css is ignored, it's not even loaded |
# |
Sep 13th 2009, 18:09 |
savant1 |
javascript->link('/plugin_name/js/js_file_name') |
# |
Sep 13th 2009, 18:09 |
unclezoot |
yes im using that, and my plugin.helper works fine in a view |
# |
Sep 13th 2009, 18:09 |
savant1 |
html->css('/plugin_name/css/css_file_name') |
# |
Sep 13th 2009, 18:09 |
unclezoot |
yes helpers deployed in a plugin |
# |
Sep 13th 2009, 18:08 |
savant1 |
plugin helpers? |
# |
Sep 13th 2009, 18:08 |
unclezoot |
savant, do you know much about plugin.helpers? specifically, ones that load js and css? |
# |
Sep 13th 2009, 18:04 |
guille1983 |
~quiet |
# |
Sep 13th 2009, 17:49 |
guille1983 |
thanks |
# |
Sep 13th 2009, 17:45 |
unclezoot |
http://mark-story.com/nodes/view/auth-and-acl-an-end-to-end-tutorial-pt-1 |
# |
Sep 13th 2009, 17:44 |
guille1983 |
unclezoot: anyways, where is that mark story blog entry you talk about? |
# |
Sep 13th 2009, 17:44 |
guille1983 |
unclezoot: but it only says about the columns create, update, read, delete, nothing about "my custom action" |
# |
Sep 13th 2009, 17:42 |
unclezoot |
read it again dude, then read mark story's blog on acl, then read both again 3 times is my advice =) |
# |
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?" |