Zitat:
Zitat von phpdummi @brian johnson: Ich bleibe gespannt  |
das verhalten des standard controllers gefällt mir ehrlich gesagt gar nicht:
PHP-Code:
<?php
class Blog extends Controller {
function index()
{
echo 'Hello World!';
}
function comments()
{
echo 'Look at this!';
}
}
aufgerufen wird comments() durch:
Zitat:
|
example.com/index.php/blog/comments/
|
eine methode durch einen url aufruf aufzurufen, begeistert mich nicht, sondern weckt doch eher ein paar bedenken.
von vererbung hat codeIgniter anscheinend auch noch nichts gehört:
Zitat:
CodeIgniter has an output class that takes care of sending your final rendered data to the web browser automatically. More information on this can be found in the Views and Output class pages. In some cases, however, you might want to post-process the finalized data in some way and send it to the browser yourself. CodeIgniter permits you to add a function named _output() to your controller that will receive the finalized output data. Important: If your controller contains a function named _output(), it will alwaysbe called by the output class instead of echoing the finalized data directly. The first parameter of the function will contain the finalized output.
|
auch diese vermischten klassen gefallen mir nicht sonderlich. ich verstehe nicht, was valid_id() , xss_clean() und filename_security() in einer klasse die sich input nennt und methoden um an
input (get,post,cookie) zu kommen implementiert zu suchen haben. dann gibt es zu xss_clean noch eine gleichnamige wrapper-funktion in Form_Validation wo sie eher hingehören würde.
schlussendlich verstehe ich nicht, warum man plugins (zumindest die 2 die dabei sind) als funktionen implementiert hat. sehr abstruses konzept aus meiner sicht.
also auf zu cakePHP!
p.s.: es gibt keine benutzerverwaltungsklasse, oder?
edit:
auf der codeIgniter seite steht:
vertrauen die ihrem eigenen produkt nicht oder können sie selbst nicht damit umgehen? ExpressionEngine scheint nach kurzem überfliegen auch nicht auf dem codeIgniter aufzubauen. ich bin der meinung, das man sein framework doch schon selber einsetzen sollte....