PHP Classes

File: tests/src/dir_ns/DirC/ClassC.php

Recommend this page to a friend!
  Packages of Thierry Feuzeu   Jaxon   tests/src/dir_ns/DirC/ClassC.php   Download  
File: tests/src/dir_ns/DirC/ClassC.php
Role: Class source
Content type: text/plain
Description: Class source
Class: Jaxon
Call PHP classes from JavaScript using AJAX
Author: By
Last change:
Date: 1 year ago
Size: 567 bytes
 

Contents

Class file image Download
<?php

namespace Jaxon\NsTests\DirC;

use Jaxon\App\FuncComponent;
use Jaxon\Exception\SetupException;
use Jaxon\NsTests\DirB\ClassB;

class ClassC extends FuncComponent
{
    /**
     * @throws SetupException
     */
    public function methodCa()
    {
        $xResponse = jaxon()->getResponse();
        $xResponse->html('div', 'This is the div content!!');
        $this->cl(ClassB::class)->methodBb();
    }

    public function methodCb()
    {
        $xResponse = jaxon()->getResponse();
        $xResponse->html('div', 'This is the div content!!');
    }
}