Here is the simple way to create static page.
That's it. Now you can access your sample page at www.yoursite.com/sample
- First create page with .ctp extension(static pages should be created with .ctp extension) and save in app/views/page folder. Ex: file named as sample.ctp
- Add rewrite URL in routes.php (app/config/routes.php).
That's it. Now you can access your sample page at www.yoursite.com/sample
No comments:
Post a Comment