Error message adding entries in control panel

Posted on 2011-04-20
Last Modified: 2012-05-11
I am getting this error message when I add entries in my control panel anyone know how to fix this.

Missing Method in CmsPagesController

Error: The action core_page is not defined in controller CmsPagesController

Error: Create CmsPagesController::core_page() in file: app/controllers/cms_pages_controller.php.

class CmsPagesController extends AppController {

      var $name = 'CmsPages';

      function core_page() {


Question by:smphil
    1 Comment
    LVL 2

    Accepted Solution

    Could you also post AppController class please? It doesn't make any sense like this.

    class CmsPagesController {
          var $name = 'CmsPages';
          function core_page() {
    		echo $this->name;
    $cms = new CmsPagesController();

    Open in new window

    This is should work but since I don't have AppController class, I can't test what is the reason.

    Could you please check and see if core_page() class method exists in AppController  first?
    $AppController = new AppController ();
    var_dump(method_exists($AppController ,'core_page'));
    // For Static Class
    var_dump(method_exists('AppController ','core_page'));

    Open in new window

    Your code doesn't tell much.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
    Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
    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.
    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 …

    759 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

    11 Experts available now in Live!

    Get 1:1 Help Now