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 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/' . $employee['Employee']['id'],
> null, 'Are you sure you want to delete id ' . $employee['Employee']
> ['id'])?> .
>
> Any ideas why this happened?
>
> Thanks
>
> >
>


-- 
Best Regards,
Tapos Pal
http://tapos.wordpress.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



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/' . $employee['Employee']['id'],
null, 'Are you sure you want to delete id ' . $employee['Employee']
['id'])?> .

Any ideas why this happened?

Thanks

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



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 auto_increment,
  `name` varchar(45) NOT NULL,
  `description` text NOT NULL,
  `model` varchar(45) NOT NULL,
  PRIMARY KEY  (`id`)
);

Note the model field.

And then in the $belongsTo array in the models you add the 'condition'
=> "Category.model=".$this->name

Keeps the number of tables down. ;) Just an idea I had.

On 27 Juli, 06:14, Grant Cox <[EMAIL PROTECTED]> wrote:
> 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), but perhaps that is part of the issue.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



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), but perhaps that is part of the issue.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



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 member function on a non-object in /Library/
WebServer/Documents/endoceutics/cake/scripts/bake.php on line 982

This only happens with the views called Employees,Event,join_docs and
pages. All the rest works fine...

The below links are for the employees controller and
employees_category controller and also the employees model. please
check the source since they are .php at the origin.. !

www.o2web.ca/abisson/employees_categories_controller.html
www.o2web.ca/abisson/employees_controller.html
www.o2web.ca/abisson/employees.html


Thanks a lot again!


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---