Welcome Guest, Not a member yet? Register   Sign In
phptal & ci integration
#5

[eluser]Methyle[/eluser]
Rick, I did all you wrote, but got error message:

Fatal error: require_once() [function.require]: Failed opening required 'PHPTAL/Source.php' (include_path='.;/usr/local/php5/PEAR;z:\home\www/system/application/pear/') in z:\home\www\system\application\libraries\PHPTAL\FileSource.php on line 3

This is my code:
Code:
$this->load->library('phptal');
$this->phptal->set('user', $this->user_model->get_user(1));
$this->phptal->setTemplate('user/index.html');
echo $this->phptal->execute();

What should I do with this problem?

Another question: is it possible to use arrays in PHPTAL templates without tal:repeat? For example my model's function get_user() returns $query->row(), and now in my view I'm using code like this <?=user->firstname;?>. How to modify this code for PHPTAL?


Messages In This Thread
phptal & ci integration - by El Forum - 10-16-2007, 11:06 AM
phptal & ci integration - by El Forum - 10-16-2007, 11:46 AM
phptal & ci integration - by El Forum - 10-16-2007, 11:54 AM
phptal & ci integration - by El Forum - 10-16-2007, 05:43 PM
phptal & ci integration - by El Forum - 11-10-2007, 01:35 PM
phptal & ci integration - by El Forum - 11-10-2007, 02:35 PM
phptal & ci integration - by El Forum - 11-10-2007, 02:57 PM
phptal & ci integration - by El Forum - 11-10-2007, 04:40 PM
phptal & ci integration - by El Forum - 11-11-2007, 02:07 AM
phptal & ci integration - by El Forum - 08-29-2008, 06:31 AM
phptal & ci integration - by El Forum - 08-21-2009, 07:27 AM
phptal & ci integration - by El Forum - 09-04-2009, 05:32 PM
phptal & ci integration - by El Forum - 06-07-2010, 04:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB