php-general Digest 11 Mar 2013 12:12:59 -0000 Issue 8157
Topics (messages 320454 through 320457):
Does Scope-Resolution Operator Always Follow 'parent'?
320454 by: Eric James Michael Ritz
Re: Generating CRUD code for normalized db
320455 by: Gary
320456 by: Gary
320457 by: marco.behnke.biz
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-gene...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
Hello everyone,
I have a question about the `parent` keyword: is there any valid
situation where it can appear without the `::` operator following?
I am asking to fix a bug in php-mode[1] for GNU Emacs. Consider the
following code:
echo $parent;
echo parent::$foo;
echo $this->parent;
The mode incorrectly highlights `parent` in the final line as if it
were the keyword, but PHP itself treats it as a member of an object.
My idea for fixing this incorrect syntax highlighting is to only treat
`parent` as a keyword if the `::` operator follows it. But I want to
make sure that this assumption is correct.
Thanks in advanced for any help!
[1]: https://github.com/ejmr/php-mode
--
ejmr
南無妙法蓮華經
--- End Message ---
--- Begin Message ---
Ashley Sheridan wrote:
> In any case, you could probably take something you like from another
> framework if you have the time/inclination/capability.
I honestly think I am simply going to write the shit myself. The CRUD
pages, I mean. I see no reason to keep searching for what, for me, is
very very basic functionaility. The inadequacies of so much Free Open
Source Shit never ceases to amaze me. Too many wannabes doing it who
overestimate their own capabilities and have no clue what is really
required in the real world.
--
Gary Please do NOT send me 'courtesy' replies off-list.
--- End Message ---
--- Begin Message ---
ma...@behnke.biz wrote:
> FLOW3 might be worth a look. TYPO3 with inline relational records.
Seems to be in a similar state to yii as regards usability and
documentation.
=> composer create-project --dev --keep-vcs typo3/flow-base-distribution
Quickstart 2.0.0
[InvalidArgumentException]
Could not find package typo3/flow-base-distribution with version
2.0.0.
create-project [-s|--stability="..."] [--prefer-source] [--prefer-dist]
[--repository-url="..."] [--dev] [--no-custom-installers]
[--no-scripts] [--no-progress] [--keep-vcs] package [directory]
[version]
Great. Maybe I should read the friendly source code to find out what I'm
*actually* supposed to do. Sure as hell I can't just leave the version
number out, because
[InvalidArgumentException]
Could not find package typo3/flow-base-distribution with stability
stable.
Pathetic.
I'm still trying to work out what "The Definite Guide" is. Presumably it
is not the same as the uncertain guide. It most certainly is *not* the
same as "The Definitive Guide" which is what the link in fact links to.
--
Gary Please do NOT send me 'courtesy' replies off-list.
--- End Message ---
--- Begin Message ---
> Gary <listgj-phpgene...@yahoo.co.uk> hat am 11. März 2013 um 10:10
> geschrieben:
>
>
> ma...@behnke.biz wrote:
>
> > FLOW3 might be worth a look. TYPO3 with inline relational records.
>
> Seems to be in a similar state to yii as regards usability and
> documentation.
>
> => composer create-project --dev --keep-vcs typo3/flow-base-distribution
> Quickstart 2.0.0
>
> [InvalidArgumentException]
> Could not find package typo3/flow-base-distribution with version
> 2.0.0.
Works for me? Mysterious.
If you simply need this relation crud stuff you can also check out PHP Maker :)
--- End Message ---