Menu

#1 Cake directory location

open
nobody
5
2011-03-09
2011-03-09
Jay
No

One suggestion for an improvement that I just came across:

Add a config file for storing the location of the Cake directories. Currently the plugin assumes that cake will be located in the default location. In my case this is not true.

Either that or pull from the CAKE_CORE_INCLUDE_PATH value.

Otherwise so far an awesome plugin, I especially love the fact that I don't have to rip ti apart to make it fit my personal theme, just change the layout setting.

Cheers!

Discussion

  • Valerij Bancer

    Valerij Bancer - 2011-03-09

    I suggest that you have managed to get the plugin to work in your project, haven't you? What changes have you done? That would help to better understand the problem and the way to implement the feature requested.

     
  • Jay

    Jay - 2011-03-10

    Unfortunately I just did a brute force hack to make it work for now. I'm not sure how to pull CAKE_CORE_INCLUDE_PATH myself or I would take that approach.

    Here was the change I made for my local system. I'll try to work out how to pull the setting, but I'm very much learning cake as I go (and to some extent PHP as well)
    //$coreLayouts = scandir('..'.DS.'..'.DS.LIBS.'view'.DS.'layouts'.DS);
    $coreLayouts = scandir('D:'.DS.'xampp'.DS.LIBS.'view'.DS.'layouts'.DS);

     
  • Jay

    Jay - 2011-03-10

    Ok easier then I thought :)

    $coreLayouts = scandir(CAKE_CORE_INCLUDE_PATH);

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.