Log message #1110257

# At Username Text
# Oct 22nd 2009, 13:19 jcrawford this is straight from the book "While it isn't required, it is recommended that you name your plugin controllers something relatively unique in order to avoid namespace conflicts with parent applications."
# Oct 22nd 2009, 13:19 dogmatic69 jcrawford: models
# Oct 22nd 2009, 13:18 dogmatic69 alan|macbook: i think that is all you are missing
# Oct 22nd 2009, 13:18 jcrawford just controllers/views that are in the plugins
# Oct 22nd 2009, 13:18 Batuchi me remembers MTV Diary.. "you think you know but you have know idea" lol... cakephp Diary
# Oct 22nd 2009, 13:18 jcrawford well oddly enough all models are in the app not in the plugins
# Oct 22nd 2009, 13:18 dogmatic69 jcrawford: when you do not prefix the name cake builds the model on the fly and you loose your custom queries and relations
# Oct 22nd 2009, 13:18 jcrawford dogmatic69 i just read that in the book....
# Oct 22nd 2009, 13:18 alan|macbook dogmatic : here is the debug of $stuff : http://bin.cakephp.org/view/1735825405
# Oct 22nd 2009, 13:17 dogmatic69 jcrawford: that is not what happens
# Oct 22nd 2009, 13:17 jcrawford would you get a name collision if 2 different plugins had classes named the same or is it just for the apps controllers and plugin controllers?
# Oct 22nd 2009, 13:17 dogmatic69 var $helpers = array( 'Tree' => array( 'model' => 'YourModel', 'alias' => 'field_name_i_think' ) );
# Oct 22nd 2009, 13:17 jcrawford dogmatic69 i am the new guy and i am the one new to cake but even i see they are venturing down a dangerous road, they are not prefixing the plugin controllers etc with the plugin name so they may end up with name collisions
# Oct 22nd 2009, 13:16 dogmatic69 alan|macbook: before that.... have you set the options?
# Oct 22nd 2009, 13:15 dogmatic69 pr( $model); pr( $alias); exit
# Oct 22nd 2009, 13:15 crux hey eyeryone
# Oct 22nd 2009, 13:15 alan|macbook dogmatic69: i'm a new baker... could you precise what vars you want me to debug ?
# Oct 22nd 2009, 13:13 dogmatic69 plugins are the S**T, you will never look back... one thing you must never forget is Plugin.Model
# Oct 22nd 2009, 13:13 jcrawford time to read read read :D
# Oct 22nd 2009, 13:12 alan|macbook that's all
# Oct 22nd 2009, 13:12 dogmatic69 $content = $result[$model][$alias]; that is the error.. can you debug all the vars and let me know what they contain
# Oct 22nd 2009, 13:12 jcrawford oh boy a new hurdle for me, work just pushed me to another project that uses plugins heh
# Oct 22nd 2009, 13:12 alan|macbook dogmatic69 : $content = $result[$model][$alias];
# Oct 22nd 2009, 13:11 dogmatic69 !bin
# Oct 22nd 2009, 13:11 dogmatic69 nm
# Oct 22nd 2009, 13:11 dogmatic69 what is line 228
# Oct 22nd 2009, 13:11 dogmatic69 alan|macbook: ty
# Oct 22nd 2009, 13:10 alan|macbook ProgrammesController has var $helpers = array('Html','Form','Tree');
# Oct 22nd 2009, 13:09 alan|macbook mmm... example 2, same notice
# Oct 22nd 2009, 13:09 alan|macbook ok. Very beautilful site :)
# Oct 22nd 2009, 13:09 dogmatic69 and its 2 diff tables
# Oct 22nd 2009, 13:09 dogmatic69 alan|macbook: btw... the tree on the left and the menu at the top is using it... the menu at the top just has no children atm
# Oct 22nd 2009, 13:08 dogmatic69 i think that is what im doing
# Oct 22nd 2009, 13:08 alan|macbook ok
# Oct 22nd 2009, 13:08 dogmatic69 use example 2
# Oct 22nd 2009, 13:08 dogmatic69 alan|macbook: ok that is the one i am using
# Oct 22nd 2009, 13:07 alan|macbook helper here : http://bakery.cakephp.org/articles/download_code/609/block/1
# Oct 22nd 2009, 13:07 alan|macbook dogmatic69 : http://bakery.cakephp.org/articles/view/tree-helper-1
# Oct 22nd 2009, 13:07 alan|macbook used example 1
# Oct 22nd 2009, 13:06 dogmatic69 link for the helper?
# Oct 22nd 2009, 13:06 dogmatic69 yip