PHP Classes

Clarification on some helper functions and theming

Recommend this page to a friend!

      PHP Classes blog  >  Working with CodeIgni...  >  All threads  >  Clarification on some helper...  >  (Un) Subscribe thread alerts  
Subject:Clarification on some helper...
Summary:... i'll like you to clarify some points you made which are not
Messages:14
Author:fadojutimi temitayo
Date:2015-05-03 21:58:08
Update:2015-09-15 14:16:00
 
  1 - 10   11 - 14  

  11. Re: Clarification on some helper...   Reply   Report abuse  
Picture of Carlos Sanchez Carlos Sanchez - 2015-05-10 00:13:58 - In reply to message 10 from fadojutimi temitayo
i got mine working in a different way, if you want to try my version just let me know and ill upload it so you can try it

  12. Re: Clarification on some helper...   Reply   Report abuse  
Picture of fadojutimi temitayo fadojutimi temitayo - 2015-05-10 06:11:54 - In reply to message 11 from Carlos Sanchez
It's good to know you've got it working. Got the theming working also. Im trying to compile everything so i can upload later. But i've been busy lately. Take care

  13. Re: Clarification on some helper...   Reply   Report abuse  
Picture of fadojutimi temitayo fadojutimi temitayo - 2015-08-28 18:41:22 - In reply to message 11 from Carlos Sanchez
Sanchez, can you please explain how you rectified yours?

I currently need it urgently.

Thanks

  14. Re: Clarification on some helper...   Reply   Report abuse  
Picture of Cabai Hidup Cabai Hidup - 2015-09-15 14:16:00 - In reply to message 13 from fadojutimi temitayo
For those who experience the error 'Message: Undefined property: Smarty::$template_ext', I hope this could help someone. Even though I used CI3, I think the method will work with CI2 as well. What I did :

- File Smarty.php in \application\libraries I renamed to Smartylib.php and the class name inside the file I changed to Smartylib.
- To load the library, use $this->load->library('smartylib') or $this->CI->load->library('smartylib'), instead of $this->load->library('smarty') or $this->CI->load->library('smarty').
- Similar changes required in \application\libraries\MY_Parser.php and \application\core\MY_Output.php, change from 'smarty' to 'smartylib'.
- If loading from autoload.php, again change from 'smarty' to 'smartylib'.

My guess is because it looks for the '$template_ext' in Smarty.class.php instead of Smarty.php. I didn't look for actual reason, as long as the method I used works.

 
  1 - 10   11 - 14