Smarty HMVC Environment Variables 1.0.5 |
[eluser]LNS[/eluser]
Thanks for your module. Pls help me to fix below errors (I use CI 1.6.1): Quote:A PHP Error was encountered
[eluser]Avatar[/eluser]
Sorry for taking so long to get back to you. the error you are getting on lines 74 and 76 is due to the fact that an array is not being loaded to merge with $data to be passed to the module and in turn the template. Make sure that you are properly loading your template layout from the database to be merged into the data array inside your default_controller and your modules. This makes those variables available within your templates to be loaded at run time.
[eluser]monkeymon[/eluser]
A PHP Error was encountered Severity: Notice Message: Undefined index: template_layout Filename: controllers/default_controller.php Line Number: 74 A PHP Error was encountered Severity: Warning Message: array_merge() [function.array-merge]: Argument #2 is not an array Filename: controllers/default_controller.php Line Number: 74 A PHP Error was encountered Severity: Warning Message: array_merge() [function.array-merge]: Argument #1 is not an array Filename: controllers/default_controller.php Line Number: 76 A PHP Error was encountered Severity: Warning Message: array_merge() [function.array-merge]: Argument #2 is not an array Filename: controllers/home.php Line Number: 49 have the same problem as well but i cant seem to find out where is the problem... can u help me ?
[eluser]Avatar[/eluser]
I apologize for not replying sooner. The fix for your problem is this: you need to cread static links from the templates located inside default_templates to the ones in your current template...do this for all you templates to have default template parts. cd to your current template and do ln -sf ../../default_template/page pages # this makes your pages to be the same accoss templates and so on Code: root@apex:/var/www/env# ln -sf application/views/smarty/templates/ templates
[eluser]Avatar[/eluser]
Make sure that your application/ directory structure is as follows: Code: application/ This thing is so powerful. Makes it kinda difficult to maintain the links, redirects and templates between template changes. unless you link your template located inside application.views/smarty/templates/template to template. I'm using this cms for the base of multiple system right now and it's wonderful. The only thing I don't like is that it currently loads all template pages defined for a template even though not being displayed. But this I will attempt to fix in the next upcoming version.
[eluser]Unknown[/eluser]
Hello I have a problem !! Code: A PHP Error was encountered Site: http://www.gfxhost.info/en/ |
Welcome Guest, Not a member yet? Register Sign In |