Hey everybody
I'm trying to get the ApiGenerator plugin to do what I want. I have
placed it in myapp/app/plugins, and built the index using
cake api_index update
Now I have some problems...
1) I don't want the ApiGenerator to generate the API for the myapp/
plugins directory, because in there is the ApiGenerator itself, and I
don't want my generated API to be cluttered up with ApiGenerator's
API. I tried moving the plugin to myapp/plugins, but then when running
cake api_index update
it doesn't find the database configuration anymore. I guess I haven't
really understood how myapp/plugins and myapp/app/plugins differ in
what they really are meant to be...?
2) I'm writing a custom library in OOP PHP5 that is placed in myapp/
app/libs. Some of these files are found by ApiGenerator, but others
aren't, and I'm not able to find the reason.
For example, Einsatz class is found:
myapp/app/libs/einsatz.php
<?php
/**
* Einsatz File.
*
* PHP version 5
* CakePHP version 1.3
*
* @package zivisim
* @subpackage zivisim.libs
*/
/**
* Included libs
*/
App::import('Lib', array('OptionsSetter'));
/**
* Einsatz Class.
*
* @package zivisim
* @subpackage zivisim.libs
*/
class Einsatz extends OptionsSetter {
...
}
?>
But DiensttageCalculator isn't:
myapp/app/libs/diensttage_calculator.php
<?php
/**
* DiensttageCalculator File.
*
* PHP version 5
* CakePHP version 1.3
*
* @package zivisim
* @subpackage zivisim.libs
*/
/**
* Included libs
*/
App::import('Lib', array('OptionsSetter'));
/**
* DiensttageCalculator Class.
*
* @package zivisim
* @subpackage zivisim.libs
*/
abstract class DiensttageCalculator extends OptionsSetter {
...
}
?>
I can't see any significant difference between the two files and their
content. Maybe someone of you can point me into the right direction?
Thanks
Josh
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en