473,395 Members | 1,495 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

is it worth using a framework or just adopt a modular approach?

Just starting php and think it may be a good idea to use a framework to establish good codeing practice from start.
Have downloaded and installed codeigniter on my local machine.
when I have produced my hello world or whatever, how do I upload it to my isp server? do I just upload files from controller and view folders? upload project folder, the whole codeigniter setup or what?
does it depend on my isp having codeigniter support built in or what?
Thing is, as I understand it a framework such as codeigniter changes the way that info is passed between modules so, does the code produced in a given framework depend on that same framework being present on the live host isp?
If the case is that the host isp MUST have codeigniter (or any other framework) installed then it seems to me that unless you have your own server you are stuck?
Is it possible to adopt a similar modular approach using standard php coding?
Sep 15 '10 #1

✓ answered by TheServant

Either edit the index file to point to the splash view, or yes, replace the index file. If you are keeping CI on there, I would make a splash view and point the index to that, but if you are going to try without a framework to start with, then, just get rid of all CI files and have your own index file.

There are lots of good editors to make PHP writing easier, like:
Notepad++ (free)
PHPDesigner (~approx. 45 USD - I use this one for PHP)
And even NetBeans (free) has a PHP IDE (although I have never used this for PHP)

All these just help with highlighting code, changing colors for things. It's much more user friendly than classic notepad. Just stay away from Dream Weaver...

4 1448
TheServant
1,168 Expert 1GB
A framework like CI should be entirely uploaded to your server directory. So where you would normally have your index.php and all that, you can put the contents of the CI file (which includes an index.php) there.

Then, you would simply edit/update/upload into your MVC folders.

While a framework is great for bigger projects, if you are only starting to learn PHP you may be getting in a car before you understand the wheel... The pleasure of CI is it saves you time as it has already made classes etc, but if you don't understand the alternative, or how to do it without the framework, you will probably end up with a bland CI program. It's the hard yards without a framework that make you understand the framework, and use it better.

If you already know PHP, and are familiar with the MVC approach, go nuts as it's a great framework.

However all this is my opinion and others (experts) probably have some good (possibly contradicting) advice.
Sep 15 '10 #2
thanks for the advice, may possibly stick with notepad and plenty head scratching for now then. When you say codeigniter already contains an index.php file it points to the welcome screen, so how would I get visitors to see my splash screen instead? Simply use my own index file?
Sep 15 '10 #3
TheServant
1,168 Expert 1GB
Either edit the index file to point to the splash view, or yes, replace the index file. If you are keeping CI on there, I would make a splash view and point the index to that, but if you are going to try without a framework to start with, then, just get rid of all CI files and have your own index file.

There are lots of good editors to make PHP writing easier, like:
Notepad++ (free)
PHPDesigner (~approx. 45 USD - I use this one for PHP)
And even NetBeans (free) has a PHP IDE (although I have never used this for PHP)

All these just help with highlighting code, changing colors for things. It's much more user friendly than classic notepad. Just stay away from Dream Weaver...
Sep 15 '10 #4
Markus
6,050 Expert 4TB
Do *not* stick with notepad - that's just inflicting unnecessary pain on yourself. And, yes, DreamWeaver is a much greater evil.
Sep 15 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Tim | last post by:
Dear All, I have been working with VB.NET for the last 5 months or so as a solo developer for a small business. I have already started developing the application but have hit a snag with the...
1
by: Nick Smith | last post by:
Hi all, Is it possible to use v1.1 of the .Net Framework in Visual Studio 2005? In VS 2003 you had a property where you could set the Framework version to use. I don't seem to be able to locate...
6
by: Dave Veeneman | last post by:
Is XML Serialization worth using to persist classes to file? I've been trying for a day to get it to work on some fairly simple classes. what I'm getting back are error messages like "There is an...
1
by: Jim in Arizona | last post by:
I've built a small IT helpdesk ticket system using the .NET 2.0 Beta 2 framework w/VS 2005 Beta 2. This system sits on an IIS 5.0 server, fully patched. The IIS server is set for windows inegrated...
4
by: TS | last post by:
i want to be able to load a dll from the bin folder, but want a mechanism that will work without directly specifying \bin, even with changes that come with vs 2005. i know i can use...
0
by: Chris Davoli | last post by:
Environment is: Win server 2003, SP1, Installed both Framework 1.1 and Framework 2.0. I've got a 2005 web site (converted from VS2003). When I deploy to test server it gives me the following...
0
by: abraxas | last post by:
I was able to configure an asp.net app with the 2.0 framework to store session state information in a SQL Server 2000 database. - Is the .net framework 2.0 a supported configuration by MS? - Is...
0
by: Lars | last post by:
Hi How do I tell my ASP.NEt project to use framework 2.0 in stead of 3.5. My webhoast doesn't support .NET Framework 3.5 they only supports 1.1 and 2.0 Lars
0
by: Freddy Coal | last post by:
Hi, I would like make new projects in VS2008 (actually I work with VS2005) because in my opinion is more faster than VS2005, but in the moment I need only framework 2.0. Well my problem are with...
0
by: Afshar | last post by:
Hi there, We have newly upgraded to VS 2008 but I want to check if everything is just in .net framework 3.5 or not. Thanks in Advance afshar
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.