Please some one dont close this as duplicate, no answers fixing my issue:

Im trying to create a new page in which login and register come together and will have custom fields.

Below is the my folder structure:

    - code
        - local
            - Php
                - Customer
                    - etc
                    - controllers
                    - Model

    - design
        - frontend
            - default
                - php
                    - layout
                    - template

Below is the module config file:


<?xml version="1.0"?>
                        <php_customer before="Mage_Customer">Php_Customer</php_customer>
                <customer module="Php_Customer">

Below is account controller:



require_once 'Mage/Customer/controllers/AccountController.php';
class Php_Customer_AccountController extends Mage_Customer_AccountController
    public function loginAction(){
        die('Php Overriden');

Below is the layout config:


<?xml version="1.0"?>
        <reference name="content">
            <block type="module/ablock" name="login" template="popup_login.phtml" />

below is the template file:


<p>HTML Rendered Successfully</p>

When I echo something in the controller its printing on the screen, So I understood module added. but the phtml file is not rendering.

Below is exception log file:

exception 'Mage_Core_Exception' with message 'Invalid block type: Mage_Php_Customer_Block_Login' in D:\wamp\www\promo\app\Mage.php:595

No error log captured.

  • check the error log and past it too Commented Jun 3, 2015 at 11:53

1 Answer 1

<block type="module/ablock" name="login" template="popup_login.phtml" />

change it

<block type="core/template" name="login" template="popup_login.phtml" />

if it is working. then create your block.

  • whats the difference between these two?
    – Anto S
    Commented Jun 3, 2015 at 12:01
  • 1
    this is a big difference. this is core core/template block. other will be created by you. and i think you don't create the block and extend from that block. Commented Jun 3, 2015 at 12:02
  • yes I haven't created any Php/Customer/Block Its working after changing module/ablock to core/template
    – Anto S
    Commented Jun 3, 2015 at 12:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.