Hi Gordon,
On top of the comments of others I would suggest that if you're taking
the leap from custom scripts to a MVC framework that you try CodeIgniter
but try it for a small project. I chose CodeIgniter for a medium sized
application (14 models, 12 controllers, 62 views) primarily for the fact
that it supports PHP4 (we were delivering onto a uncontrollable legacy
server) and that it seemed easy to use. There are some nasties though ...
1. The helpers define themselves as functions in the global namespace
(rather than using classes that hook into the CodeIgniter object) which
results in some stupidity like a helper defining a function called
“set_value” which just happens to retrieve the value as validated by the
form validation “helper”. The potential for function name conflicts
seems large.
2. You can't access one model from another, without first calling
get_instance function (grr, see point 1).
I'm not saying don't try it (in fact I used it as a good introduction to
the world of MVC) but don't set your business up as a CodeIgniter shop
based on what it claims it can do. We (Turboweb) use the Zend Framework
as our framework of choice and it seems pretty robust (sometimes
over-engineered) but it is a big step to go from no MVC experience into
using writing a MVC app with Zend Framework.
Cheers,
- Bob -
ps. the Zend Framework is useful without writing a complete MVC app.
On 24/02/10 23:40, Gordon Stewart wrote:
Hello,
Has anyone or is anyone using Codeignighter ? (if you don't know what
it is, dont worry - Or you can google it)
my website administrator is thinking of adding it,& asking me to
learn it.
I am familiar with PHP Smarty.. But our site is getting a bit big,&
we want to 'standardise' it into a common format.
I see there are 1 or 2 online tutorials (videos) - but my PC has no
sound...
Question :-
- are there any quick / easy tutorials or overviews etc on basic
functions ?
- I have various functions already,& cannot (so far) see how
Codeignighter improves the functions ? (apart from putting them all
in a directory...)
Thanks for any replies....
--
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]