# |
Nov 14th 2017, 20:24 |
saeideng |
? |
# |
Nov 14th 2017, 20:24 |
saeideng |
in cakephp client |
# |
Nov 14th 2017, 20:24 |
saeideng |
what is equal to `curl -X POST -u .....` |
# |
Nov 14th 2017, 20:03 |
Es0teric |
i have something like $this->Html->link( $btn_text, array( 'plugin' => 'plugin_name', 'controller' => 'controller_name', 'action' => 'some_action', array('param1', 'param2'))); |
# |
Nov 14th 2017, 20:02 |
Es0teric |
if i am using the HTML helper, specifically the ->link() method -- how do i specify more than one param? |
# |
Nov 14th 2017, 19:04 |
ppisecky |
File uploaded https://cakesf.slack.com/files/U7HK6RAUW/F819GSCKH/set_default_query_condition_if_not_set_before.php / https://slack-files.com/T053DPNCM-F819GSCKH-ca85bd51ed |
# |
Nov 14th 2017, 19:03 |
ppisecky |
So finally can anyone see problems with the following: |
# |
Nov 14th 2017, 19:03 |
ppisecky |
Ok the example above had the proble of not passing `and$has_deleted_condition` to the `use` construct (i.e. not passing the variable as reference) |
# |
Nov 14th 2017, 18:42 |
ppisecky |
Can anyone please point me in the right direction? |
# |
Nov 14th 2017, 18:41 |
ppisecky |
I tried above to check if a query condition has been set in a where clause but that does not work because I cannot modify the `$has_deleted_condition` flag variable |
# |
Nov 14th 2017, 18:40 |
ppisecky |
File uploaded https://cakesf.slack.com/files/U7HK6RAUW/F7ZGRLS0Y/check_if_a_condition_has_been_set_and_if_not_set_default.php / https://slack-files.com/T053DPNCM-F7ZGRLS0Y-1b72b795d3 |
# |
Nov 14th 2017, 18:39 |
ppisecky |
I still need help with setting a default query condition in a `beforeFind` event listener |
# |
Nov 14th 2017, 17:56 |
flavius |
which are located in the cache-* dirs |
# |
Nov 14th 2017, 17:55 |
flavius |
i have a view helper with which I add any css or js file in any layout or view and then at the "end" it compiles and minifies all the files (css and js) into 1 css file and 1 js file |
# |
Nov 14th 2017, 17:52 |
etipaced |
So your layouts and views point to your cache-* dirs? |
# |
Nov 14th 2017, 17:51 |
flavius |
i usually put js files in js/ and css files in css/ and then compile and minify them in cache-js/ and cache-css/ |
# |
Nov 14th 2017, 17:50 |
flavius |
are they not source as well? :P |
# |
Nov 14th 2017, 17:50 |
flavius |
what about js files? |
# |
Nov 14th 2017, 17:49 |
saeideng |
turn off proxy solve it :slightly_smiling_face: |
# |
Nov 14th 2017, 17:49 |
etipaced |
Not necessarily as obviously it’s public anyway. Just seems like better organization to keep “source” files outside of webroot. |
# |
Nov 14th 2017, 17:48 |
flavius |
@etipaced are you concerned that someone will just steal the scss? :P |
# |
Nov 14th 2017, 17:47 |
etipaced |
@mail That’s what I did: src/Template/CSS so I can stash SCSS and/or LESS source files as needed. |
# |
Nov 14th 2017, 17:47 |
saeideng |
this did work for 6 7 months |
# |
Nov 14th 2017, 17:47 |
flavius |
ye, you need to bind it to 127.0.0.1 .... yourdomain.local |
# |
Nov 14th 2017, 17:47 |
inoas |
and on apache into virtual hosts |
# |
Nov 14th 2017, 17:46 |
inoas |
well I am not good with devops but you need to add it to /etc/hosts |
# |
Nov 14th 2017, 17:46 |
flavius |
which other domain |
# |
Nov 14th 2017, 17:45 |
saeideng |
but I have another domain |
# |
Nov 14th 2017, 17:44 |
saeideng |
http://localhost/ works |
# |
Nov 14th 2017, 17:44 |
saeideng |
The DNS server returned: Name Error: The domain name does not exist. This means that the cache was not able to resolve the hostname presented in the URL. Check if the address is correct. |
# |
Nov 14th 2017, 17:43 |
saeideng |
Unable to determine IP address from host name... |
# |
Nov 14th 2017, 17:43 |
saeideng |
The following error was encountered while trying to retrieve the URL |
# |
Nov 14th 2017, 17:43 |
saeideng |
The requested URL could not be retrieved |
# |
Nov 14th 2017, 17:43 |
saeideng |
my local domain not works |
# |
Nov 14th 2017, 17:43 |
inoas |
but would be good if there was a standard @ cakephp/app |
# |
Nov 14th 2017, 17:43 |
inoas |
so create src/web-assets or something |
# |
Nov 14th 2017, 17:40 |
etipaced |
Where is the best place to store SCSS files in a Cake 3 project? I don’t know that I want to keep these inside webroot since that’s publicly accessible. |
# |
Nov 14th 2017, 17:39 |
inoas |
there must be a better way than this https://gist.github.com/inoas/7d5be16ddf8be8737b7142a9ec535f66 |
# |
Nov 14th 2017, 17:36 |
inoas |
found it in some older code of mine now ... too |
# |
Nov 14th 2017, 17:36 |
inoas |
return $exp->or_([ there is that thing I was looking for |
# |
Nov 14th 2017, 17:30 |
flavius |
more here -> https://book.cakephp.org/3.0/en/orm/query-builder.html#advanced-conditions |