I need to create a single page without database - how?

Hello,

I have a little problem.

Some devs have built a site using yii 1 for me a little while ago. I need to add a new page to my site but cannot use yii oop code as I do not know much the framework, it will be easier for me to code directly in procedural PHP, how can I create a page that has admin access that is only used with pure php please?

Like a custom page.

Thank you,

Make sure you have a .htaccess file with the following code:


RewriteEngine on


# if a directory or a file exists, use it directly

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d


# otherwise forward it to index.php

RewriteRule . index.php

Then, you put your PHP pages anywhere of your website, for example http://mywebsite.com/pages/page1.php

Thanks, it is ok, just worked it out, only had to add an action in the control and render a view.

All good thanks!