Re: [PHP] Re: Crudin - CRUD INterface Generator - Open Source Project

2012-05-25 Thread Tommy Pham
On Fri, May 25, 2012 at 3:53 PM, Maciek Sokolewicz
 wrote:
> On 25-05-2012 23:09, Rodrigo de Almeida Rodriguez wrote:
>>
>> Hi,
>>
>> I am the creator of a open source project called Crudin
>> (http://crudin.smarc.com.br/en)
>>
>> Crudin is a system for generation of fron-ends in the MySQL, writted in
>> PHP
>>
>> Without needing to program nothing you get a complete platform with
>> operations CRUD (Create, Read, Update and Delete) and much more
>>
>> Crudin mounts relations, to make upload of archives and images, treat
>> fields enum/set and much more
>>
>> All you need is any MySQL database!
>>
>
> Hi Rodrigo,
> I must admit I am having trouble understanding what you're making here. I
> tried looking at your demo page, but since it's half-Portuguese, and
> half(-crud)-English, it makes it impossible for me to understand even half
> of what it says.
>
> Could you please explain, properly, what your system DOES exactly, and why I
> would want to use it? Because currently I just don't understand what it is
> supposed to help me with exactly.
>
>

hmm.. Demo > Login > New Table ...

Erro: You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use
near 'ORDER BY `new table`.`id` desc LIMIT 0, 60' at line 1


What is the purpose of your framework?  From the documentation, I can
see that it has tables of permissions for the users.  Looking at the
permission table, it seems you're attempting to replicate MySQL
permission.  If its purpose is generate the UI for CRUD, how
comparable is it to Yii?  When you just specify the table name in GUI,
Yii generates the entire UI with client side validation also, IIRC.
In the back-end, it has a class for that table and retrieves the table
data into the class objects via ORM.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Crudin - CRUD INterface Generator - Open Source Project

2012-05-25 Thread Maciek Sokolewicz

On 25-05-2012 23:09, Rodrigo de Almeida Rodriguez wrote:

Hi,

I am the creator of a open source project called Crudin
(http://crudin.smarc.com.br/en)

Crudin is a system for generation of fron-ends in the MySQL, writted in PHP

Without needing to program nothing you get a complete platform with
operations CRUD (Create, Read, Update and Delete) and much more

Crudin mounts relations, to make upload of archives and images, treat
fields enum/set and much more

All you need is any MySQL database!



Hi Rodrigo,
I must admit I am having trouble understanding what you're making here. 
I tried looking at your demo page, but since it's half-Portuguese, and 
half(-crud)-English, it makes it impossible for me to understand even 
half of what it says.


Could you please explain, properly, what your system DOES exactly, and 
why I would want to use it? Because currently I just don't understand 
what it is supposed to help me with exactly.



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Crudin - CRUD INterface Generator - Open Source Project

2012-05-25 Thread Rodrigo de Almeida Rodriguez

Hi,

I am the creator of a open source project called Crudin 
(http://crudin.smarc.com.br/en)


Crudin is a system for generation of fron-ends in the MySQL, writted in PHP

Without needing to program nothing you get a complete platform with 
operations CRUD (Create, Read, Update and Delete) and much more


Crudin mounts relations, to make upload of archives and images, treat 
fields enum/set and much more


All you need is any MySQL database!

Official Site: http://crudin.smarc.com.br/en

Demonstration: http://crudin.smarc.com.br/demo

username: demo
password: demo

Regards,
Rodrigo A. Rodriguez

Em 25/05/2012 18:01, php-general-h...@lists.php.net escreveu:

Hi! This is the ezmlm program. I'm managing the
php-general@lists.php.net mailing list.

I'm working for my owner, who can be reached
at php-general-ow...@lists.php.net.

Acknowledgment: I have added the address

rodrigo.alm...@gmail.com

to the php-general mailing list.

Welcome to php-general@lists.php.net!

Please save this message so that you know the address you are
subscribed under, in case you later want to unsubscribe or change your
subscription address.


--- Administrative commands for the php-general list ---

I can handle administrative requests automatically. Please
do not send them to the list address! Instead, send
your message to the correct command address:

For help and a description of available commands, send a message to:


To subscribe to the list, send a message to:


To remove your address from the list, just send a message to
the address in the ``List-Unsubscribe'' header of any list
message. If you haven't changed addresses since subscribing,
you can also send a message to:


or for the digest to:


For addition or removal of addresses, I'll send a confirmation
message to that address. When you receive it, simply reply to it
to complete the transaction.

If you need to get in touch with the human owner of this list,
please send a message to:

 

Please include a FORWARDED list message with ALL HEADERS intact
to make it easier to help you.

--- Enclosed is a copy of the request I received.

Return-Path:
Received: (qmail 71228 invoked from network); 25 May 2012 21:01:37 -
Received: from unknown (HELO lists.php.net) (127.0.0.1)
   by localhost with SMTP; 25 May 2012 21:01:37 -
Return-Path:
Authentication-Results: pb1.pair.com smtp.mail=rodrigo.alm...@gmail.com; 
spf=pass; sender-id=pass
Authentication-Results: pb1.pair.com header.from=rodrigo.alm...@gmail.com; 
sender-id=pass
Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.170 as 
permitted sender)
X-PHP-List-Original-Sender: rodrigo.alm...@gmail.com
X-Host-Fingerprint: 209.85.220.170 mail-vc0-f170.google.com
Received: from [209.85.220.170] ([209.85.220.170:33650] 
helo=mail-vc0-f170.google.com)
by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP
id 99/12-55952-033FFBF4 
for;
 Fri, 25 May 2012 17:01:37 -0400
Received: by vcbfk1 with SMTP id fk1so781120vcb.29
 
for;
 Fri, 25 May 2012 14:01:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20120113;
 h=message-id:date:from:user-agent:mime-version:to:subject:references
  :in-reply-to:content-type:content-transfer-encoding;
 bh=47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=;
 b=pr0LaUP94qEFtqVrjJUCKGXGKNiuigd5BI0ssCxji9OJqseEa8Il97CEeIBpLqYAsb
  lEyn0yFWkSFZeAx+DW/hOmqYrj16OxHGNbnV2ZOQ1Kmuy0lIgzW1hhLaKa8Ml6zluxwZ
  RIlYr8ZffIzv5eCyMKGDsm6R66z5UvzeHbWZ9s24a3PCmp1AaMxdA129Q0H8Q+G3TR5J
  sSHR6lrRDq9Tm97NrxVdo/H+3DLDTCEk+R7bF8kaG2MXgmNEIRgfBuOcvz080TCqxyUV
  43vyeyYD1Lsps7VbL2T+ZUqZ1M97Vhs/39qEtVcl60K6fIgMbzCAMHSZKD0M45kXtvDj
  nDbw==
Received: by 10.220.215.136 with SMTP id he8mr409634vcb.13.1337979694087;
 Fri, 25 May 2012 14:01:34 -0700 (PDT)
Return-Path:
Received: from [192.168.0.2] ([189.121.236.2])
 by mx.google.com with ESMTPS id c17sm5994095vdj.11.2012.05.25.14.01.32
 (version=SSLv3 cipher=OTHER);
 Fri, 25 May 2012 14:01:33 -0700 (PDT)
Message-ID:<4fbff327.7090...@gmail.com>
Date: Fri, 25 May 2012 18:01:27 -0300
From: Rodrigo de Almeida Rodriguez
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 
Thunderbird/12.0.1
MIME-Version: 1.0
To:
  
php-general-sc.1337979632.kkandladimnlbpfgghko-rodrigo.almeid=gmail@lists.php.net
Subject: Re: confirm subscribe to php-general@lists.php.net
References:<1337979632.71180.ez...@lists.php.net>
In-Reply-To:<1337979632.71180.ez...@lists.php.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Simple XML, (x)html, and xpath

2012-05-25 Thread Andrew Ballard
On Fri, May 25, 2012 at 3:57 AM, Gary  wrote:
> If I use simplexml_load_string to create an XML object with the
> following XHTML
> ,
> | 
> |  | "http://www.w3.org/TR/
> | xhtml1/DTD/xhtml1-strict.dtd">
> | http://www.w3.org/1999/xhtml";>
> |  | />
> | test title
> | 
> | 
> | 
> | 
> | 
> `
>
> I get this SimpleXMLElement back
> ,
> | object(SimpleXMLElement)#1 (2) {
> |   ["head"]=>
> |   object(SimpleXMLElement)#2 (1) {
> |     ["title"]=>
> |     string(10) "test title"
> |   }
> |   ["body"]=>
> |   object(SimpleXMLElement)#3 (1) {
> |     ["comment"]=>
> |     object(SimpleXMLElement)#4 (0) {
> |     }
> |   }
> | }
> `
>
> but I cannot seem to get anything out of an xpath expression, no matter
> what I try.
>
> If, however, I remove the 'xmlns="http://www.w3.org/1999/xhtml";' in the
> html element, it works fine. So yeah, I can just remove that text,
> but... is there something wrong here, in my expectation or in the xpath
> function?
>
> TIA.
>
> --
> Gary        Please do NOT send me 'courtesy' replies off-list.

Gary,

I am not sure what you have tried, but namespaces change everything in
XPath compared to documents without them. This isn't exact, but XPath
without namespaces is often simple such as:

/html/head/title

Once you add a namespace, though, the XPath becomes something like

/*[namespace-uri()='http://www.w3.org/1999/xhtml' and
local-name()='html']/*[namespace-uri()='http://www.w3.org/1999/xhtml'
and local-name()='head']/*[namespace-uri()='http://www.w3.org/1999/xhtml'
and local-name()='title']


(I'm not sure of the exact syntax since I don't have something open
right now that I can test it in.

However, I think SimpleXML has some features that make this easier.
Take a look at this:

http://www.php.net/manual/en/simplexmlelement.registerxpathnamespace.php

Andrew

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Function size

2012-05-25 Thread Tedd Sperling
On May 24, 2012, at 5:01 PM, Ashley Sheridan wrote:

> On Thu, 2012-05-24 at 15:48 -0500, tamouse mailing lists wrote:
>> On May 23, 2012 9:14 AM, "Tedd Sperling" > > wrote:
>> >
>> > H
>> Yes, I think that is *exactly* the criterion-- not a mystery or an emergent
>> thing, really, was a pretty expicit reasoning--being able to see/scan the
>> entire function on one page (or now in one screenful) makes it much easier
>> to see what happens in the function, where blocks open/close, and it forces
>> one to break up code into logical units.
>> 
> 
> With the odd exception being where code is more readable in a longer format, 
> as seen with my and several others examples of long functions that rely 
> heavily on switches. 
> 
> -- 
> Thanks,
> Ash

Yep, not everything can it -- there are exceptions.

Cheers,

tedd


_
t...@sperling.com
http://sperling.com



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Function size

2012-05-25 Thread Tedd Sperling
On May 24, 2012, at 4:48 PM, tamouse mailing lists wrote:

> Yes, I think that is *exactly* the criterion-- not a mystery or an emergent 
> thing, really, was a pretty expicit reasoning--being able to see/scan the 
> entire function on one page (or now in one screenful) makes it much easier to 
> see what happens in the function, where blocks open/close, and it forces one 
> to break up code into logical units.

While it may be obvious to you, there is considerable study on the ways we 
perceive things -- this is just one we apparently take for granted ... at least 
now.

Cheers,

tedd


_
t...@sperling.com
http://sperling.com


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Simple XML, (x)html, and xpath

2012-05-25 Thread ma...@behnke.biz


Gary  hat am 25. Mai 2012 um 09:57
geschrieben:

> If I use simplexml_load_string to create an XML object with the
> following XHTML
> ,
> | 
> |  | "http://www.w3.org/TR/
> | xhtml1/DTD/xhtml1-strict.dtd">
> | http://www.w3.org/1999/xhtml";>
> |  | />
> | test title
> | 
> | 
> | 
> | 
> | 
> `
>
> I get this SimpleXMLElement back
> ,
> | object(SimpleXMLElement)#1 (2) {
> |   ["head"]=>
> |   object(SimpleXMLElement)#2 (1) {
> | ["title"]=>
> | string(10) "test title"
> |   }
> |   ["body"]=>
> |   object(SimpleXMLElement)#3 (1) {
> | ["comment"]=>
> | object(SimpleXMLElement)#4 (0) {
> | }
> |   }
> | }
> `
>
> but I cannot seem to get anything out of an xpath expression, no matter
> what I try.
>
> If, however, I remove the 'xmlns="http://www.w3.org/1999/xhtml";' in the
> html element, it works fine. So yeah, I can just remove that text,
> but... is there something wrong here, in my expectation or in the xpath
> function?


Maybe you can show us your xpath expression?


>
> TIA.
>
> --
> GaryPlease do NOT send me 'courtesy' replies off-list.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
Marco Behnke
Dipl. Informatiker (FH), SAE Audio Engineer Diploma
Zend Certified Engineer PHP 5.3

Tel.: 0174 / 9722336
e-Mail: ma...@behnke.biz

Softwaretechnik Behnke
Heinrich-Heine-Str. 7D
21218 Seevetal

http://www.behnke.biz

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php