Log message #108283

# At Username Text
# Aug 7th 2008, 02:23 thestaff correct ?
# Aug 7th 2008, 02:23 thestaff achew22, $this->element('AjaxElement'); I should replace is to $this->element('app\views\categories\add.thtml');
# Aug 7th 2008, 02:22 Martz|grrr Kitara: but if you think about it - plugin/admin/controllers/admin_controller.php Extends plugin/admin/admin_app_controller.php Extends app/app_controller.php Extends Controller
# Aug 7th 2008, 02:20 Martz|grrr Kitara: may I suggest you bin your code then, your app/app_controller.php, your plugin/admin/admin_app_controller.php (where you are setting $mytest = 'foo';) and your plugin/admin/controllers/admin_controller.php (where you are trying to read $mytest)
# Aug 7th 2008, 02:19 achew22 thestaff: yeah... that one
# Aug 7th 2008, 02:19 Kitara Martz|grrr: okay, that exact last thing is wat is not working :)
# Aug 7th 2008, 02:18 thestaff or thtml... (v1.1)
# Aug 7th 2008, 02:18 achew22 thestaff: no, it's a file.ctp which exists in /app/views/elements/.
# Aug 7th 2008, 02:18 Martz|grrr Kitara: if the scope of that var is only in a single controller yes. If you want it plugin wide, put it in plugins/admin/admin_app_controller.php
# Aug 7th 2008, 02:17 danival Perfect, thanks
# Aug 7th 2008, 02:17 thestaff achew22, I'm guessing element is my view
# Aug 7th 2008, 02:17 Martz|grrr danival: find on page: multi-record input http://groups.google.com/group/cake-php/web/faq
# Aug 7th 2008, 02:17 Kitara Martz|grrr: so, youre saying that if i add something like var $mytest = 'test'; this should be in plugins/admin/controllers/admin_controller.php ?
# Aug 7th 2008, 02:17 achew22 oops the a needs to have a class="thickbox" on there too
# Aug 7th 2008, 02:17 achew22 thestaff: <div id="myBox"><?php echo $this->element('AjaxElement'); ?></div><a href="?inlineId=myBox#TB_inline">Your link</a>
# Aug 7th 2008, 02:16 danival I know this is probably obvious, but new to cakephp ^^
# Aug 7th 2008, 02:16 TonkaTruck Does counterCache work with habtm? This must be a very popular question here.
# Aug 7th 2008, 02:16 danival Hey! How do I make two form inputs in the same line with formHelper? I.e. date [] month []
# Aug 7th 2008, 02:16 Martz|grrr Kitara: make sense?
# Aug 7th 2008, 02:16 Kitara heh ;)
# Aug 7th 2008, 02:15 Martz|grrr Kitara: oops, that line above is for you obviously ;)
# Aug 7th 2008, 02:15 Martz|grrr Kindred: admin_app_controller.php extends app_controller (in your main app) and controllers/admin_controller.php extends admin_app_controller.php
# Aug 7th 2008, 02:14 Kitara Martz|grrr: i exactly have that, adminrouting is disabled
# Aug 7th 2008, 02:14 thestaff then what kinda div and link should I make
# Aug 7th 2008, 02:14 Martz|grrr Kitara: no. You have a plugin dir called "admin" (which again might not be a good idea if you have admin routing enabled) and inside that dir, you should have admin_app_controller.php and then a controllers dir with admin_controller.php
# Aug 7th 2008, 02:14 thestaff this is done
# Aug 7th 2008, 02:14 thestaff it's a very small view
# Aug 7th 2008, 02:14 thestaff my view use the default layout
# Aug 7th 2008, 02:13 achew22 make a view and get your layout to have jQuery and thickbox in it
# Aug 7th 2008, 02:13 thestaff what would be the first step ?
# Aug 7th 2008, 02:13 Kitara Martz|grrr: sorry for the confusing, but for some reason that plugin_app_controller does not pass it through to a plugin_controller
# Aug 7th 2008, 02:12 thestaff hmm, not sure I know how to do that
# Aug 7th 2008, 02:12 achew22 or call it in through ajax
# Aug 7th 2008, 02:12 achew22 thestaff: you render the view inside another view inside a div that is hidden then show that div
# Aug 7th 2008, 02:12 thestaff my view is a very simple form
# Aug 7th 2008, 02:11 thestaff what do you mean kinda ?
# Aug 7th 2008, 02:11 achew22 thestaff: yes, kind of
# Aug 7th 2008, 02:11 thestaff achew22, can I put a view in the ThickBox ?
# Aug 7th 2008, 02:11 Martz|grrr the "plugin controller" should I say
# Aug 7th 2008, 02:11 Martz|grrr Kitara: well as long as the other controllers extended the plugin class, it will work
# Aug 7th 2008, 02:11 Kitara app/plugins/admin/admin_app_controller.php