My first CodeIgniter program: where should I write it? - php

I just installed CodeIgniter, and it gave me the source code.
From what I understand, I should move the source code to my local server folder.
I did the configuration; but now what should I do next? What should I use to write code -- DreamWeaver, for example, like any other PHP file? Is there any GUI program dedicated for CodeIgniter?

The very first thing you should do is read the documentation. I do not use it myself, but I know for a matter of fact that CodeIgniter has some documentation. And there are heaps of introductions and getting started materials. (It also explains how and where to unpack it.)
http://codeigniter.com/tutorials/watch/intro/
http://codeigniter.com/user_guide/overview/getting_started.html
http://www.google.com/search?q=codeigniter+introduction
Btw, there are no clicky-coloury apps that do the coding for you. You will have to resort to an editor; and yes Dreamweaver will do. And then learn the API.

Codeigniter has excellent documentation, wiki and forum. For coding you can try Notepad++ (http://notepad-plus-plus.org/) which is free, light, colors syntax, have plugins,... and you can even put it on the usb.
After that you can try one of many IDE like Eclipse or Netbeans.

textmate has a bundle for CI, i do alot of CI development and I use the following
maamp for localhost
http://www.mamp.info/en/index.html
textmate for php html / css dev
http://macromates.com/
navicat for mysql managment
http://navicat.com/

Related

Dreamweaver style checkout in an IDE

I'm a budding php developer and my company requires that I use Dreamweaver to check files in and out from the server. This is really the only feature of Dreamweaver that I like. It's super easy to get a fresh copy of a file from the server and keep track of who has a file etc. But as an IDE it leaves tons to be desired. Obviously I could use Dreamweaver to check out the files and then edit them in another tool, but I'd rather not. I can't be the first person to be in this situation, What should I be using? Ecplipse? NetBeans? has someone written a plugin for something for this?
Sounds like you need to look at a source control solution, such as Git.

Dreamviewer & Zend Framework project: Wrong path mapping

I tried all the day to set up a Zend Framework project in Dreamweaver CS5.5. Now, after a few hours spending on google and the CS5.5 doc, i am still not able to debug a Zend Framework project in Dreamweaver:
Let's say, i have a module called "admin" in /application/modules/admin. If i try the Live View feature, Live Code, or the dynamic files discover, it fails at all.
If I try to debug the IndexController of the AdminModule, Dreamweaver always tries to render the page http://foo.bar/application/modules/admin/controllers/IndexController.php, insteadof http://foo.bar/admin[/index/index]
Is there any way to get those features working with Dreamweaver CS5.5?
Also, the include path does not work. The /public/index.php includes something like require_once 'Zend/Application.php';. Where does Dreamweaver search? He tells me that he can not find the file http://foo.bar/Zend/Application.php. Omg, srsly?
I hope there are some Dreamweaver PHP developers out there which can help me.
Btw, I am using Zend Studio at the moment and wanted to get a "quick" look into the new CS5.5 features :/
Update 16.05.2012
Little update from me. I'm currently Using PHPStorm from JetBrains. It is the best IDE I ever had. (Ecpilse/Aptana/Zend Studio/PHPDesigner). Autocomplete for nearly everything, huge plugin repository and much nice features like LESS Support, NodeJS Support, PHPUnit integration or an integrated Git Client. Give it a try. It's free for open source projects.
Dreamweaver can technically work with anything, but it's really designed to work with procedural php.
I would recommend the eclipse software with the pdt plugin or net beans. WAY better for supporting a zend framework project imo.
I'm not bagging on dreamweaver, it's a nice tool (especially for html/css), but for OO PHP programming, it's really not designed for it.

Integration of dreamweaver and php

Its my first project with PHP, I am still learning phase. Designer is working on dreamweaver to design the web site. As I developer I only understand code and feel comfortable with working on eclipse.
How can we integrate the project, that we both are looking at the same file but with different software/IDE.
Secondly , I will be using XAMPP for Windows but I am confused how the designer will use apache.
All I am looking for what to tools and practices are used when Dev's are working eclipse and designer are working Dreamweaver ?
you should keep you code separated from the html in different files. have you looked into mvc architecture?
if you use an mvc architecture or similar separation of html and php source files, you guys should never really be working on the same files anyways.
if you choose not to, set up an svn (subversion) server so that you guys can work on your project independently of one another but stay in sync. it shouldn't matter what ide anyone uses. dreamweaver has functionality to use subversion for source control, test and production server setup for easy sets/gets. you basically set it up the same as an ftp.

How to use Visual Studio for WordPress development?

Does anyone use Visual Studio to do WordPress development? If so, how do you do it?
Programming for Wordpress is mainly coding css, php, html and js files. If you're asking about using Visual Studio for this scenario, I'm assuming you want a plugin that provides code hints for WordPress development API. Since I don't know anyone, I'm going to give you some other options.
Dreamweaver and CodeLobster come to mind as commercial applications. If you want something in the open source world, I recommend you a normal multi language IDE that supports PHP: the most important thing here is to use one that at least supports some kind of snippet functionality.
That goes from Netbeans to Aptana (which is based on Eclipse) to notepad++ with snippets functionality. The last one is an interesting solution since it's really lightweight but you will need to create your own snippets for Wordpress API functions and hooks.
I had Aptana installed in my machine in the past, but now I'm using gVim with snipmate plugin and some snippets of my own that I create when I realize I'm doing repetitive tasks.
No built-in support for VS, and I guess there won't be, but there are some options like the answer on this thread for Expressions. The other thing I've been looking at recently is WebMatrix - it looks promising in that it supports WordPress.
Did you check out VS.php ?
I've looked in vain for a decent plug-in for VS that would properly handle PHP, and have never been able to find one.
I always end up back with Netbeans.
Textmate :)
Old question, I know. But if I came looking, someone else probably will as well. :)
Couple of videos here about the plug-in
PHP Tools for Visual Studio
A wordpress plugin developer saying how he uses visual studio code with plugins to run his wordpress:
https://deliciousbrains.com/vs-code-wordpress/
He seems like he knows what he's talking about.

