Welcome Guest, Not a member yet? Register   Sign In
Call a controller from a Model
#1

[eluser]Alface[/eluser]
First I need to know, I know MVC.
I realy need to do it.

Code:
<?php
class Site extends Controller {
    function Site(){
        parent::Controller();
    }

    function say(){
             echo 'hello';
        }
}

Code:
<?php
class Something_model extends Model {

    public function __construct(){
        parent::Model();
    }
    
    function dolikecontroller(){
        // something to call 'say' function from controller
    }
}


There is no libary extention for do it?

Thanks


Messages In This Thread
Call a controller from a Model - by El Forum - 04-30-2010, 05:35 AM
Call a controller from a Model - by El Forum - 04-30-2010, 05:53 AM
Call a controller from a Model - by El Forum - 04-30-2010, 07:46 AM
Call a controller from a Model - by El Forum - 04-30-2010, 06:51 PM
Call a controller from a Model - by El Forum - 05-01-2010, 11:25 AM
Call a controller from a Model - by El Forum - 05-01-2010, 05:55 PM



Theme © iAndrew 2016 - Forum software by © MyBB