Jump to content

Site Integration With Blesta 3.1.x


Michael

Recommended Posts

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);?>
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 :D

Link to comment
Share on other sites

  • 3 weeks later...
  • 3 months later...
  • 1 month later...
  • 6 months later...

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 :)

Link to comment
Share on other sites

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? :D

Link to comment
Share on other sites

  • 3 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...