Search results

  1. S

    Extension - expose unauthenticated endpoint

    This worked just fine, just at the end of run() method in the extension main file. Thank you.
  2. S

    Extension - expose unauthenticated endpoint

    @twisted1919 I have to get back to this. It works fine for GET requests. For POST requests it's trowing me an http 400 with the message "Error 400! The CSRF token could not be verified.". I've tried to find a way to disable CSRF validation at action level within the extension, but I cannot find...
  3. S

    Extension - expose unauthenticated endpoint

    Works just fine :). Thank you for the information
  4. S

    Extension - expose unauthenticated endpoint

    Is there a way to register a route for an extension, which doesn't require authentication? Eg: Yii::app()->urlManager->addRules(array( array('ext_webhook_index', 'pattern' => 'extensions/webhook/'), )); and then the resulting url, backend/index.php/webhook/index to not require...
  5. S

    Extension cron - sending email

    I'm interested in sending an email on a daily basis. We're discussing the crons on this topic here but what I'm interested is how to send an email within that cron and if there are any templates I can use. This addresses administrator users only ( /backend ) . Thanks
  6. S

    Extension database update

    This works just fine. Thank you!
  7. S

    Extension Cron Job

    It doesn't seem to get triggered. Any advice on how to debug this?
  8. S

    Extension database update

    How do you run the required database update, when installing/enabling a new extension. And upon uninstalling it, how do you rollback or drop those changes. Not looking for SQL code :P I need to create 2 tables and drop them if the extensions gets uninstalled.
  9. S

    Extension Cron Job

    One more question regarding this. After adding the hook as mentioned above, in the run() method of the main file of the extension, I've used within the callback function a method from a model as follows: Yii::app()->hooks->addAction('console_command_hourly_after_process', function(){...
  10. S

    Extension Cron Job

    I understand now. Thank you for the documentation link and further clarification.
  11. S

    Extension Cron Job

    That's great. Thank you for the hint. Is there a documentation regarding hooks and how to use them in general? For example in this case, I'm wondering where will I use this? In the file ExtensionExt.php, in function run() ? If not there, where exactly?
  12. S

    Extension Cron Job

    The target is as follows: - build an extra functionality, as an extension, in order to make it portable; - that extension will allow access to some statistics; - the statistics should be generated hourly, by running a cron job;
  13. S

    Extension Cron Job

    Is it possible to add a cron job to an extension and triggered automatically when that extension is installed/setup on an app? I could not find any related information neither in the documentation nor the extension example provided by you guys.
Back
Top