[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Raxan Framework Online Forum • View topic - Features

Features

Tell us what you would like to see added to framework

Features

Postby Narven » Wed Jul 15, 2009 10:23 pm

Some cool features that i think would be important to Raxan:

Localization
Benchmarking
Unit Testing
Unicode conversion
Session Managament
File/Directory Handling
Database abstraction

if something of this is alredy in Raxan... forget :P
there's something about the web...
Narven
 
Posts: 4
Joined: Tue Jul 14, 2009 6:03 pm
Location: Lisboa - Portugal

Re: Features

Postby raymond » Thu Jul 16, 2009 4:37 am

Hi Narven,

Thanks for the feedback. At least one feature already exists :)

1. Localization features already exists
2. Unit Testing - To come in version 1.0
3. Session Managament - Currently uses PHP built-in session. Database support to come in 1.0

The other features will be reviewed and added road map

Thanks for sharing
raymond
Site Admin
 
Posts: 215
Joined: Tue Mar 17, 2009 5:04 am

Re: Features

Postby Narven » Thu Jul 16, 2009 6:00 pm

Hi,

when i say localization i dont mean for the code to tellme that im in portugal... or something like that.

When i say localization is about the hability to create a "dictionary" for translation. CodeIgniter has this feature.

u can create something like:

$lang['title']['This is the title']; and this will be saved in a file like header_lang.php in the english directory.

and in the portuguese directory in the file header_lang.php

$lang['title']['Isto é o titulo'];

in the file that we want we cant put something like this:

$this->lang = RichAPI::Language('language=en');

echo $this->lang['title'];

and would output This is the title

of course here we can use the localization to detect country and select the language :)

ps: sorry for my english :(
there's something about the web...
Narven
 
Posts: 4
Joined: Tue Jul 14, 2009 6:03 pm
Location: Lisboa - Portugal

Re: Features

Postby raymond » Fri Jul 17, 2009 3:48 am

Raxan supports this kind of feature as well

Language files are stored in the "raxan/pdi/shared/locale" folder but you can easily change the location from inside your config file. See Loading A Custom Configuration File - http://raxanpdi.com/blog-load-config.html

Let's say you have a language (or dictionary) file called hompage.php with the following:

$locale['title'] = 'This is my web page';

You can then load your language file using:

RichAPI::loadLangFile('hompage.php');

Then use RichAPI::locale() to retrieve the text:

echo RichAPI::locale('title');

In addition to the above you can also use the langid element attribute:

<h2 langid="title">This text will be replaced</h2>

Then use the the localize() method to do the conversion:

P('body')->localize();

That's it. Here's another example: http://raxanpdi.com/multi-lang-example.html

Is this the feature that you're looking for?
raymond
Site Admin
 
Posts: 215
Joined: Tue Mar 17, 2009 5:04 am


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 1 guest

cron