Welcome Guest, Not a member yet? Register   Sign In
ERP application - what would be the best approach?
#1

[eluser]Unknown[/eluser]
Hello,

I am looking to create a ERP application using the MVC model proposed by CI. My first idea is to use a HEADER/MAIN/FOOTER type of application, using controllers for the header and footer, so it is easy to change the format of the page if I want to display/print in different media.

I would like to know your opinion on that and if you could provide me with an example in this matter.

Thank you and all the best,

Rom
#2

[eluser]sandwormusmc[/eluser]
That can all be done with CSS ... just create a header/footer file, make sure to include it in your main controller (i.e. code below), then attach the CSS file at the top of your header file using simple HTML.

Code:
$this->params['header']=$this->load->view($this->params['AppName'].'_header','',TRUE);
        $this->params['footer']=$this->load->view($this->params['AppName'].'_footer','',TRUE);

The extra 'AppName' is to make it easy to create different headers for different apps. $this->params['AppName'] is currently UAMS, so it currently loads 'UAMS_header.php', which in turn loads the CSS.

Then in your views, you can load the header and footer, respectively, with:
Code:
<?=$header?>
and
Code:
<?=$footer?>

Is that what you were asking? Tongue
#3

[eluser]Crafter[/eluser]
An ERP is not a simple project. Most ERP solutions have taken months and years to buiild and mature and used huge development teams. I'm not passing judgment on your decision to write one from scratch, but you might be better off using an already built solution.




Theme © iAndrew 2016 - Forum software by © MyBB