How to include a view page content in other view?

I have a Terms and Condition page accessed like this: index.php/site/page?view=terms

As you see it uses a view=terms.

I have to show this content on the registration form in a textarea. Registration is accessed as: index.php/authorize/registrationdetails

How do I get the Terms content to include on the Registration view?

You can use $this->renderPartial(‘terms’)

$template = ‘application.views.site./terms’;

	$html = $this->renderPartial($template, array(), true, false);

The $html contains the HTML code that you can render inside your textarea

None of the methods work:

I get

for 1st:

AuthorizeController cannot find the requested view "terms".

for 2nd:

AuthorizeController cannot find the requested view "application.views.site./terms".

(as said earlier the terms is a view in the site controller)

Check if the path to your terms view page is correct. I just used a sample path.

How do I figure out that?

I have this working url: index.php/site/page?view=terms

Is not a good practice to use views of another controller.

If you have some content that you have to display more than once, create a widget.

About the second method, there is a typo, the slash is not needed.

You have to understand that code that people post in the forum can be affected by typos or mistake. Before posting agint try to do some debug or to read the documentation of the method renderPartial, all answer are here.

Pay attention that have a fame of user "fast on the button - " can prevent many user to post for help you in future.

Thanks, I figured out, views are in pages.

Correct:

$template = ‘application.views.site.pages.terms’;

Sorry about my fat finger. As suggested Widget is a better solution.