I am working on Cakephp 2.x
Currently, I am managing my views is like this: I have a default.ctp file in my View/layout folder where all the reusable data is (for example menu, side bar, footer) and all the css and js files are also imported there. Then I have a view pages in my View/ControllerName/index.ctp file in which I am displaying the records.
Now what I want is to load specific css and js files for particular view page. How can I manage this?? Because at that time my all view pages is getting all the css and js files from the default.ctp file. But I want to load default.ctp layout as well but I want that if let's suppose I am calling a different view page then it select some css and js files from the default.ctp and skip the rest of files
Hope you understand what I am trying to do.