Re: [TYPO3-english] How to view php code of a page

2013-07-27 Thread Jigal van Hemert

On 14-7-2013 15:54, Andrey Vasilyev wrote:

Say I have a form with submit action index.php?id=8. And I would
like to check what php code is in the page with id 8, so I could
debug strange behaviour. Is it at all possible?


In theory it should be possible to go over all the code, but this is 
quite a huge task and with some knowledge you can narrow your search 
down to a few scripts.


The general structure of TYPO3 is described in [1]. More details can be 
found in [2].


In your specific case there can be two areas where you could debug:

- an extension made the form and will handle the submitted data
If this is the case you can look which plugin is placed on that page 
(either as content element or in TypoScript) and look in the code of 
that extension.
The extension is called in context of the entire TYPO3 core, but handles 
the data on its own.


- a TYPO3 core form is present on that page
there are few form generating system extensions:
 * the core mail form
 * the new mail form system extension
 * the frontend login form from the felogin system extension
 * the search form from the core search
 * the search form from the indexed search system extension
 * ...

If you tell a bit more about what is on that page then people can help 
you to narrow down your search to just a few scripts.


[1] http://docs.typo3.org/typo3cms/InsideTypo3Reference/
[2] http://docs.typo3.org/typo3cms/CoreApiReference/

--
Jigal van Hemert
TYPO3 CMS Active Contributor

TYPO3  inspiring people to share!
Get involved: typo3.org
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] How to view php code of a page

2013-07-26 Thread Christian Kuhn

On 07/14/2013 04:31 PM, Philipp Gampe wrote:

As you do not have any clue about the basics of programming, this will be
impossible for you.


Philipp.

This is *not* the right way to communicate with people!
I feel offended. This is a very arrogant attitude and I'm not willing to 
accept this personal attack.


I kindly ask you to be more respectful according to our code of conduct.


Regards
Christian


[1] http://typo3.org/community/code-of-conduct/
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] How to view php code of a page

2013-07-26 Thread Ernesto Baschny [cron IT]
Christian Kuhn schrieb am 26.07.2013 22:26:
 On 07/14/2013 04:31 PM, Philipp Gampe wrote:
 As you do not have any clue about the basics of programming, this will be
 impossible for you.
 
 Philipp.
 
 This is *not* the right way to communicate with people!
 I feel offended. This is a very arrogant attitude and I'm not willing to
 accept this personal attack.
 
 I kindly ask you to be more respectful according to our code of conduct.

+1 and agreed.

Kind Regards,
Ernesto


___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] How to view php code of a page

2013-07-14 Thread Philipp Gampe
Hi Andrey,

Andrey Vasilyev wrote:

 Say I have a form with submit action index.php?id=8. And I would like to
 check what php code is in the page with id 8, so I could debug strange
 behaviour. Is it at all possible?

As you do not have any clue about the basics of programming, this will be 
impossible for you.
In general, the answer is yes. Most people use a debugger to debug strange 
behavior. They attach the debugger to the request and have a look at the 
control flow.

At least for TYPO3 CMS, there is not specific PHP code for a special ID, 
besides the usual code to render a page.

Best regards
-- 
Philipp Gampe – PGP-Key 0AD96065 – TYPO3 UG Bonn/Köln
Documentation – Active contributor TYPO3 CMS
TYPO3  inspiring people to share!

___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

Re: [TYPO3-english] How to view php code of a page

2013-07-14 Thread Andrey Vasilyev
Hi Philipp,

Actually, I do have a clue about software development ;) And I am able to debug 
the code using XDebug and stuff... I am a bit new to PHP world though and I am 
just learning about TYPO3 architecture, so my questions might sound a bit 
clueless. Guess I need to learn more.

Thanks for the answer,
Andrey.
- Original Message -
From: Philipp Gampe
Sent: 07/14/13 06:31 PM
To: typo3-english@lists.typo3.org
Subject: Re: [TYPO3-english] How to view php code of a page

Hi Andrey, Andrey Vasilyev wrote:  Say I have a form with submit action 
index.php?id=8. And I would like to  check what php code is in the page with 
id 8, so I could debug strange  behaviour. Is it at all possible? As you do 
not have any clue about the basics of programming, this will be impossible for 
you. In general, the answer is yes. Most people use a debugger to debug strange 
behavior. They attach the debugger to the request and have a look at the 
control flow. At least for TYPO3 CMS, there is not specific PHP code for a 
special ID, besides the usual code to render a page. Best regards -- Philipp 
Gampe – PGP-Key 0AD96065 – TYPO3 UG Bonn/Köln Documentation – Active 
contributor TYPO3 CMS TYPO3  inspiring people to share! 
___ TYPO3-english mailing list 
TYPO3-english@lists.typo3.org 
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

