# |
Jul 7th 2018, 11:11 |
bravo-kernel |
I will not look into it but if you do manage to whoop something up... please do share so we can document it. A single example would be more than enough. |
# |
Jul 7th 2018, 11:11 |
bravo-kernel |
@james.phillips it seems that displaying the correct JSON API examples using the SWG annotations is very possible, one just needs to define the full "envelope" |
# |
Jul 7th 2018, 10:56 |
bravo-kernel |
@joopm you may use any tool/editor you like but starting with notepad might not be the most productive/effective editor so perhaps better to start with something good but free like Visual Studio Code |
# |
Jul 7th 2018, 09:44 |
joopm |
does git shell console and notepad++ enough?or should i use complex editor like eclipse |
# |
Jul 7th 2018, 09:43 |
joopm |
may i ask you how do you use github with own cake projects |
# |
Jul 7th 2018, 09:42 |
joopm |
hello all |
# |
Jul 7th 2018, 02:47 |
cpierce |
it's 3 i just haven't updated that part yet |
# |
Jul 7th 2018, 02:45 |
braeden |
What version of Cake is that? 2? |
# |
Jul 7th 2018, 02:44 |
braeden |
QueryExpression perhaps? |
# |
Jul 7th 2018, 02:43 |
cpierce |
with CONTAIN ... should i use something else? |
# |
Jul 7th 2018, 02:43 |
cpierce |
but the last one isn't working for me because it isn't joining the CrewMember to employeeid |
# |
Jul 7th 2018, 02:43 |
cpierce |
i wanna do this inside a paginate query |
# |
Jul 7th 2018, 02:43 |
cpierce |
``` $conditions['OR']['Employees.EMPLOYEENAME LIKE'] = '%' . $this->request->data['search_field'] . '%'; $conditions['OR']['Employees.EMPLOYEEID'] = $this->request->data['search_field']; $conditions['OR']['CrewMembers.CREWKEY'] = $this->request->data['search_field']; ``` |
# |
Jul 7th 2018, 02:38 |
cpierce |
can I do a where on a field in a contain table in paginage? |
# |
Jul 7th 2018, 00:43 |
braeden |
Belgiummmmmmmmmm! |
# |
Jul 6th 2018, 21:23 |
itmpls |
ah ok |
# |
Jul 6th 2018, 21:23 |
saeideng |
I mean no need to have empty class , if you no want to use it |
# |
Jul 6th 2018, 21:22 |
itmpls |
so don't bother with it then |
# |
Jul 6th 2018, 21:22 |
saeideng |
since 3.6.6 having `src/Plugin.php` in not necessary |
# |
Jul 6th 2018, 21:21 |
saeideng |
no problem |
# |
Jul 6th 2018, 21:21 |
saeideng |
aha |
# |
Jul 6th 2018, 21:21 |
itmpls |
src/Plugin.php I mean |
# |
Jul 6th 2018, 21:21 |
saeideng |
dont having `bootstrap.php` ? |
# |
Jul 6th 2018, 21:20 |
itmpls |
im working on** |
# |
Jul 6th 2018, 21:20 |
saeideng |
you can see it uses `config/bootstrap.php` by default |
# |
Jul 6th 2018, 21:20 |
itmpls |
i see in the project ive done a few of them don't even have it |
# |
Jul 6th 2018, 21:20 |
itmpls |
Plugin.php is optional? |
# |
Jul 6th 2018, 21:20 |
saeideng |
default hook is ``` public function bootstrap(PluginApplicationInterface $app) { $bootstrap = $this->getConfigPath() . 'bootstrap.php'; if (file_exists($bootstrap)) { require $bootstrap; } } ``` |
# |
Jul 6th 2018, 21:19 |
itmpls |
ah |
# |
Jul 6th 2018, 21:19 |
saeideng |
it uses default hook |
# |
Jul 6th 2018, 21:19 |
saeideng |
if you dont have this hook |
# |
Jul 6th 2018, 21:19 |
saeideng |
you can move bootstrap into hook on this class |
# |
Jul 6th 2018, 21:18 |
saeideng |
it depends on your `src/Plugin.php` class |
# |
Jul 6th 2018, 21:17 |
itmpls |
misread I suppose |
# |
Jul 6th 2018, 21:17 |
itmpls |
oh ok, nevermind |
# |
Jul 6th 2018, 21:17 |
saeideng |
no why? |
# |
Jul 6th 2018, 21:17 |
itmpls |
so they won't get deprecated? |
# |
Jul 6th 2018, 21:16 |
saeideng |
> but what about in my plugin itself? are routes.php/bootstrap.php still used? yes by default |
# |
Jul 6th 2018, 21:16 |
joopm |
github powershell is installed |
# |
Jul 6th 2018, 21:15 |
joopm |
but should use the add command for each invidual files?? |
# |
Jul 6th 2018, 21:15 |
itmpls |
joopm if you have windows, use tortoisegit or git init / git add . |