Logs for #cakephp

Page 19 of 36,922, showing 100 records out of 3,692,143 total, starting on record 1,801, ending on 1,900

# At Username Text
# 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 TonkaTruck Does counterCache work with habtm? This must be a very popular question here.
# Aug 7th 2008, 02:16 danival I know this is probably obvious, but new to cakephp ^^
# 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:17 achew22 oops the a needs to have a class="thickbox" on there too
# 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 Martz|grrr danival: find on page: multi-record input http://groups.google.com/group/cake-php/web/faq
# Aug 7th 2008, 02:17 thestaff achew22, I'm guessing element is my view
# Aug 7th 2008, 02:17 danival Perfect, thanks
# 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:18 achew22 thestaff: no, it's a file.ctp which exists in /app/views/elements/.
# Aug 7th 2008, 02:18 thestaff or thtml... (v1.1)
# Aug 7th 2008, 02:19 Kitara Martz|grrr: okay, that exact last thing is wat is not working :)
# Aug 7th 2008, 02:19 achew22 thestaff: yeah... that one
# 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: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:23 thestaff achew22, $this->element('AjaxElement'); I should replace is to $this->element('app\views\categories\add.thtml');
# Aug 7th 2008, 02:23 thestaff correct ?
# 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 Kitara moved it to 'dash' since its a monitoring dashboard, and it works
# Aug 7th 2008, 02:23 achew22 thestaff: let me check
# 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:24 achew22 well wait
# Aug 7th 2008, 02:24 Kitara Martz|grrr: always do that if its usefull for others ;)
# 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 thestaff achew22, yeah
# Aug 7th 2008, 02:24 thestaff that works
# Aug 7th 2008, 02:24 Martz|grrr Kitara: good stuff =)
# Aug 7th 2008, 02:24 achew22 thestaff: good thus far?
# Aug 7th 2008, 02:25 thestaff well now it display only my thickbox view
# Aug 7th 2008, 02:25 thestaff i need to hide the div "mybox
# Aug 7th 2008, 02:25 Kitara Martz|grrr: any good suggestion where to place that comment ? ;)
# Aug 7th 2008, 02:25 Kitara plugin tips ? :)
# Aug 7th 2008, 02:26 Martz|grrr http://book.cakephp.org/view/114/plugins perhaps
# Aug 7th 2008, 02:26 thestaff achew22, how do I hide it?
# 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 Martz|grrr "Do as I say, not as I do!"
# Aug 7th 2008, 02:27 Kitara ah well nobody is perfect :P
# Aug 7th 2008, 02:27 Martz|grrr it's my only inperfection!
# Aug 7th 2008, 02:28 Kitara then you dont have a lot inperfections :)
# Aug 7th 2008, 02:28 Martz|grrr ACTION wishes
# Aug 7th 2008, 02:29 Kitara heh, oh, well, everybody have their imperfections, one more than the other...
# Aug 7th 2008, 02:30 achew22 thestaff: escape or click on thel ink
# Aug 7th 2008, 02:30 achew22 link*
# Aug 7th 2008, 02:31 thestaff achew22, no no, the pb is when I load the page, I see mybox, instead of the normal page
# Aug 7th 2008, 02:33 Kitara Martz: tnx, so far, works like a sharm :) Yesterday i was mad about it so you realy helped me out :D
# Aug 7th 2008, 02:33 achew22 thestaff: did you check your id on your element?
# Aug 7th 2008, 02:34 thestaff what id ?
# Aug 7th 2008, 02:34 achew22 did you change the id on your div?
# Aug 7th 2008, 02:34 thestaff the inlineID ?
# Aug 7th 2008, 02:34 thestaff no
# Aug 7th 2008, 02:35 JeffEmbracedDC is it possible ti simply increment a mysql field value up or down?
# Aug 7th 2008, 02:35 JeffEmbracedDC with a single query
# Aug 7th 2008, 02:35 Martz Kitara: np. I made my first plugin the other day, a crappy "todo" plugin.. so its quite fresh in my mind about the structure..
# Aug 7th 2008, 02:35 florent good morning everyone
# Aug 7th 2008, 02:35 thestaff achew22, it's myBox in both cases
# Aug 7th 2008, 02:35 Lemon|work Is it possible to trigger a cold startup from code?
# Aug 7th 2008, 02:35 Martz morning florent
# Aug 7th 2008, 02:35 Lemon|work as in, regenerate all cache files
# Aug 7th 2008, 02:35 Martz JeffEmbracedDC: counterCache ?
# Aug 7th 2008, 02:36 achew22 thestaff: does it triggre on its own or do you have to click it?
# Aug 7th 2008, 02:36 JeffEmbracedDC Martz: hmm?
# Aug 7th 2008, 02:36 thestaff well the browser is display the <div style="display: none;" id="myBox"><?php echo $this->categories('add'); ?></div>
# Aug 7th 2008, 02:37 thestaff so I wanna get categories/add.thtml as thickbox in items/add
# Aug 7th 2008, 02:37 achew22 thestaff: also, did you set modal to true?
# Aug 7th 2008, 02:37 thestaff nope
# Aug 7th 2008, 02:37 achew22 thestaff: does this work? http://bin.cakephp.org/view/1266619691
# Aug 7th 2008, 02:38 Martz JeffEmbracedDC: counts the total relationships on created/update/delete etc.
# Aug 7th 2008, 02:38 Martz JeffEmbracedDC: not sued it myself, heres something about it - might be in the book too: http://www.cakephp.nu/countercache-cakephp-12-beta
# Aug 7th 2008, 02:38 Martz used*
# Aug 7th 2008, 02:38 JeffEmbracedDC Martz: cool man I appreciate it
# Aug 7th 2008, 02:39 thestaff yes it does
# Aug 7th 2008, 02:40 achew22 thestaff: that's really easy to ajax with that
# Aug 7th 2008, 02:41 Martz bbl
# Aug 7th 2008, 02:41 achew22 just change it from #tb_inline to the url of a page it will do that in ajax
# Aug 7th 2008, 02:41 JeffEmbracedDC Martz: you're a genius
# Aug 7th 2008, 02:42 achew22 thestaff: and in that action set the layout to one that is ajax friendly and you should be hot to trot
# Aug 7th 2008, 02:43 achew22 Predom: are you here or not -- I can't tell
# Aug 7th 2008, 02:44 thestaff how do you hide the dive tho ?
# Aug 7th 2008, 02:45 thestaff i gues sstyle="display: none;" should work
# Aug 7th 2008, 02:45 achew22 thestaff: do it via ajax, or add style="visible:hidden" or something like that
# Aug 7th 2008, 02:46 JeffEmbracedDC Martz: Any idea why it wouldn't be compatible with HABTM?
# Aug 7th 2008, 02:47 achew22 thestaff: will that work for you?
# Aug 7th 2008, 02:47 thestaff not yet :-(
# Aug 7th 2008, 02:47 achew22 lets get you all the way there
# Aug 7th 2008, 02:47 achew22 what else is :(
# Aug 7th 2008, 02:47 thestaff do I neet the css as weel ?
# Aug 7th 2008, 02:48 achew22 the css is what makes it do that stuff
# Aug 7th 2008, 02:48 achew22 the floating and greying out and stuff is all css
# Aug 7th 2008, 02:48 thestaff ok so that-s what is missing
# Aug 7th 2008, 02:49 achew22 without CSS it's a whole lot of nothing
# Aug 7th 2008, 02:50 thestaff how man that's why my first modal box wasn't working
# Aug 7th 2008, 02:50 thestaff it's cuz of the freakin css !
# Aug 7th 2008, 02:50 achew22 css can do that
# Aug 7th 2008, 02:51 Rizwan78 hi, how can i check user status, if user is still online/browsing my site.
# Aug 7th 2008, 02:52 thestaff ok so I have you text thing working on my view
# Aug 7th 2008, 02:52 achew22 thestaff: good to hear. are we :) yet?
# Aug 7th 2008, 02:52 thestaff no :-(
# Aug 7th 2008, 02:53 thestaff <?php echo $this->categories('add'); ?> cuz to replace the view but the modal box's one
# Aug 7th 2008, 02:53 achew22 is $this->categories('add') a function?