Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3694330
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T04:29:02+00:00 2026-05-19T04:29:02+00:00

I am using Kohana (v3) framework but I believe it’s not tied to a

  • 0

I am using Kohana (v3) framework but I believe it’s not tied to a particular framework.

What I have is basically an app with a front-end, where I want to use Kohana’s native Kohana::shutdown_handler(), but I also have a part of the – RESTful API – where I don’t want colourful and html-encoded exception reporting. I want a plain text reporting.

The way I thought it might work is to register another shutdown function in API’s controller abstract class constructor, but then I realised register_shutdown_function() works differently to set_exception_handler() and instead of replacing it adds another function to the shutdown procedure. What’s worse PHP doesn’t allow “unregistering” shutdown functions and that’s where my problem lies.

What to do, if you want to use another shutdown function instead of one already registered?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T04:29:02+00:00Added an answer on May 19, 2026 at 4:29 am

    You can simply overload

    views/kohana/error

    by your custom view and set

    /**
     * Initialize Kohana, setting the default options.
     *
     * The following options are available:
     *
     * - string   base_url    path, and optionally domain, of your application   NULL
     * - string   index_file  name of your index file, usually "index.php"       index.php
     * - string   charset     internal character set used for input and output   utf-8
     * - string   cache_dir   set the internal cache directory                   APPPATH/cache
     * - boolean  errors      enable or disable error handling                   TRUE
     * - boolean  profile     enable or disable internal profiling               TRUE
     * - boolean  caching     enable or disable internal caching                 FALSE
     */
    Kohana::init(array(
     'base_url' => '/',
     'errors'   => FALSE,
    ));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using the Kohana framework (but I think it's irrelevant for this question)
I'm not even sure if this is possible. I am using Kohana framework(ver 2.3).
I'm using PHP, and the Kohana framework, but that should be peripheral to this
This question is about Kohana framework. I'm new to it. Using foreach() I want
the PHP framework I am using (Kohana) recently implemented the HMVC architecture. I have
I am using an objected oriented MVC framework in PHP (Kohana) and have kind
I am using Kohana MVC framework. I want to add a module that will
Hi friends i'm getting json from server (using kohana framework 3.0) like this.... {
I'm using Kohana 3, which has full support for Unicode. I have this as
i do my forms in my views using kohana helper, but i need to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.