⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

render: why not get straight to the point?



ssfthurber
  • profile picture
  • Member

Posted 08 June 2013 - 19:59 PM

like:

        $this->load->view('template.php',$crud->render());

 

am i missing some issue here?

 


davidoster
  • profile picture
  • Member

Posted 09 June 2013 - 07:01 AM

Hello.

PHP is a powerfull language hence what you pinpoint is acceptable in terms of syntax.

We prefer not to do it for various reasons.

One is for clarity of code. Another one is for easier manipulation of the returned object.

 

Depending on what one wants he/she generates the equivalent code to his liking.

 

The examples are just examples and each one of us can use them as they are or change them at will!


ssfthurber
  • profile picture
  • Member

Posted 12 June 2013 - 20:26 PM

this has already turned out to be helpful--needed today to manipulate the returned object