cedric 9 mesiacov pred
rodič
commit
30a2ec16ab
1 zmenil súbory, kde vykonal 34 pridanie a 0 odobranie
  1. 34 0
      tests/test.php

+ 34 - 0
tests/test.php

@@ -0,0 +1,34 @@
+<?php
+
+
+include(dirname(__FILE__).'/../../../config/config.inc.php');
+
+$context->controller = new stdClass();
+$context->controller->controller_type = ['test'];
+
+require_once(dirname(__FILE__) . '/../classes/chcreaimages.php');
+
+$id_post  = 1;
+/*
+if (!file_exists(chcrea_img_dir)) {
+    print(chcrea_img_dir." exist\n");
+} else {
+    print(chcrea_img_dir." non\n");
+}
+
+$path = chcrea_img_dir.$id_post.'/';
+print($path);
+
+mkdir($path);
+
+print("\n");
+*/
+$obj = new Chcreaimages();
+$obj->id_chcreaposts = $id_post;
+
+print($obj->getPath());
+
+
+
+
+