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");
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.
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,
ReplyDeleteThanks in advance.