Solved

Basic Cake question

Posted on 2011-09-30
2
196 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
2 Comments
 
LVL 7

Expert Comment

by:boon86
ID: 36896236
0
 
LVL 5

Accepted Solution

by:
PragmatiCoder earned 500 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

Save on storage to protect fatherhood memories

You're the dad who has everything. This Father's Day, make sure your family memories are protected. My Passport Ultra has automatic backup and password protection to keep your cherished photos and videos safe. With up to 3TB, you have plenty of room to hold the adventures ahead.

Question has a verified solution.

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

Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

867 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now