Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] partials with data - template library
#3

[eluser]umefarooq[/eluser]
its really easy to use this library's partials and you can use on pages you like with or without Dwoo template parser if you are using with this library

Code:
$this->template->set_partial('partial_name', 'view_name');

  now in your main or page view you have find out either key exist in template partials array

without Dwoo library
  if(key_exists('partial_name',$template['partials']))
  $template['partials']['parials_name'];

with Dwoo parser

{if key_exists('parials_name', $template.partials)}
{$template.partials.parials_name}
{/if}


Messages In This Thread
[SOLVED] partials with data - template library - by El Forum - 08-25-2010, 01:49 PM
[SOLVED] partials with data - template library - by El Forum - 08-25-2010, 11:27 PM
[SOLVED] partials with data - template library - by El Forum - 08-26-2010, 01:53 AM
[SOLVED] partials with data - template library - by El Forum - 08-26-2010, 02:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB