# |
Jul 11th 2018, 10:20 |
joopm |
yes probably you are right i am not aware what use does |
# |
Jul 11th 2018, 10:20 |
neon1024 |
http://php.net/manual/en/language.namespaces.importing.php |
# |
Jul 11th 2018, 10:19 |
neon1024 |
If you think that, then you do not know what “use” does. |
# |
Jul 11th 2018, 10:19 |
joopm |
so thhere is no inbuilt solution to use "use" to import vendor file? |
# |
Jul 11th 2018, 10:17 |
joopm |
but this does not load it |
# |
Jul 11th 2018, 10:17 |
joopm |
like use App\Vendor\recaptcha\recaptchalib; |
# |
Jul 11th 2018, 10:17 |
joopm |
just thought it is a simple using of "use" command with the location |
# |
Jul 11th 2018, 10:16 |
joopm |
the require |
# |
Jul 11th 2018, 10:16 |
joopm |
okey i know the core php way |
# |
Jul 11th 2018, 10:16 |
joopm |
i know the "use" command |
# |
Jul 11th 2018, 10:16 |
neon1024 |
Use `require()` |
# |
Jul 11th 2018, 10:16 |
joopm |
i've just would like to "import" a simple external php file(which is recaptcha in my case) |
# |
Jul 11th 2018, 10:15 |
joopm |
hello neon1024 |
# |
Jul 11th 2018, 10:12 |
neon1024 |
7) Can you share some code with us? |
# |
Jul 11th 2018, 10:12 |
neon1024 |
6) How are you asserting “this seems does not work” |
# |
Jul 11th 2018, 10:12 |
neon1024 |
5) Is this the correct class to implement? |
# |
Jul 11th 2018, 10:11 |
neon1024 |
1) Loaded in your composer.json? 2) Have you done `composer dumpautoload` 3) Is that the correct namespace? 4) Does the package support autoloading? PSR4 |
# |
Jul 11th 2018, 10:11 |
neon1024 |
We’ll chase the usage of `use` |
# |
Jul 11th 2018, 10:11 |
neon1024 |
There are so many things here |
# |
Jul 11th 2018, 10:10 |
joopm |
or should i use include |
# |
Jul 11th 2018, 09:55 |
joopm |
no 3 |
# |
Jul 11th 2018, 09:48 |
josbeir |
cake 2? |
# |
Jul 11th 2018, 09:35 |
joopm |
this seems does not work : use recaptcha\recaptchalib; |
# |
Jul 11th 2018, 09:35 |
joopm |
what is thequickest way to "include" vendor file? |
# |
Jul 11th 2018, 09:35 |
joopm |
hello |
# |
Jul 11th 2018, 09:16 |
Martin` |
ehh parents |
# |
Jul 11th 2018, 09:16 |
Martin` |
I loads more results via pagination via javascript/json I don't want to show the children double :P |
# |
Jul 11th 2018, 09:13 |
lorenzo |
it is not harder because of that |
# |
Jul 11th 2018, 09:13 |
lorenzo |
well, if you are getting 10 results from pagination, then you need to fethc the parent for those 10 results |
# |
Jul 11th 2018, 09:13 |
Martin` |
but I think that is the easiest way to do it, I have an idea how to fix it :P |
# |
Jul 11th 2018, 09:13 |
josbeir |
glad to be of service |
# |
Jul 11th 2018, 09:13 |
prasanna.venkat |
@josbeir great thanks a lot it is working now also i have learned how to create routes |
# |
Jul 11th 2018, 09:12 |
Martin` |
ok I understand, only harder because it is a pagination :P |
# |
Jul 11th 2018, 09:12 |
josbeir |
np |
# |
Jul 11th 2018, 09:11 |
prasanna.venkat |
:+1: thanks |
# |
Jul 11th 2018, 09:11 |
lorenzo |
Martin` collect all children you need with the search, and the fetch again parents for those, I cannot come up right now with a query to collect all parents, so I’ll let you figure that out for yourself |
# |
Jul 11th 2018, 09:11 |
josbeir |
you are mixing caps :P |
# |
Jul 11th 2018, 09:11 |
josbeir |
use specialPage, not specialpage |
# |
Jul 11th 2018, 09:10 |
prasanna.venkat |
$this->Paginator->options(array(‘url’ => [ ‘controller’ => ‘allpages’, ‘specialpage’ => $page_template_name ])); echo $this->element(‘pagination’); |
# |
Jul 11th 2018, 09:10 |
prasanna.venkat |
current route $pages = array(‘scrapbookingpages’, ‘comicpages’, ‘addtoscenepages’, ‘colouringpages’, ‘gamepages’, ‘parentpage’); foreach ($pages as $page) { Router::connect(‘/:specialPage/:action/*’, array(‘controller’ => ‘allpages’), array(‘specialPage’ => $page)); Router::connect(‘/:controller/‘.$page.‘/*’, array(‘controller’ => ‘user_created_pages’, ‘action’ => |
# |
Jul 11th 2018, 09:09 |
josbeir |
show me your route and the paginator options |