# |
Oct 6th 2016, 15:55 |
hmic |
upgrade! |
# |
Oct 6th 2016, 15:54 |
hmic |
still: i'd just render the email element instead! |
# |
Oct 6th 2016, 15:54 |
hmic |
just assign it to a viewvar to render in the view later! |
# |
Oct 6th 2016, 15:54 |
hmic |
so you've got the html and text data in the array - hurray! |
# |
Oct 6th 2016, 15:52 |
hmic |
dont create the actual email at all! just render the email element inside your "preview" view |
# |
Oct 6th 2016, 15:52 |
hmic |
you can quite easily render the email element in any view, if you set the same viewvars before! |
# |
Oct 6th 2016, 15:50 |
hmic |
you *cannot* easily extract this of the already ready to send mail with a custom transport anymore! |
# |
Oct 6th 2016, 15:50 |
dereuromark |
@admad Almost perfectly working, after logout I always need to flush the profiles table, though: $this->Users->SocialProfiles->deleteAll(['user_id' => $this->Auth->user('id')]); Otherwise re-login fails |
# |
Oct 6th 2016, 15:49 |
hmic |
so in case of your email, if you render the html element, you get this in return. just set it as a viewvar |
# |
Oct 6th 2016, 15:49 |
hmic |
julez, if you render a view, it will return you exactly that. - the rendered view! |
# |
Oct 6th 2016, 15:48 |
hmic |
why dont you upgrade this ancient version to a decent 2.x release? |
# |
Oct 6th 2016, 15:09 |
dereuromark |
Most answers are given looking at the awesome list :slightly_smiling_face: |
# |
Oct 6th 2016, 15:07 |
titans |
thanks |
# |
Oct 6th 2016, 15:06 |
dakota |
specifically https://github.com/markstory/asset_compress |
# |
Oct 6th 2016, 15:06 |
dakota |
titans, https://github.com/friendsofcake/awesome-cakephp#asset-management |
# |
Oct 6th 2016, 15:00 |
mikatone |
I see dereuromark https://github.com/dereuromark/cakephp-queue |
# |
Oct 6th 2016, 14:59 |
titans |
I mean what is the best plugin for doing that |
# |
Oct 6th 2016, 14:59 |
titans |
Is There a solution to minify + obfuscate js files ? |
# |
Oct 6th 2016, 14:58 |
titans |
Hi guys |
# |
Oct 6th 2016, 14:58 |
mikatone |
can i trigger shell command tcpdump from cakephp without exec ? |
# |
Oct 6th 2016, 14:57 |
dereuromark |
either way you want to trigger it async via shell, should not be sync from browser |
# |
Oct 6th 2016, 14:57 |
mikatone |
hum that would be nice |
# |
Oct 6th 2016, 14:57 |
dereuromark |
haha, yeah if you want that shell, you can also steal the idea of how to invoke mysqldump command and build in manually |
# |
Oct 6th 2016, 14:56 |
mikatone |
i'm using cakephp 3 already do I have to assume I still have to upgrade DbDump version? |
# |
Oct 6th 2016, 14:56 |
dereuromark |
Then you can also implement a restore button, at your own risk :P |
# |
Oct 6th 2016, 14:55 |
dereuromark |
You upgrade my DbDump shell from 2.x to 3.x and then trigger that, ideally from a Queue :slightly_smiling_face: done |
# |
Oct 6th 2016, 14:55 |
mikatone |
any ideia? |
# |
Oct 6th 2016, 14:53 |
mikatone |
Hi, my client has requested a "button" in order to backup the entire database! I can't argue with... but I haven't any knowledge on how to do it from frontend with cakephp 3 |
# |
Oct 6th 2016, 14:49 |
dereuromark |
and I can confirm it is passed to the adapter all the way like this |
# |
Oct 6th 2016, 14:48 |
dereuromark |
I get "?error=redirect_uri_mismatchanderror_description=The+redirect_uri+MUST+match+the+registered+callback+URL+for+this+application" though but the domain matches both in github and local setup (http://app.local/account/login) |
# |
Oct 6th 2016, 14:42 |
dereuromark |
You need sth like ``` 'wrapper' => [ 'path' => ..., 'class' => 'Hybrid_Providers_GitHub' ] ``` |
# |
Oct 6th 2016, 14:41 |
dereuromark |
;) I was too focused on trying to get the github thing to work, it is not trivial |
# |
Oct 6th 2016, 14:40 |
admad |
well you didn't follow the readme :slightly_smiling_face: Don't load the plugin's bootstrap if you don't want to use separate config file |
# |
Oct 6th 2016, 14:33 |
dereuromark |
I have it in config default and bootstrap overloads it |
# |
Oct 6th 2016, 14:33 |
dereuromark |
ah, that kills it |
# |
Oct 6th 2016, 14:31 |
admad |
configuring GH adapter should be same as others, adding it in the config array in config/hybridauth.php |
# |
Oct 6th 2016, 14:29 |
dereuromark |
It reads them from Hybrid_Auth::$config["providers"] |
# |
Oct 6th 2016, 14:29 |
dereuromark |
Resulting in "No provider ID specified." |
# |
Oct 6th 2016, 14:28 |
dereuromark |
looks like it doesnt like my setup, always ends up in the auth class with 'OpenID' => [ 'enabled' => true] Even though my setup specifically says Github |
# |
Oct 6th 2016, 14:26 |
admad |
i have only used FB and twitter so no idea how hybridauth uses external adapter |
# |
Oct 6th 2016, 14:26 |
admad |
@dereuromark the github adapter should be usable through composer right? |