Jump to content


render: why not get straight to the point?


  • Please log in to reply
2 replies to this topic

#1 ssfthurber

ssfthurber

    Member

  • Members
  • PipPip
  • 27 posts

Posted 08 June 2013 - 07:59 PM

like:

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

 

am i missing some issue here?

 



#2 davidoster

davidoster

    Grocery CRUD Ninja

  • Advanced Member
  • PipPipPip
  • 1,068 posts
  • LocationAthens, Greece

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!


Edited by davidoster, 09 June 2013 - 07:02 AM.

____________________________________________________________

 

rtfm_small.jpg---!!!Please read these guidelines before asking to the forums!!!---

____________________________________________________________

 

David Oster aka George Pasparakis,
http://odphotography.com
http://eletter.gr


#3 ssfthurber

ssfthurber

    Member

  • Members
  • PipPip
  • 27 posts

Posted 12 June 2013 - 08:26 PM

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






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users