CodeIgniter with Eclipse PDT, is clean integration possible?

I am attempting to setup codeigniter with eclipse but am getting project errors. From what I understand this should be as simple as creating a new project in eclipse and pointing to the root directory of codeigniter. This properly loads up the codeigniter files but eclipse reports several errors. Looking into the files, it seems like the errors are coming from html files and/or files that print html. For instance, footer.php is showing up as having an error because there is a closing tag but no opening tag. Any suggestions on how to overcome this? At this point would code completion / debugging be too much to ask for as well?
UPDATE: so from what I am gathering from the response below (and searching around on the web) is that when using codeigniter with eclipse one can only take advantage of the code completion / editing features? I also noticed that I am getting NoClassDefFoundError when attempting to open some of the .php files in the eclipse project tree for editing. Surely I must be missing something and there is a way to achieve tighter integration with codeigniter and eclipse? (i would strongly prefer to stick with eclipse as opposed to switching ides) Or maybe this is an issue with my eclipse/pdt setup?
UPDATE 2: I just downloaded the latest eclipse version (galileo) and it seemed to fix all of these issues! except for debugging of course ...
you can achieve tighter integration by initializing the Ci core classes in CI_Base constructor which will also allow you to get auto complete for core classes check out these links:
http://www.gostomski.co.uk/codeigniter/getting-full-auto-complete-with-codeigniter-in-eclipse
http://hetal.wordpress.com/2009/09/04/working-with-eclipse-and-code-igniter/
you will get lots of html errors because the html has been broken into chunks
and is not a complete document
just ignore them thats what i do (there are settings somewhere that control what errors are validated against in eclipse)
i still use the php/html/js code completion and it works fine even with the errors
if you are using svn version control, add subclipse plugin, so you can do that from within eclipse too
Try Aptana.
The last time I checked I was able to do a step by step debug on it and did not see any errors in my project. It is also built on eclipse, so there is nothing new to learn.
For what it's worth, I have been able to get debugging to work using XDebug and the Netbeans IDE. If you cannot get debugging to work in Eclipse you might give Netbeans a try - if for no other reason, to have the ability to debug should you ever need to step through your application's code...

Categories