Welcome Guest, Not a member yet? Register   Sign In
Writting support classes?
#10

[eluser]Knitter[/eluser]
[quote author="bretticus" date="1254432979"]
Ahhh... wrong. It's the class definition for controller. It most certainly is not a controller.
[/quote]
Hum... so inheriting from a Controller makes my class be.. not a Controller? I know it may not be accessible from an URL, but it is, by definition of inheritance, a Controller, nevertheless, not the point.

[quote author="bretticus" date="1254432979"]
I didn't even finish reading your post. It seems that each your posts is an attempt to promote some java mvc framework and point out the follies of CI and PHP.
[/quote]
Promote Java? I mention Java on one little sentence so that other users could better understand my background. Any other reference is a response a user's questions. I have not, and do not intend to promote anything or point out anything.

[quote author="bretticus" date="1254432979"]
So that brings us to the question of the hour...Why are you even using CI?
[/quote]
Because I want to speed up development of PHP applications I write, ease that development and because CI is the best of all frameworks I tested, because I really like the framework and, if I want to create the usual web application with a few dozen controllers and views and a few tables for some data, I can complete do it in an afternoon. And that IS just great. But then again, that question of the hour of yours, is just not to the point. I appreciate you taking the time not to read the posts, and thank you for being helpful in your reply.

Quote:What do you mean by “scattered around the code
Including them, as necessary, will create several includes throughout the code, the classes have many relations and include many other classes, and nearly every class is a mix of inherintance and composition. There is always the usual already included class, and yes I know I can require_once/include_once, or some file that changes name and I have to search/replace or something alike. Wouldn't having an autoload function that automatically loads the classes I access great? At least it's what I've been doing in PHP almost ever since I write PHP.

[quote author="BrianDHall" date="1254434442"]It seems to me that you are trying to do a 'port' of your code which already has quite a bit of MVC concepts, but those concepts don't seem to fit how CI works.[/quote]
Yes, that is, sort of what I'm doing, I'm porting an existing project, and the some of the concepts that I have always used and that is not going well Sad.

[quote author="BrianDHall" date="1254434442"]
In short, you need to either port your code and accept that CI does things differently, or setup considerable extensions and customizations to the framework to behave differently than it was designed to behave.[/quote]
I guess the all point of my post is to really understand if I have to go all that way, is really CI design in such a way that so many changes are needed or am I missing something that would allow me to have what I want without that much work.

Code:
$user = new User();
$user->usergroup->get();
$user->usergroup->promote('admin');
Now that is great! Thanks for the example and the extension name, I'll really have to have a look at it.

[quote author="BrianDHall" date="1254434442"]
You seem to expect to be able to use your own previously made controllers, models, and views seemlessly or with little effort automagically in CI - all while either wanting CI to use its magic in some instances, but not in others.[/quote]
Of course I don't really expect to just use my code but would like to understand if CI is that flexible, and by flexible I want to say that it doesn't consume 50% of the projects time.

[quote author="BrianDHall" date="1254434442"]
So your choices are to a) port the code to use CI's structure and systems, b) extend and alter CI functionality to provide your own magic where you want it and use CI when it seems appropriate, or c) look elsewhere for a framework that 'just works'...but I don't think you'll find one.[/quote]
I'm trying to go for the first one, I've already seen other frameworks and CI seems better, but I'm a bit lost on how to translate/adapt what I have and the way I've been developing int CI.

[quote author="BrianDHall" date="1254434442"]
An extensively robust automagical auto-loading auto-importing framework that attempts to guess what you want ...[/quote]
I don't want it to guess, but I would like it to allow me to tell it where things are and how they should be handled. CI confuses me on that, it is always giving me errors on things I expect to be simple.

Does this forum have any thing like points or something that I can give you? Thanks for the reply it really help me understand what the options are and how I can work my way into getting my projects running on CI. And I'm going to give that DMZ thing a try as it looks it's what I've been looking for. Nevertheless, I think I'm getting the hang of CI.

Regards,

Knitter


Messages In This Thread
Writting support classes? - by El Forum - 09-29-2009, 02:42 PM
Writting support classes? - by El Forum - 10-01-2009, 08:10 AM
Writting support classes? - by El Forum - 10-01-2009, 09:01 AM
Writting support classes? - by El Forum - 10-01-2009, 09:20 AM
Writting support classes? - by El Forum - 10-01-2009, 10:02 AM
Writting support classes? - by El Forum - 10-01-2009, 10:28 AM
Writting support classes? - by El Forum - 10-01-2009, 10:36 AM
Writting support classes? - by El Forum - 10-01-2009, 10:57 AM
Writting support classes? - by El Forum - 10-01-2009, 11:00 AM
Writting support classes? - by El Forum - 10-01-2009, 01:29 PM
Writting support classes? - by El Forum - 10-01-2009, 01:54 PM
Writting support classes? - by El Forum - 10-01-2009, 02:05 PM
Writting support classes? - by El Forum - 10-01-2009, 02:21 PM
Writting support classes? - by El Forum - 10-01-2009, 02:25 PM
Writting support classes? - by El Forum - 10-01-2009, 02:29 PM
Writting support classes? - by El Forum - 10-01-2009, 03:24 PM
Writting support classes? - by El Forum - 10-01-2009, 03:40 PM



Theme © iAndrew 2016 - Forum software by © MyBB