use croogo as plugin in main cakephp app - cakephp

Im working with cakephp for few months and recently I came across croogo, a cakephp cms system. I've tried it and I should say its an awesome system.
Is it possible to use it as a plugin in my main site. I want to use it just for the admin part and rest of my application unattached to it. Ive tried loading its bootstrap file from my main app and also by linking routes to it. I always get errors.
Can someone have any idea if croogo is meant to be used like a plugin or does it have to be used seperately?

"Beginning version 1.6.x, Croogo has been updated to be installed as a vendor package"
=> So yes, it is possible to use it in your code - just not as plugin, but vendor.
See
https://github.com/croogo/croogo/tree/3.0#installation-using-git

Related

How to use spatie/laravel-permission package with react js for roles?

I want to develop a system module based using Laravel 6 and reactjs 16. It will be included Roles and Permissions functionalities.
I am using https://github.com/spatie/laravel-permission for roles permissions. I just want to know how to use it with reactJs.
Laravel 6.0 is being used for database and backend functionalities.
IMHO it's not depending from front-end technologies (like react).
And suggest you to read this article or watch appropriate youtube video.
By the way, I don't think that here we need to write about installation steps for that popular package. Because all that stuff written in the official package Readme, and issues are there too. So if you will get an error, or have some troubles, people will try to help for the specific case

Angular App to AppGyver- Port to Mobile Solution

I'm beginner to appgyver steroids.
I have angular project. Now I need to make iOS application using AppGyver.
Instead of modify root view and point it to my angular app url (http://www.yourapp.com) can I add my angular app source / angular project build to AppGyver project make it iOS application.
Appreciate your comments
Gayan
You can run steroids create yourApp. This will walk you through the generation of a multi page or single page application. You can then move the structure of your angular application into the /app folder. Check out the example that the steroids create method generates and see the structure there.
You may notice some differences at first. It may take some testing to see what is failing if anything once you port things over. If you used $rootScope for anything it is not as reliable in my experience in an iOS or Android application. There are other methods for passing data between views and broadcasting (publish/subscribe) to other controllers.
You will want to use the iOS simulator or http://localhost:4567/app/moduleName/oneOfYourViewsYouAreTesting.html in your favorite browser while steroids connect is running to debug.
The version of Angular that is coming with this now is AngularJS v1.3.15 installed via bower. You may want to verify things are compatible with your current Angular version.
Ionic is used and Supersonic so you may see conflict with existing CSS or even javascript depending on what you've implemented.
There will be some tricks to learn about preloading views in the structure.coffee file and load times / rootView / initialView. There is lots of support if you come across any issues.
This forum has been really helpful in figuring out any issues I've come across. The Appgyver team is usually pretty responsive to questions directly as well.
They are updating the platform in a few days, and they say big changes are coming. They are hiring a lot of developers right now to take care of GitHub issues as well as build out the rest of their incomplete components.

Pluggable-app-style for angularjs website

We are building a website allowing 3rd party (ourselves included) to write plugins and install into the platform. Basically, you can imagine of wordpress written in angularjs, and webmasters have options of install modules (for example Q&A , forum/whatever) into it.
I am thinking about something like this. Using server code to create main-app code (app.js as in standard naming)
angular.module("thePlatform", [
'plugin.forum',
'plugin.musicStore',
'plugin.whatever'
]);
whereas forum/musicStore/whatever are plugin that can be installed/unsinstalled into the platform.
Is that a good choice ? Or should we go for the SinglePage-Solution like that? If you have better approach, please !
Note: I did google before asking but couldn't find any answer:
https://softwareengineering.stackexchange.com/questions/239056/angularjs-structuring-a-web-application-with-multiple-ng-apps
AngularJS websites: single SPA vs multiple SPA apps/components

How to use correctly a CakePHP plugin

I've developed a bug tracker using CakePHP 2.4.4. I made this as a standalone cakephp app but now I wanna transfer it to a plugin, in order to reuse it in other projects.
As I already read at the docs (http://book.cakephp.org/2.0/en/plugins.html), I have followed the instructions from there and created the correct folder and files structure. This is what i've done so far: https://github.com/lubbleup/BugCake/tree/plugin
But now,when i try to use the plugin in a separate cakephp installation, I cannot understand how to make of the plugin and, for example, use it's controllers and functionality etc.
can anyone help me out here?
ps:this is my first time trying to create a cakephp plugin
Thank you in advance!
You have to load the plugins your parent app in APP/Config/bootstrap.php
CakePlugin::loadAll();
You do not need AppModel or AppController in your plugin. Your plugin has an own AppController/-Model named PluginNameAppController/PluginNameAppModel.
You can call your plugin at http://host/plugin_name/controller/action/[...]. In your case http://host/bug_cake/issues/view/1 for instance.
But you can also use custom routes in your plugin with plenty of options.
Hope that answers your question—if not, comment.

Cakephp vs Joomla Components and Modules

This question is about Cakephp, I am really confused on cakephp I just noticed that if i'm not mistaken cakephp does not have components and modules like Joomla does?
am I right that cakephp doesn't have components and modules?
I think your a little bit confused about the two concepts. You can't compare cakephp and joomla cause joomla is a CMS (Content Manger System) while Cakephp is a PHP Framework. Thus Cakephp has her own logic and joomla components and modules are addressed in some other way (blocks, elements, plugins, behaviors ect ...)
I think what can be compared with the CakePHP framework is the Joomla framework
http://framework.joomla.org with whom you can write your web apps. But the Joomla framework does also not come with component, module and plugin support as this is CMS specific.
It was recently released in version 1.0 http://www.joomla.org/announcements/release-news/5521-joomla-framework-1-0-released.html.

Resources