Re: [TYPO3-english] How to view php code of a page

2013-07-14 Thread Steffen Gebert
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Okay, can be different content elements / plugins attached to that page.

Open the TYPO3 backend end navigate through the page tree to the page
with id 8 (when you hover over the page icon, you get its ID displayed -
or you can use the filter above the tree and enter 8).

Then have a look, what plugins are used there.
There should be at least one (which is not Text, Text with Image or
so..).

These plugins originate from TYPO3 extensions, which are located in
typo3conf/ext/. When you view the source code of the frontend output you
might be also able to identify the used extension (search for tx-).

Once you've located the used extension, you can have a look at its code
in typo3conf/ext/your-ext-name/pi1/ (for old-school pi-base extensions)
or typo3conf/ext/your-ext-name/Classes/ (for modern extbase MVC
extensions).

Kind regards
Steffen

- -- 
Steffen Gebert
TYPO3 Server Administration Team Member

TYPO3  inspiring people to share!
Get involved: http://typo3.org

My wish list:
https://www.amazon.de/registry/wishlist/922E3JYSQ7CV/ref=cm_wl_sb_v?sort=priority

On 7/14/13 5:04 PM, Andrey Vasilyev wrote:
 Hi Philipp,
 
 Actually, I do have a clue about software development ;) And I am able to 
 debug the code using XDebug and stuff... I am a bit new to PHP world though 
 and I am just learning about TYPO3 architecture, so my questions might sound 
 a bit clueless. Guess I need to learn more.
 
 Thanks for the answer,
 Andrey.
 - Original Message -
 From: Philipp Gampe
 Sent: 07/14/13 06:31 PM
 To: typo3-english@lists.typo3.org
 Subject: Re: [TYPO3-english] How to view php code of a page
 
 Hi Andrey, Andrey Vasilyev wrote:  Say I have a form with submit action 
 index.php?id=8. And I would like to  check what php code is in the page 
 with id 8, so I could debug strange  behaviour. Is it at all possible? As 
 you do not have any clue about the basics of programming, this will be 
 impossible for you. In general, the answer is yes. Most people use a debugger 
 to debug strange behavior. They attach the debugger to the request and have a 
 look at the control flow. At least for TYPO3 CMS, there is not specific PHP 
 code for a special ID, besides the usual code to render a page. Best regards 
 -- Philipp Gampe – PGP-Key 0AD96065 – TYPO3 UG Bonn/Köln Documentation – 
 Active contributor TYPO3 CMS TYPO3  inspiring people to share! 
 ___ TYPO3-english mailing list 
 TYPO3-english@lists.typo3.org 
 http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.19 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJR4sYNAAoJEIskG/rSlyw4AQAH+wXUc4MDppx6w+MnLwzRq+MQ
4ANJ1MVlWN8VzrtilMfIKNPflz9jWdmROrQO6d6ksQrnqFZtzu+X6eeuqIrnFoHS
PaJ6tedhj2AppSLtrsX1KG4cNDE6UKcvW1w+pUBW4ckJ9vaVGzYX9XQgHk7NJIO4
a3zbZuHVw8IVFF9TAjO7rSL7RqZPgwpqCbyQmeuB4Is/gHX1tT7LHdBPbboimb2/
UfZdSOT0gldJNsi2ApXXctaBNb9bKYAtNcXhcpj8KshCkHcqWsQSna42IMyf9pkL
iHl2vK7aWbPS1eJdaxEw+KZUCPdAHMbaMdbmBWCBsBIxfwosM/Y50mreF2HKHp4=
=WmFE
-END PGP SIGNATURE-
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

Re: [TYPO3-english] How to view php code of a page

2013-07-14 Thread Andrey Vasilyev
Thank you Steffen! I kinda guessed this far already.

The thing is that extensions might be pretty big source code wise, so going 
though all of the control flow might be time consuming. And I was thinkig may 
be TYPO3 knows some how which parts of the extension's source code are used on 
the given page. But now I think it was a wrong assumption. It seems to me now, 
that TYPO3 just calls main method of the extension and all the rest depends on 
the parameters that are passed with the request.

Any way thank you for help!

BR,
Andrey.
- Original Message -
From: Steffen Gebert
Sent: 07/14/13 07:38 PM
To: typo3-english@lists.typo3.org
Subject: Re: [TYPO3-english] How to view php code of a page

