Using Codeigniter classes |
Can I use Codeigniter classes without implementing the whole mvc pattern the same way I can do it with Zend? For example, I would love to be able to use just some validation classes, or email class etc..
its quite simple to write your own classes to do the processing ; to be honest i use my own validation for code, because that way I know whats going on and understand whats going on. I also have my own email class for a controller because i use PHPMailer. There isn't really much to using a controller a few lines then your own OOP class and their methods.
For a view its quite simple pass data to a view with a few lines Code: try{ because the bulk of all web pages can use a template , then the total for a info.php view is just Code: <?= $this->extend('layout') ?> |
Welcome Guest, Not a member yet? Register Sign In |