• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 207
  • Last Modified:

Basic Cake question

i've created a "view" template using cake. I understand that in order to get the template to render in my local browser, I have to build a controller file. The view file is called error.ctp and just has some basic HTML - does anyone know how to build a basic controller to view this file?
0
lvollmer
Asked:
lvollmer
1 Solution
 
boon86Commented:
0
 
PragmatiCoderCommented:
What's exactly what you intend to do with that error.ctp view? Cakephp comes with a lot of default error views located at "/cake/libs/view/errors", and more than needing a controller, you need a controller AND an action (an action called error)

If what you are looking for is to style cake's flashing messages you should look at the default.ctp layout
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now