Pages

Tuesday, March 6, 2012

Include file in CakePHP

To include a file in your .ctp files, make the path is given from webroot. So if you have placed your file outside the "app" directory then the path will be set as include("../../file.php");

1 comment:

  1. Which is the function in cakephp like require() function in php? I need to import the Users.php file in Stocksontroller.php file. Please let me know,
    Thanks in advance.

    ReplyDelete