Re: Help with creating views using bake.php

2008-04-07 Thread Tapos Pal
you can't call link function just use 'link', you must have to use it by using $html->link. note: please make sure the debug is on at your development environment, this will help you to catch the errors, bugs. On Mon, Apr 7, 2008 at 9:33 AM, UTDStudent <[EMAIL PROTECTED]> wrote: > > I've baked m

Help with creating views using bake.php

2008-04-07 Thread UTDStudent
I've baked my applications and my views all come out with no data and this text instead of the buttons for add, edit, or delete buttons: ('View','/employees/view/' . $employee['Employee']['id'])?> link('Edit','/employees/edit/' . $employee['Employee']['id'])?> link('Delete','/employees/delete/' .

Re: Creating views

2007-07-27 Thread matlin
I'm not a CakePHP superuser but I try to stay clear of using PagesController. What happens if you create the views manually? On a sidenote, when I have more than one Model that use Categories I altered my Categories model like this: CREATE TABLE `categories` ( `id` int(10) unsigned NOT NULL au

Re: Creating views

2007-07-26 Thread Grant Cox
The only thing I can see wrong is that you have a model called Page, and a controller PagesController. Cake already has an inbuilt PagesController which is used for displaying static pages. I would have guessed that it wouldn't be a problem for you to define your own (instead of the default one)

Creating views

2007-07-26 Thread Bisson
Hey eveyrone, Here is the thing. I created a database that you can go see the picture at www.o2web.ca/abisson/database.jpg Then I exported it to MySQL and started creating the models and controllers. Everything works fine expect when it comes to the views I get this: Fatal error: Call to a membe