How to upgrade cakephp version 1.3.* to 2.7.*? - php

I have developed a website using cakePHP version 1.3.14. But now I wanted to upgrade the cakephp version for my website because many function has been depreciated. I also follow the tutorial given on http://book.cakephp.org/2.0/en/console-and-shells/upgrade-shell.html
after doing all this when i run the command ./Console/cake upgrade all on my terminal all goes well, but when I am opening my website on browser it gives me server error-500. I have follow other tutorials as well but not able to upgrade my website's cakephp version. can anyone help me out from this situation and help me in upgrading my websites's cakephp version. Any help will be much appriciated.

I hope these link will be helpful for you.
http://mark-story.com/posts/view/upgrading-to-cakephp-3-0
https://groups.google.com/forum/#!topic/cake-php/pucWIOtrckY

It's a good idea to upgrade the cakephp from 1.x to 2.x. below is the official cakephp migration guide link, This link give you all the information which you required in migrations of your code base. Please follow this and let me know your experiance.
http://book.cakephp.org/2.0/en/appendices/2-0-migration-guide.html
Thanks

Related

How to update a legacy concrete5 package

A long long time ago, I've developed a concrete5 package for concrete5 <= 5.6 for a small non-profit organization. Now, because it has never been upgraded, there are some issues that I can't easily fix, related to the old PHP version. Therefore, I'd like to migrate the web site to a new installation of concrete5 version 8. However, for a fresh install of the latest concrete5, of course my old plugin no longer works. What are the steps to update a legacy concrete5 package to work under the newer concrete5 versions? I couldn't find any info or guides online unfortunately. I have looked at the new documentation on how to develop a package for concrete5 8, but found it very scant. I've changed the namespace of my controller for example, but this is not enough to let the package function. Any insights would be greatly appreciated!
Edit: the code is here
The folder and file structure is mostly the same. YOu have to use namespacing in your classes now. Package controllers have changed a bit in what they extend I think. BLocks are mostly the same. Using JS and CSS assets still works the old way if you prefer but there's a new and better way with asset management.
Feel free to contact me by PM on the concrete5 website my username is mnakalay. There you can tell me more about your package and what it contains (blocks, attributes...) and I can give you a few pointers

Codeigniter Version Upgradation - 2.1.4 to 3.1.11 in HMVC Structure

In one of our Codeigniter Project we are facing issues while upgrading it's version from 2.1.4 to 3.1.11.
We have followed Codeigniter Official site to upgrade the version but as we have HMVC Structure that method is not working properly.
We have followed the method mentioned in these sites - https://codeigniter.com/userguide3/installation/upgrade_300.html
and https://www.chuongduong.net/ci3/installation/upgrade_300.html.
But by following both the sites and solving the errors after that we reached to the 404 error at last.
Can anyone please help us here? Anyone who has any idea about upgradation in HMVC structure.
Let me know if you need any information.
Thanks.
replace index.php file and add error folder from new downloaded Ci3 to location application/view/ in your project

laravel 5.4 sitemap error

I want to install this package in my project
https://github.com/spatie/laravel-sitemap
but the installation's failed. the error is
Anyone encountered this error. or their have other better package for laravel sitemap? any tutorial? thanks everyone :)
The error message is pretty clear. You're trying to install spatie/laravel-sitemap:^3.3, which requires laravel/framework:5.5 or higher. So you need to either upgrade to use Laravel 5.5, or use an older version of spatie/laravel-sitemap.
The Github repository lists the available releases. I would suggest looking at v2.4 as a starting point, as the ChangeLog for v3.0 mentions about adding Laravel 5.5 support.
composer require spatie/laravel-sitemap:2.4
Edit:
You asked where to put the generator code. It isn't something you're going to want to run on every request, so I would suggest creating a route dedicated to creating the sitemap.
// routes/web.php
Route::get('sitemap/generate', function () {
SitemapGenerator::create(base_url())->writeToFile($path);
});

How to integrate laravel packages?

my next question is about Laravel, especially how to integrate custom packages. I have downloaded that package:
https://github.com/Riari/laravel-forum
Following the instructions i have installed it and registered the Providers, but now i am not able to integrate that forum in the laravel application, that i am developing. I am newbie to Laravel, so i have totally no clue how to start with.
I have searched for any tutorials, but found nothing.
If anybody can show me how to integrate the above package or give me a nice tutorial about integrating packages with laravel i will be thankful.
Thanks
Did you try running the following command?
composer require riari/laravel-forum:~3.0
That should update your composer.json and add the new dependency.
Also, have a look at the guide that you can find in the repo.

How to manage eclipse project on remote computer; ssh, ftp?

Usually I'm creating project work space on my localhost (win). As soon as my code is tested I'm committing it into repository.
But some days ago I've faced a little difficulty. My customer want me to write code right on his server because he have some handmade binaries working only on his machine (solaris). I really don't know what to do. I've tried Eclipse plugin for connecting to remote servers, but I'm still unable to create remote project.
Any ideas?
PS: Sorry for my English :)
Thank you.
You don't really need a plugin to accomplish your goal. The following tutorial is aimed at Zend Studio, but I believe the information is generic enough that you can use it with just Eclipse: http://kb.zend.com/index.php?View=entry&EntryID=414

Categories