I am working on a Cakephp 2.7.3 application and I need to install CakePdf Plugin.
So far all I've found is the CakePdf version that requires Cakephp 3.0+, including when I try using composer and GitHub.
Am still not an expert in CakePHP. Kindly Assist.
CakePDF release 1.0.3 is compatible with CakePHP 2.x.
To install it, add the following to your /app/composer.json file:
{
"require": {
"friendsofcake/cakepdf": "1.0.3"
}
}
and run
localhost:~/path/to/cake/app$ composer update
Related
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.
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 a beginner into CakePHP, I am trying to make a setup of CakePHP environment in my Windows 7 PC. I could successfully install composer, but when i run this command(composer create-project --prefer-dist cakephp/app myapp) to install CakePHP v3.x, I get an error [InvalidArgumentException] Could not find package cakephp with stability stable.
Here is the correct and right Screenshot of the error:
Screenshot1
I am using WAMP server, and my PHP version is 5.3.8
Please help me in fixing the issue.
Thanks in Advance
I only means that you have not installed GIT yet, or forgot to set in PATH environment variable.
I got the same error I did upgrade Wampserver to 2.5 It's working fine.
because it has PHP 5.5.
I have been using Netbeans v8.0.2 and the cakephp plugin works perfectly fine on cakephp v2.x. Recently, I started a new project in cakephp v3.0.2 and the cakephp in Netbeans failed to recognize the project as cakephp.
Is it because cakephp v3.x is still not supported on Netbeans yet? If already supported, what are the configuration to take note to get it to work?
try https://github.com/junichi11/cakephp3-netbeans
Cake3 support is now a separate plugin.
https://github.com/junichi11/cakephp-netbeans
Environment
[...]
CakePHP 3.x (early support)
About CakePHP 3.x
Currently, This plugin doesn't recognize CakePHP3.
https://github.com/junichi11/cakephp-netbeans/issues/117
https://github.com/junichi11/cakephp3-netbeans
I need the forum plugin for cakephp 1.3. I couldn't find this old version. Does anyone know where can I find it and how can I install it? I could just find the new version of cupcake from here.
The 2.x branch of the Forum plugin still supports CakePHP 1.3, as can be read in the Readme of that branch.
Just clone the repository and then checkout the 2.x branch:
cd app/plugins/
git clone https://github.com/milesj/Forum.git
git checkout 2.x
Then you should be ready to integrate it into your app.
Forum v2.0
A fully robust and powerful CakePHP forum plugin.
Requirements
CakePHP 1.3.x (Tested with 1.3.9)
PHP 5.2.x, 5.3.x
Utils Plugin - https://github.com/CakeDC/utils