# |
Dec 20th 2017, 09:46 |
neon1024 |
Surprising how many of the core team now work for Seatgeek |
# |
Dec 20th 2017, 09:40 |
neon1024 |
Morning all |
# |
Dec 20th 2017, 08:30 |
admad |
and tell the email class to use TwigView instead of View :slightly_smiling_face: |
# |
Dec 20th 2017, 08:27 |
birdy247 |
If you drop this in, presumably all we would do it rename the templates to .twig and then se the correct syntax |
# |
Dec 20th 2017, 08:26 |
birdy247 |
loos neat |
# |
Dec 20th 2017, 08:26 |
birdy247 |
just had a look |
# |
Dec 20th 2017, 08:24 |
admad |
yes bake includes wyriHaximus/twigView but bake is a dev dependency, so if you want to use twig for email templates then you have to include plugin directly in your composer require too |
# |
Dec 20th 2017, 08:22 |
birdy247 |
I noticed bake uses it |
# |
Dec 20th 2017, 08:22 |
birdy247 |
@admad is this now included with cake? |
# |
Dec 20th 2017, 08:21 |
admad |
twig :slightly_smiling_face: |
# |
Dec 20th 2017, 08:21 |
birdy247 |
I am trying to think up a user friendly way to solve this |
# |
Dec 20th 2017, 08:20 |
birdy247 |
so they contain alot of php tags |
# |
Dec 20th 2017, 08:20 |
birdy247 |
We are currently using the cake email templates |
# |
Dec 20th 2017, 08:20 |
birdy247 |
I have a client who wants to edit their own emails |
# |
Dec 20th 2017, 08:13 |
braeden |
^__^ |
# |
Dec 20th 2017, 08:13 |
braeden |
I tried and failed miserably, the lesson is, never try. |
# |
Dec 20th 2017, 08:13 |
braeden |
sorry sorry! |
# |
Dec 20th 2017, 08:12 |
admad |
that's you the builds association, not through table like you asked :slightly_smiling_face: |
# |
Dec 20th 2017, 08:12 |
braeden |
yup |
# |
Dec 20th 2017, 08:12 |
admad |
$this->_table->association( 'Builds' )->getForeignKey() |
# |
Dec 20th 2017, 08:11 |
braeden |
$this->_table->association( 'builds' )->_foreignKey |
# |
Dec 20th 2017, 08:11 |
braeden |
in associations |
# |
Dec 20th 2017, 08:10 |
braeden |
hmmm I found a protected variable |
# |
Dec 20th 2017, 08:10 |
admad |
the build_id field would be in another table, so there's no way you can get that info from builds table |
# |
Dec 20th 2017, 08:09 |
braeden |
Is there any Cake functions that return the foreign key for a particular table? e.g. say I have access to a table called 'Builds' which has a PK 'id', how do I access the 'getForeignKey' function which would return build_id ? |
# |
Dec 20th 2017, 07:23 |
ksandeep_ |
https://gist.github.com/anonymous/9737ee41171927bb73d0d0ee9d32fd0d |
# |
Dec 20th 2017, 07:17 |
ksandeep_ |
Hi Friends, I need help in cakephp-csvview class. Can i create multiple CSV row with single result set row. For some has many relation i need separate row |
# |
Dec 20th 2017, 03:41 |
admad |
@liaogz82 https://github.com/lorenzo/audit-stash |
# |
Dec 20th 2017, 02:12 |
liaogz82 |
I am looking for something that i can throw into AWS elasticsearch |
# |
Dec 20th 2017, 02:05 |
liaogz82 |
any recommendation for audit log plugin for cakephp to record all CRUD actions occured? |
# |
Dec 20th 2017, 00:51 |
braeden |
tyty |
# |
Dec 20th 2017, 00:22 |
dereuromark |
thats hidden somewhere in docs, that you need to quote then |
# |
Dec 20th 2017, 00:19 |
braeden |
Is the regex failing to recognise it as a parameter? |
# |
Dec 20th 2017, 00:19 |
braeden |
e.g. __( 'Thanks for coming \'{0}\', $name ) produces "Thanks for coming {0}" |
# |
Dec 20th 2017, 00:18 |
braeden |
Why is it that string parsing fails for __() function when the {0} arguments are wrapped in quotes? |
# |
Dec 19th 2017, 22:56 |
joop |
i get undefinied variable data for debug($this->get($data)) |
# |
Dec 19th 2017, 22:55 |
joop |
i stuck with pass model variable for it |
# |
Dec 19th 2017, 22:54 |
joop |
i spent the last 3 days to figure out how these works |
# |
Dec 19th 2017, 22:54 |
joop |
guys i having terrible experince with anonymus functions |
# |
Dec 19th 2017, 22:11 |
josexato |
which is this function https://pastebin.com/yVYDsJsU |
# |
Dec 19th 2017, 22:09 |
josexato |
I get this error "Unable to emit headers. Headers sent in file =/var/www/html/src/Controller/DishesController.php line=129" |