Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Basic Cake question

Posted on 2011-09-30
2
Medium Priority
?
205 Views
Last Modified: 2012-05-12
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
Comment
Question by:lvollmer
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 7

Expert Comment

by:boon86
ID: 36896236
0
 
LVL 5

Accepted Solution

by:
PragmatiCoder earned 2000 total points
ID: 36921990
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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question