0 Replies Last post: Feb 10, 2013 1:47 AM by samsam bogard  
samsam bogard Newbie 81 posts since
Dec 18, 2011
Currently Being Moderated

Feb 10, 2013 1:47 AM

mapping local source code and http rendering in joomla

I have some question relative to not client CMS but Servr CMS like Joomla . 

 

I understand that for browse the code source file

1) there is a mapping beetween the local source file ( file:/ or C:/) and the  internet access file ( http:// ).

since CMS use hiearchy of embedding php process files  like index.php  layout.php modules.php so   we can' t edit a file name study.php and see is html rendering using an url like http://xxxxx/xx/Xx/study.php 

2) the study.php is not the only content that could be render it why joomla in some case support  &format=raw

in this case joomla for components extension output only the component and not the surrounding template html.

so study.php&format=raw  show  "study.html"

 

The scheme of the url is specific to joomla version and each extension ( compoment module plugin , article  )

 

http://example.com/index.php?option=<optionext>_<optionname>&view=<myview>&task=<mytask>

&format=<myformat>&layout=<layout>&id=<myidt>&itemid=<myitemid>&lang=<mylang>

 

 

 

1) Is there a way  to easy go to in the case the process variable contain the location of a file to easy go to the local file ( not process) using phpstorm ?

 

for example  this variable   $doc->addStyleSheet($this->baseurl.'/templates/system/css/system.css');

is rendering in html by   <link rel="stylesheet" href="/templates/system/css/system.css" type="text/css">

so for http protocol  it goes to http://localhost:48792/templates/system/css/system.css

so for local file system variable it goes to C:\EasyPHP-5.3.9\www\J25a\templates\system\css\system.css

i mean click on addStyleSheet show a menu link that goes  to C:\EasyPHP-5.3.9\www\J25a\templates\system\css\system.css

 

2) Does only the debug mode let us know the values of all the differents variable define inside a php file ?

 

3 ) is there any simple way to navigate easely to  the  code that is use for rendering content ?  since many informations  is code specific to joomla .

For example index.php contain a link to function  contain in modules .ph p

modules function modules.php  contain function modchrome_<mystyle>($module, &$params, &$attribs) {   html code  }

index.php  contain html code a specific joomla tag element <jdoc:include type="modules" name="position-7" style="<mystyle>"  />

 

 

Thank's for any help

More Like This

  • Retrieving data ...