Michael Posted August 29, 2013 Author Report Posted August 29, 2013 While $this->Html->_() escapes HTML content to avoid introducing XSS vulnerabilities, I think you should continue to use $this->Html->safe() for wrapping custom URLs. Using $this->Html->_() several times is not as clean and readable. Also, these statements are equivalent: <?php $this->Html->_($variable); echo $this->Html->_($variable, true); ?> So could we use this mate: <?php echo $this->Html->safe($system_company->hostname, true);?> Quote
Tyson Posted August 29, 2013 Report Posted August 29, 2013 So could we use this mate: <?php echo $this->Html->safe($system_company->hostname, true);?> Variables should be checked to exist: <?php echo $this->Html->safe($this->Html->ifSet($system_company->hostname)); ?> The second parameter of "true" preserves tags (i.e. < > " ') which may or may not be what you want to do, depending on the context. Michael 1 Quote
Michael Posted August 29, 2013 Author Report Posted August 29, 2013 Variables should be checked to exist: <?php echo $this->Html->safe($this->Html->ifSet($system_company->hostname)); ?> The second parameter of "true" preserves tags (i.e. < > " ') which may or may not be what you want to do, depending on the context. Thank you mate Quote
R.W's Posted August 31, 2013 Report Posted August 31, 2013 Wow, the article is self explainatory Quote
Michael Posted August 31, 2013 Author Report Posted August 31, 2013 Wow, the article is self explainatory Thank you Quote
HarrisonLILY Posted September 16, 2013 Report Posted September 16, 2013 Nice write up mate, gives me a reference when I hit the template side of things Quote
Michael Posted September 17, 2013 Author Report Posted September 17, 2013 Nice write up mate, gives me a reference when I hit the template side of things No problem, glad I helped you Quote
Virtovo Posted December 31, 2013 Report Posted December 31, 2013 Excellent write up. Just out of interest; how would you handle image paths that are reference in CSS files instead? Quote
Michael Posted December 31, 2013 Author Report Posted December 31, 2013 Excellent write up. Just out of interest; how would you handle image paths that are reference in CSS files instead? Same as you would in css maybe ../images or images Quote
Chris Posted February 13, 2014 Report Posted February 13, 2014 I like this looks a bit challenging. one these days I'm going to have to play around with this .. I've manged to get few billing systems integrated. Michael 1 Quote
Michael Posted February 13, 2014 Author Report Posted February 13, 2014 I like this looks a bit challenging. one these days I'm going to have to play around with this .. I've manged to get few billing systems integrated. The only hard bit mainly is stopping Bootstrap overwriting the CSS mate haha, should be easy in 3.2 though. Quote
wfitg Posted September 9, 2014 Report Posted September 9, 2014 So you want to make your blesta installation to look like your website?Hope this is a easier tut to follow, I've tried to make it as simple as I can. Good luck customizing your Blesta. This is a GREAT tutorial mate! Thanks for making this. I'm going to try it Quote
wfitg Posted September 9, 2014 Report Posted September 9, 2014 I think the Blesta coloring scheme works nice for matching something like a Wordpress Installation. That is what I have done.However, it would also be nice to only integrate a Wordpress Menu in to the Blesta. This way clients can navigate back to specific pages on the website too.When you have time, can you make a tutorial on that? Quote
Stu Posted December 29, 2017 Report Posted December 29, 2017 HI, just coming back to my blesta project after a long time away from it. Is this tutorial still accurate for 4.2.0? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.