Solved

Basic Cake question

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

Increase Agility with Enabled Toolchains

Connect your existing build, deployment, management, monitoring, and collaboration platforms. From Puppet to Chef, HipChat to Slack, ServiceNow to JIRA, Splunk to New Relic and beyond, hand off data between systems to engage the right people.

Connect with xMatters.

Question has a verified solution.

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

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
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…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

691 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