We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

EE2 Dev > Functions > set_realpath usage

Development and Programming

TonyNibbles's avatar
TonyNibbles
98 posts
16 years ago
TonyNibbles's avatar TonyNibbles

I’m trying to use set_realpath which is documented in the EE2 docs as being in the native functions class.

However, it doesn’t appear in the source code for the functions class (I can only find a reference to it in a path_helper file).

Hence, this doesn’t work and produces a fatal error - function not found (including in the latest build):

$this->EE->functions->set_realpath('/something/here');

Is this a bug? Is the documentation incorrect? Or am I doing something wrong?

Any help appreciated, cheers 😊

       
Bjørn Børresen's avatar
Bjørn Børresen
629 posts
16 years ago
Bjørn Børresen's avatar Bjørn Børresen

Seems like a documentation bug, “set_realpath” doesn’t exist in the Functions class.

Try this:

$this->EE->load->helper('path');
$my_path = set_realpath( '/something/here' );
       
TonyNibbles's avatar
TonyNibbles
98 posts
16 years ago
TonyNibbles's avatar TonyNibbles

Thanks, I’ve added a note to the documentation page 😊

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.