# |
Feb 10th 2020, 21:04 |
btx |
well I’m a dum dum so having CakePHP code samples means my brain hurts less |
# |
Feb 10th 2020, 21:02 |
ndm |
I mean the concept should be relatively easy to grasp in general unless things are written in Brainfuck. |
# |
Feb 10th 2020, 21:00 |
ndm |
Well, of course ideally PHP backend :upside_down_face: |
# |
Feb 10th 2020, 21:00 |
btx |
If it’s Vue + Cake I already know Cake pretty well so that’d help |
# |
Feb 10th 2020, 20:59 |
btx |
Yeah but I’d prefer to not have 2+ unknowns. I’ve only dabbled in Vue so if it was Vue + .NET or something I’d have to first learn what I’m looking at with the new lang and _then_ learn how to integrate them |
# |
Feb 10th 2020, 20:58 |
ndm |
classic |
# |
Feb 10th 2020, 20:58 |
ndm |
Lol, the first tutorial I stumble upon on Google uses Comic Sans and teaches me how to do SQL injection vulnerabilities : ```$name = $_POST["name"]; // ... $sql = "insert into contacts (name, email, city, country, job) values ('$name', '$email', '$city', '$country', '$job')";``` |
# |
Feb 10th 2020, 20:56 |
ndm |
I don't know any, but shouldn't theoretically any Vue + backend tutorial work with regards to how optimizations would generally work? |
# |
Feb 10th 2020, 20:51 |
btx |
or really any JS front-end with two-way data binding capabilities for dynamic UIs |
# |
Feb 10th 2020, 20:46 |
btx |
anyone know any good tutorials/posts on VueJS front-end with CakePHP API backend? Seems like I’m always duplicating logic for the front-end. I’m sure there’s a more stable way to approach this. |
# |
Feb 10th 2020, 15:48 |
FunkadelicRelic |
@ndm - Good spot - thanks. I think the @beta installs that old version then. Specifying :3.0.0-beta seemed to do the trick - just need to install NPM for the install to work. I'm going to give that a go now. Thank you! |
# |
Feb 10th 2020, 15:40 |
ndm |
Try `composer require friendsofcake/bootstrap-ui:3.*` or `composer require friendsofcake/bootstrap-ui:3.0.0-beta`, assuming your minimum stability setting allow that. |
# |
Feb 10th 2020, 15:40 |
ndm |
Well that's certainly a little outdated :) |
# |
Feb 10th 2020, 15:39 |
FunkadelicRelic |
I'm showing v0.3.2 installed. |
# |
Feb 10th 2020, 15:36 |
ndm |
You can check your `composer.lock` file, the `friendsofcake/bootstrap-ui` entry should show you the exact version number |
# |
Feb 10th 2020, 15:33 |
FunkadelicRelic |
Hmm, not entirely no. I'm installing using composer require friendsofcake/bootstrap-ui @beta. Is there a way I can check? |
# |
Feb 10th 2020, 15:33 |
ndm |
Are you sure that correct BS UI plugin version is installed? |
# |
Feb 10th 2020, 15:31 |
ndm |
Then I don't really know... |
# |
Feb 10th 2020, 15:29 |
FunkadelicRelic |
Migrations |
# |
Feb 10th 2020, 15:29 |
FunkadelicRelic |
WyriHaximus/TwigView |
# |
Feb 10th 2020, 15:29 |
FunkadelicRelic |
DebugKit |
# |
Feb 10th 2020, 15:29 |
FunkadelicRelic |
BootstrapUI |
# |
Feb 10th 2020, 15:29 |
FunkadelicRelic |
Bake |
# |
Feb 10th 2020, 15:29 |
FunkadelicRelic |
@ndm - Yes. It is listed. |
# |
Feb 10th 2020, 15:29 |
FunkadelicRelic |
Just tried on a brand new project too - same issue on the bin/cake bootstrap install. |
# |
Feb 10th 2020, 15:29 |
ndm |
Does BootstrapUI appear in `bin/cake plugin loaded`? |
# |
Feb 10th 2020, 15:24 |
FunkadelicRelic |
I also see this: $this->addPlugin('BootstrapUI'); - added to my application.php file. |
# |
Feb 10th 2020, 15:24 |
FunkadelicRelic |
- bake test |
# |
Feb 10th 2020, 15:24 |
FunkadelicRelic |
- bake task |
# |
Feb 10th 2020, 15:24 |
FunkadelicRelic |
- console |
# |
Feb 10th 2020, 15:24 |
FunkadelicRelic |
- routes |
# |
Feb 10th 2020, 15:24 |
FunkadelicRelic |
Other valid choices: |
# |
Feb 10th 2020, 15:24 |
FunkadelicRelic |
@ndm - I don't see bootstrap in the list off commands no - on that last error - I get: Unknown command `cake bootstrap`. Run `cake --help` to get the list of commands. |
# |
Feb 10th 2020, 15:19 |
ndm |
@FunkadelicRelic That sounds like the plugin actually isn't loaded. Do you see the bootstrap command in the list of available commands? Was the `addPlugin()` call actually added to your `Appplication` class? |
# |
Feb 10th 2020, 15:18 |
ndm |
you're welcome |
# |
Feb 10th 2020, 15:17 |
challgren |
Ty very much |
# |
Feb 10th 2020, 15:15 |
challgren |
Cool I’ll check it out. I think my brain is fried |
# |
Feb 10th 2020, 15:14 |
slackebot |
<ndm> |
# |
Feb 10th 2020, 15:14 |
ndm |
btw, I've update my Bootstrap UI test app that I've used for development to CakePHP 4.x / BS UI 3.x, might be helpful if you're struggling with things, it shows you all controls, generated HTML, config, etc. https://github.com/ndm2/bootstrap-ui-test-app/tree/foc-3.x |
# |
Feb 10th 2020, 15:13 |
challgren |
Ok, yeah this theme is a PITA. But with your hack it works and loads really fast since it doesnt have to redraw the menu |
# |
Feb 10th 2020, 15:12 |
ndm |
@challgren No problem... I'll look into making this a little easier. Making the `<ul>` inherit the ancestor class is certainly doable, but I'll have to double triple check on how to do it, and the possible side effects |