edit website built in codeigniter

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jonnyfortis
Forum Contributor
Posts: 462
Joined: Tue Jan 10, 2012 6:05 am

edit website built in codeigniter

Post by jonnyfortis »

i have been handed a site that was built in codeigniter, what is the best way to edit this?
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: edit website built in codeigniter

Post by Celauran »

With a text editor.

Seriously, your question is vague to the point of being meaningless. What are you asking? The more specific you can make your question, the better we'll be able to answer.
jonnyfortis
Forum Contributor
Posts: 462
Joined: Tue Jan 10, 2012 6:05 am

Re: edit website built in codeigniter

Post by jonnyfortis »

Celauran wrote:With a text editor.

Seriously, your question is vague to the point of being meaningless. What are you asking? The more specific you can make your question, the better we'll be able to answer.
yeah sorry, it was wasnt it. is it better to get codeigniter installed and use it like that? i havent used it before so need to know how easy it is to set up and use

thanks
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: edit website built in codeigniter

Post by Celauran »

Was CI not included in the package you inherited? If not, you'll definitely need to install it before the site will even run. Do you know which version of CI the site was built against? You'll need to know if you end up having to download CI as a site built on 1.x will likely give you problems if you try to run it on 2.x
jonnyfortis
Forum Contributor
Posts: 462
Joined: Tue Jan 10, 2012 6:05 am

Re: edit website built in codeigniter

Post by jonnyfortis »

Celauran wrote:Was CI not included in the package you inherited? If not, you'll definitely need to install it before the site will even run. Do you know which version of CI the site was built against? You'll need to know if you end up having to download CI as a site built on 1.x will likely give you problems if you try to run it on 2.x
no what has happened is i have just been giving the ftp details, downloaded the content and am editing by hand at the moment.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: edit website built in codeigniter

Post by Celauran »

Check the directory structure. CI may be in public_html, or it may be a sibling directory. Either way, I'd download the whole thing, get it up and running locally, and get it under version control if it isn't already. You definitely don't want to be making changes on the live server, especially if you aren't familiar with CI.
jonnyfortis
Forum Contributor
Posts: 462
Joined: Tue Jan 10, 2012 6:05 am

Re: edit website built in codeigniter

Post by jonnyfortis »

Celauran wrote:Check the directory structure. CI may be in public_html, or it may be a sibling directory. Either way, I'd download the whole thing, get it up and running locally, and get it under version control if it isn't already. You definitely don't want to be making changes on the live server, especially if you aren't familiar with CI.
oh really, i already have started adding content. so what do i do? download CI then import the site into it?
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: edit website built in codeigniter

Post by Celauran »

If you've got FTP access, then CI is already available to you and you don't need to worry about which version to download. Just grab whatever is on the server. Like I said, directory structure can change, so the framework may or may not be inside public_html.
jonnyfortis
Forum Contributor
Posts: 462
Joined: Tue Jan 10, 2012 6:05 am

Re: edit website built in codeigniter

Post by jonnyfortis »

Celauran wrote:If you've got FTP access, then CI is already available to you and you don't need to worry about which version to download. Just grab whatever is on the server. Like I said, directory structure can change, so the framework may or may not be inside public_html.
ok looks like it is already on there. how do i access it? sorry for all the questions
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: edit website built in codeigniter

Post by Celauran »

jonnyfortis wrote:how do i access it?
What do you mean?
jonnyfortis
Forum Contributor
Posts: 462
Joined: Tue Jan 10, 2012 6:05 am

Re: edit website built in codeigniter

Post by jonnyfortis »

Celauran wrote:
jonnyfortis wrote:how do i access it?
What do you mean?
because i have never used it before i have no idea how it works, do i edit the webpages using CI? if so how do i use it. i have never seen it working so am a bit blind on it.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: edit website built in codeigniter

Post by Celauran »

CodeIgniter is a framework. It's just PHP. You don't really want to touch the core. You'll be working in your application directory, mostly in models, views, and controllers. If you feel you need to edit anything outside of application, stop and reevaluate what you're trying to do.
jonnyfortis
Forum Contributor
Posts: 462
Joined: Tue Jan 10, 2012 6:05 am

Re: edit website built in codeigniter

Post by jonnyfortis »

Celauran wrote:CodeIgniter is a framework. It's just PHP. You don't really want to touch the core. You'll be working in your application directory, mostly in models, views, and controllers. If you feel you need to edit anything outside of application, stop and reevaluate what you're trying to do.
ok so i take it i just need to go to the site and use their help. I dont want to edit anything in the core i just want to edit the website. and i presume i need to edit it with CI
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: edit website built in codeigniter

Post by Celauran »

CI isn't an application, it's a PHP framework. You edit the site using the same tools you normally would -- SublimeText, Netbeans, whatever. CI uses an MVC (model-view-controller) structure, so you'll be working mostly in /application/(models|views|controllers). You may want to follow a tutorial on CI to help get you familiar with the framework and how it works.
jonnyfortis
Forum Contributor
Posts: 462
Joined: Tue Jan 10, 2012 6:05 am

Re: edit website built in codeigniter

Post by jonnyfortis »

Celauran wrote:CI isn't an application, it's a PHP framework. You edit the site using the same tools you normally would -- SublimeText, Netbeans, whatever. CI uses an MVC (model-view-controller) structure, so you'll be working mostly in /application/(models|views|controllers). You may want to follow a tutorial on CI to help get you familiar with the framework and how it works.
yes ok, i am following something on youtube at the moment, that should help...i hope
thanks for your help
Post Reply