public function payment() { // Set base path JLayoutHelper::$defaultBasePath = JPATH_PLUGINS . '/content/ic_paypal/layouts'; // Render mylayout.php $renderedLayout = JLayoutHelper::render('payment_test'); echo $renderedLayout; }