I wrote admin login not under app/classes/controller but under the account module. My problem is although the logging in is okay, I couldn't extend this controller. I get class not found error. But I created the controller class and extend it carefully like below
The problem you have is probably that the "account" module that contains the class you want to extend isn't loaded, so you get a "class not found" when the framework attempts to load your Thankyou controller.
There are two solution: - define the "account" module in the "always_load" section of your app config - change your file to:
<?php
namespace Mail;
\Module::load('account');
class Controller_Thankyou extends \Account_Controller_Admin_Account