Page 96 of 211,264, showing 20 records out of 4,225,268 total, starting on record 1,901, ending on 1,920
# | Username | Text | |
---|---|---|---|
# | 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? |
# | Aug 7th 2008, 02:53 | achew22 | or are you trying to render /app/views/categories/add.thtml? |
# | Aug 7th 2008, 02:53 | thestaff | no it's a view |
# | Aug 7th 2008, 02:55 | achew22 | thestaff: is it that file? |
# | Aug 7th 2008, 02:55 | thestaff | http://bin.cakephp.org/view/409032604 |
# | Aug 7th 2008, 02:55 | thestaff | yeah it's a file |
# | Aug 7th 2008, 02:55 | thestaff | and here is my controller that goes with it |
# | Aug 7th 2008, 02:56 | achew22 | remember $this->element only renders a file located in /views/elements |
# | 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 | thestaff | well I have a file /views/categories/add.thtml |
# | Aug 7th 2008, 02:57 | thestaff | and that's what I see when I go items/add |
# | Aug 7th 2008, 02:58 | thestaff | i get an empty box |
# | 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:59 | thestaff | never mind |
# | Aug 7th 2008, 02:59 | thestaff | without the thtml it works better |
# | Aug 7th 2008, 03:00 | achew22 | oops, my bad |
# | Aug 7th 2008, 03:00 | thestaff | achew22, thank you ! |
# | Aug 7th 2008, 03:00 | thestaff | also can you change where you put the box ? |
# | Aug 7th 2008, 03:00 | thestaff | instead of in the middle ? |