# |
Aug 7th 2008, 02:58 |
thestaff |
Element Not Found: C:\Program Files\EasyPHP 2.0b1\www\app\views\elements\../categories/add.thml.thtml |
# |
Aug 7th 2008, 02:58 |
thestaff |
i get an empty box |
# |
Aug 7th 2008, 02:57 |
thestaff |
and that's what I see when I go items/add |
# |
Aug 7th 2008, 02:56 |
thestaff |
well I have a file /views/categories/add.thtml |
# |
Aug 7th 2008, 02:56 |
achew22 |
therefore if you want to render something in /views/categories you have to do $this->element('../categories/add.thml') |
# |
Aug 7th 2008, 02:56 |
achew22 |
remember $this->element only renders a file located in /views/elements |
# |
Aug 7th 2008, 02:55 |
thestaff |
and here is my controller that goes with it |
# |
Aug 7th 2008, 02:55 |
thestaff |
yeah it's a file |
# |
Aug 7th 2008, 02:55 |
thestaff |
http://bin.cakephp.org/view/409032604 |
# |
Aug 7th 2008, 02:55 |
achew22 |
thestaff: is it that file? |
# |
Aug 7th 2008, 02:53 |
thestaff |
no it's a view |
# |
Aug 7th 2008, 02:53 |
achew22 |
or are you trying to render /app/views/categories/add.thtml? |
# |
Aug 7th 2008, 02:53 |
achew22 |
is $this->categories('add') a function? |
# |
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:52 |
thestaff |
no :-( |
# |
Aug 7th 2008, 02:52 |
achew22 |
thestaff: good to hear. are we :) yet? |
# |
Aug 7th 2008, 02:52 |
thestaff |
ok so I have you text thing working on my view |
# |
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:50 |
achew22 |
css can do that |
# |
Aug 7th 2008, 02:50 |
thestaff |
it's cuz of the freakin css ! |
# |
Aug 7th 2008, 02:50 |
thestaff |
how man that's why my first modal box wasn't working |
# |
Aug 7th 2008, 02:49 |
achew22 |
without CSS it's a whole lot of nothing |
# |
Aug 7th 2008, 02:48 |
thestaff |
ok so that-s what is missing |
# |
Aug 7th 2008, 02:48 |
achew22 |
the floating and greying out and stuff is all css |
# |
Aug 7th 2008, 02:48 |
achew22 |
the css is what makes it do that stuff |
# |
Aug 7th 2008, 02:47 |
thestaff |
do I neet the css as weel ? |
# |
Aug 7th 2008, 02:47 |
achew22 |
what else is :( |
# |
Aug 7th 2008, 02:47 |
achew22 |
lets get you all the way there |
# |
Aug 7th 2008, 02:47 |
thestaff |
not yet :-( |
# |
Aug 7th 2008, 02:47 |
achew22 |
thestaff: will that work for you? |
# |
Aug 7th 2008, 02:46 |
JeffEmbracedDC |
Martz: Any idea why it wouldn't be compatible with HABTM? |
# |
Aug 7th 2008, 02:45 |
achew22 |
thestaff: do it via ajax, or add style="visible:hidden" or something like that |
# |
Aug 7th 2008, 02:45 |
thestaff |
i gues sstyle="display: none;" should work |
# |
Aug 7th 2008, 02:44 |
thestaff |
how do you hide the dive tho ? |
# |
Aug 7th 2008, 02:43 |
achew22 |
Predom: are you here or not -- I can't tell |
# |
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:41 |
JeffEmbracedDC |
Martz: you're a genius |
# |
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 |
Martz |
bbl |
# |
Aug 7th 2008, 02:40 |
achew22 |
thestaff: that's really easy to ajax with that |
# |
Aug 7th 2008, 02:39 |
thestaff |
yes it does |