Akhila Prakash
Akhila Prakash

Reputation: 481

how to Call webroot php file in cakephp

How to call webroot php file in cakephp. For an example http://localhost/cakephp/test.php is openings . Like that I want to open http://localhost/cakephp/abc.php.

Upvotes: 0

Views: 1205

Answers (2)

sumorox
sumorox

Reputation: 11

In your ctp file just redirect to /abc.php

Webroot PHP files are directly accessible in ctp files, for redirect.

Upvotes: 0

Supravat Mondal
Supravat Mondal

Reputation: 2594

Simple Create a file project/app/webroot/abc.php

Replace something

<?php
   // do something 
?>

Then call it

 Http://localhost/cakephp/abc.php

Upvotes: 1

Related Questions