# |
Aug 7th 2008, 02:27 |
Kitara |
ah well nobody is perfect :P |
# |
Aug 7th 2008, 02:26 |
Martz|grrr |
"Do as I say, not as I do!" |
# |
Aug 7th 2008, 02:26 |
Martz|grrr |
i dunno if it'll be rejected/allowed.. im ashamed to say ive not contributed anything to it :/ |
# |
Aug 7th 2008, 02:26 |
thestaff |
achew22, how do I hide it? |
# |
Aug 7th 2008, 02:26 |
Martz|grrr |
http://book.cakephp.org/view/114/plugins perhaps |
# |
Aug 7th 2008, 02:25 |
Kitara |
plugin tips ? :) |
# |
Aug 7th 2008, 02:25 |
Kitara |
Martz|grrr: any good suggestion where to place that comment ? ;) |
# |
Aug 7th 2008, 02:25 |
thestaff |
i need to hide the div "mybox |
# |
Aug 7th 2008, 02:25 |
thestaff |
well now it display only my thickbox view |
# |
Aug 7th 2008, 02:24 |
achew22 |
thestaff: good thus far? |
# |
Aug 7th 2008, 02:24 |
Martz|grrr |
Kitara: good stuff =) |
# |
Aug 7th 2008, 02:24 |
thestaff |
that works |
# |
Aug 7th 2008, 02:24 |
thestaff |
achew22, yeah |
# |
Aug 7th 2008, 02:24 |
achew22 |
if you want to render the file located at /app/views/elements/add.thtml then $this->element('add'); |
# |
Aug 7th 2008, 02:24 |
Kitara |
Martz|grrr: always do that if its usefull for others ;) |
# |
Aug 7th 2008, 02:24 |
achew22 |
well wait |
# |
Aug 7th 2008, 02:24 |
Martz|grrr |
Kitara: excellent ;) Perhaps - if you can be bothered - submit a comment/change to the Book so other ppl know |
# |
Aug 7th 2008, 02:23 |
achew22 |
thestaff: let me check |
# |
Aug 7th 2008, 02:23 |
Kitara |
moved it to 'dash' since its a monitoring dashboard, and it works |
# |
Aug 7th 2008, 02:23 |
Kitara |
Martz|grrr: problem solved, adminrouting even screws a admin plugin if adminrouting is not enabled |
# |
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 ;) |