i have a web application developed using cakephp.
Now I need to make some changes and I need to use the bin / cake command, but the bin folder is not present and not even re-executing the composer command is this created.
How can I regenerate it so that it refers to the version of cake already present?
Thx
Try these steps:
Open your composer.json and search for your cakephp version by the key "cakephp/cakephp"
Create a brand new cakephp project with this version with the command:
php composer.phar create-project --prefer-dist cakephp/app:^3.8 my_app_name
where 3.8 should be your cakephp version and my_app_name your application name
Take the bin folder and copy/paste it to your actual application.
Related
i have cakephp3.3 windows and i need to upgrade to cakephp3.6. Checking the docs i see there is no tool available. Checking the migration guides i am not seeing any issues with my code in cake3.3 with newer versions.
Do i simply create a new instance of cake3.6 and create models,controllers again using bake and then copy over code to see if this works? what is an efficient way
The docs in cakephp are not clear on this process. do i upgrade to 3.4 then 3.5,3.6?
https://book.cakephp.org/3.0/en/appendices/3-x-migration-guide.html
Use composer.
For Windows, you can download it from here. After installation, locate composer.json file in your CakePHP application directory, and look for "require" part, and update line regarding CakePHP as follows:
"require": {
"php": ">=5.6",
"cakephp/cakephp": "3.6.*",
....
}
Then, in command line, navigate to your CakePHP installation directory and fire composer update. After a while you should have your CakePHP upgraded.
More info about updating to new version can be found in docs:
Keeping up to date with latest CakePHP changes
Another solution was given which was to install a new instance of cakephp and just copy over scr folder and other relevant code in the new instance. This is more work but the conversion from 3.3 to 3.6 isnt very clean with a composer update
I am trying to make test environment for my cake project however the migration from php 5.X to 7.1.0 proves to be a nuisance.
I have succesfully installed a new fresh apache2.4 vc14 x64 bit installation.
This apache installation uses a fresh PHP vc14 x64 7.1.0 installation. Both have been checked and are indeed working perfectly.
Now the problem:
I have a cakephp product using a shared created library in the plugins folder, this was working perfectly in CakePHP 2.8.5 using php 5.x. This plugin is loaded in the bootstrap and used the way cakephp intends us to. However the moment i try to run the old project in the fresh installation it is suddenly unable the load the plugin files. Again everything is loaded in the bootstrap and usage has not been changed whilst moving the content to its new location. I have checked a fresh cakephp installation in the new environment and this is also working splenditly.
I am quite baffled at the moment has anyone having experience using cakephp encoutered this particular problem feel free to fire away with some ideas as to what i might have missed.
i will show some code how everything is loaded and used.
CakePlugin::Load('RemFlex');
<?php echo $this->Html->css('RemFlex.flexdetail'); ?>
<?php echo $this->Html->script('RemFlex.flexportal'); ?>
the plugin directory looks like this
Cakephp_program
-App
-Plugin
-RemFlex
-webroot
-js
-Css
-Controller
-Vendor
Fixed this problem by enabling the rewrite_module in the httpd.conf file of the apache installation. This enabled my htacces to actually work.
I'm new to Laravel, trying to install packages. I've tried many packages to include in my project like AdminLTE and Blogify. as the AdminLTE manual and Blogify manual says exactely.
Installed the packages using composer:
Composer require <package>
I've tried to publish the packages to use:
php artisan vendor:publish
or publish as said in the manuals, but the command gives me output:
Nothing to publish
and public folder doesn't change at all and no folders or files added.
How to integrate these packages into my Laravel 5.2 app in right way?
If possible can some one explain what is the problem and how to get over it and have ability to use it in my blades?
Note: I'm using Windows 10 and XAMP local server,I cant use commands like npm and any thing related to Mac
Step 1: composer require jeroennoten/laravel-adminlte
C:\wamp\blog>composer require jeroennoten/laravel-adminlte
You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug
Using version ^1.6 for jeroennoten/laravel-adminlte
./composer.json has been updated
> php artisan clear-compiled
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Installing jeroennoten/laravel-adminlte (v1.6.5)
Downloading: 100%
Writing lock file
Generating autoload files
> php artisan optimize
Generating optimized class loader
Step 2:Add the service provider to the providers in config/app.php:
Step 3:php artisan vendor:publish --provider="JeroenNoten\LaravelAdminLte\ServiceProvider" --tag=assets
C:\wamp\blog>php artisan vendor:publish --provider="JeroenNoten\LaravelAdminLte\ServiceProvider" --tag=assets
Copied Directory [\vendor\jeroennoten\laravel-adminlte\resources\assets] To [\public\vendor\adminlte]
Publishing complete for tag [assets]!
I have the PHP IDE version of NetBeans 7.2 and have installed the plugin successfully (it is shown as enabled in the plugins list and appears in the project properties). However, nowhere do I see a place to select the framework as shown in the download page (http://plugins.netbeans.org/plugin/44579). When creating a new IDE there is no step 4, just 1,2, and 3...so obviously something is missing. Is there a dependent plugin I need or maybe I need the full, huge version of NetBeans?
I am using Windows 7, PHP 5.3, CakePHP 2.1.2
Thanks
The plugin was working correctly, however it requires that there only be 1 app in the project folder in the same directory as the CakePHP lib folder. The NetBeans project folder is not the 'app' folder that contains the Controllers and Views folders, instead it must be the folder that contains the app and lib folders.
Just go to NetBeans' main menu Tools > Plugins > Available Plugins. Choose the plugin you want and install it.
I am very new to CakePHP and want to know how to install it. Also, can you tell me if the installation process is similar to Joomla! installation. Does CakePHP have an administration interface?
cakephp has administration options. Please put the whole installation in the apps folder on your web-server. Point your browser to the folder i.e. If using a local server, 127.0.0.1/index.php/
Follow the instructions shown.
If you need a cakephp based cms you can use croogo
On Windows:
In xampp the public directory is httdocs. There you copy the cake directory. In the webbrowser you call it with "http://localhost/[your_cakedirectory]" ...
You have to read the sections of installations in the cookbook.