Solved

Basic Cake question

Posted on 2011-09-30
2
195 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
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 learn how to dynamically set the form action using jQuery.

747 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

18 Experts available now in Live!

Get 1:1 Help Now