• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
View Parser site_url

#1
Hi all!

I'm using the view parser library and I have a problem calling a plugin.

In the documentation it says that it is enough to put this fragment of code to obtain the url of the site

Code:
{+ site_url "login" +}


But when using it nothing happens is a bug? or is there something missing to configure?

Thank you!
Reply

#2
Hi Luispastendev,

I had the same problem. After search into System\View\Plugins.php, the good syntax is {+ siteURL +} . Works for me.
Reply

#3
(05-10-2019, 03:47 AM)cedreek Wrote: Hi Luispastendev,

I had the same problem. After search into System\View\Plugins.php, the good syntax is {+ siteURL +} . Works for me.

hi cedreek thank you for answering!

It works that way so what is wrong is the documentation.

Another question, there is some function in View parser to put base_url I think it is a plugin that would be missing because site_url generates the path but adding /index.php, base_url could generate the absolute path to build links in our views.

I have created a custom plugin to solve this issue would be very good to be able to add it in future versions.

Grettings!
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.