create page for include

i want to create page for include to other page (other page is not use yii).

i use renderPartial in controller (for not show in layout) it work.

but i include path it is error.

example my create page for include : http://127.0.0.1/job/job/include

but

http://127.0.0.1/test/index.php (include(’../job/job/include’);) is error.

helpme please.

thank you

If you’re using it like a view using renderPartial to display it, just put it in your view folder for the controller you’re in. Yii will automatically look there.

If it is a standalone static page, you could also take a look at this: How to display static pages in Yii

You have to set ‘layout’=>false to not use the default layout for static pages.