-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Okay, can be different content 
elements / plugins attached to that page. Open the TYPO3 backend end navigate 
through the page tree to the page with id 8 (when you hover over the page icon, 
you get its ID displayed - or you can use the filter above the tree and enter 
8). Then have a look, what plugins are used there. There should be at least one 
(which is not Text, Text with Image or so..). These plugins originate from 
TYPO3 extensions, which are located in typo3conf/ext/. When you view the source 
code of the frontend output you might be also able to identify the used 
extension (search for tx-). Once you've located the used extension, you can 
have a look at its code in typo3conf/ext/your-ext-name/pi1/ (for old-school 
pi-base extensions) or typo3conf/ext/your-ext-name/Classes/ (for modern 
extbase MVC extensions). Kind regards Steffen - -- Steffen Gebert TYPO3 
Server Administration Team Member TYPO3  inspiring people to share! Get 
involved: http://typo3.org My wish list: 
https://www.amazon.de/registry/wishlist/922E3JYSQ7CV/ref=cm_wl_sb_v?sort=priority
 On 7/14/13 5:04 PM, Andrey Vasilyev wrote:  Hi Philipp,   Actually, I do 
have a clue about software development ;) And I am able to debug the code using 
XDebug and stuff... I am a bit new to PHP world though and I am just learning 
about TYPO3 architecture, so my questions might sound a bit clueless. Guess I 
need to learn more.   Thanks for the answer,  Andrey.  - Original 
Message -  From: Philipp Gampe  Sent: 07/14/13 06:31 PM  To: 
typo3-english@lists.typo3.org  Subject: Re: [TYPO3-english] How to view php 
code of a page   Hi Andrey, Andrey Vasilyev wrote:  Say I have a form with 
submit action index.php?id=8. And I would like to  check what php code is in 
the page with id 8, so I could debug strange  behaviour. Is it at all 
possible? As you do not have any clue about the basics of programming, this 
will be impossible for you. In general, the answer is yes. Most people use a 
debugger to debug strange behavior. They attach the debugger to the request and 
have a look at the control flow. At least for TYPO3 CMS, there is not specific 
PHP code for a special ID, besides the usual code to render a page. Best 
regards -- Philipp Gampe – PGP-Key 0AD96065 – TYPO3 UG Bonn/Köln Documentation 
– Active contributor TYPO3 CMS TYPO3  inspiring people to share! 
___ TYPO3-english mailing list 
TYPO3-english@lists.typo3.org 
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english -BEGIN PGP 
SIGNATURE- Version: GnuPG/MacGPG2 v2.0.19 (Darwin) Comment: GPGTools - 
http://gpgtools.org Comment: Using GnuPG with Mozilla - 
http://enigmail.mozdev.org/ 
iQEcBAEBAgAGBQJR4sYNAAoJEIskG/rSlyw4AQAH+wXUc4MDppx6w+MnLwzRq+MQ 
4ANJ1MVlWN8VzrtilMfIKNPflz9jWdmROrQO6d6ksQrnqFZtzu+X6eeuqIrnFoHS 
PaJ6tedhj2AppSLtrsX1KG4cNDE6UKcvW1w+pUBW4ckJ9vaVGzYX9XQgHk7NJIO4 
a3zbZuHVw8IVFF9TAjO7rSL7RqZPgwpqCbyQmeuB4Is/gHX1tT7LHdBPbboimb2/ 
UfZdSOT0gldJNsi2ApXXctaBNb9bKYAtNcXhcpj8KshCkHcqWsQSna42IMyf9pkL 
iHl2vK7aWbPS1eJdaxEw+KZUCPdAHMbaMdbmBWCBsBIxfwosM/Y50mreF2HKHp4= =WmFE -END 
PGP SIGNATURE- ___ 
TYPO3-english mailing list TYPO3-english@lists.typo3.org 
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

Re: [TYPO3-english] How to view php code of a page

2013-07-14 Thread mario chiari
Hi

if you plan to spend some time on TYPO3, you may try to develop a toy
extension. I think that is a cool way to find your way around.
You may try either old-school pi-base way or (more abstract but easier)
modern extbase+fluid MVC one, or both. Give a look at Flow too. 

As soon as you get just a little into TYPO3, you will able to ask the
right questions, and the TYPO3 community will help you.

you welcome
cheers
mario 



On Sun, 2013-07-14 at 17:52 +0200, Andrey Vasilyev wrote:
 Thank you Steffen! I kinda guessed this far already.
 
 The thing is that extensions might be pretty big source code wise, so
 going though all of the control flow might be time consuming. And I
 was thinkig may be TYPO3 knows some how which parts of the extension's
 source code are used on the given page. But now I think it was a wrong
 assumption. It seems to me now, that TYPO3 just calls main method of
 the extension and all the rest depends on the parameters that are
 passed with the request.
 


___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] How to view php code of a page

2013-07-14 Thread Georg Ringer
Hi,

this is called xdebug

georg
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english