his->_connector=$connector;
}
}
class Test{
protected $_database;
public function __construct(){
$this->setDatabase(Dependency::getInstance()->database);
}
public function setDatabase($db){
$this->_database=$db;
}
public function getDat
Hi everyone,
Dependency Injection is a very trendy subject and after reading about it I
kinda thought about rewriting the framework I'm doing with dependency
injection. So I made my own implementation and was wondering what would you
think about it? I have followed the article of Martin Fowler (
h
yes it's open source, it's under LGPL license!
On 14 October 2011 03:52, Sharl.Jimh.Tsin wrote:
> 在 2011-10-13四的 19:06 +0100,jean-baptiste verrey写道:
> > hi everyone,
> >
> > I have been developing an ORM framework for the last year (at least) and
> I
> &
missing or where I could have been completely wrong!
Regards,
Jean-Baptiste Verrey
ps: I'm working hard on checking that the examples of the doc are actually
working, and to add more content to the docs
> On 09/23/2011 03:17 PM, jean-baptiste verrey wrote:
> > seems that the only solution is to still use $_POST and use filter_var
> > instead, it could have been better!
> You can foreach the $_Post['login'] array and use filter_input on each
> iteration to do th
seems that the only solution is to still use $_POST and use filter_var
instead, it could have been better!
On 23 September 2011 14:11, jean-baptiste verrey <
jeanbaptiste.ver...@gmail.com> wrote:
> What do you mean? I don't see how I could use foreach there
>
> On 23 Sept
What do you mean? I don't see how I could use foreach there
On 23 September 2011 13:31, Al wrote:
>
>
> On 9/23/2011 5:51 AM, jean-baptiste verrey wrote:
>
>> Hi,
>>
>> I have using a form that gives me something like
>> $_POST=array(
>> '
ilter_input(INPUT_POST,'login[email]') but it does not work!
Regards,
Jean-Baptiste Verrey
hi,
If you are building your own dal I guess you would have to build your own
adapter,
simply use mysqli function and wrap them in a class.
On 17 September 2011 12:24, shahrzad khorrami
wrote:
> hi all,
> I'm looking for a mysql adapter for create my dal..
> where can I find a good one? and hav
it's (pretty) easy to send two forms at once with jquery nowadays, you just
get all the input of the 2 forms and post them!
function submit2Forms(form1DomId,form2DomId){
$datas={};
$(form1DomId).find(':input').each(function(){
if(($(this).attr('name') &&
$(t
if you want to force the browser to not be able to have this behaviour you
need the name tag to always change
a quick example would be that
2011/8/4 Bálint Horváth
> Hi,
> Use value="$_POST['user']" or sg like that because:
> before send value eq null, after if returned -cause of a fail- the
NetBeans for PHP is definitely a GREAT choice! (it is now made to work
specially for PHP)
And if you don't have access to everything on your computer just install a
VMWare player and have a virtual server ;-) (ok it would take time but once
you have it, you have it)
On 3 August 2011 18:07, Leonard
you always receive from paypal information (you should have something in
$_POST or $_GET) so you can actually identify who it was, so it would be
easy to simply say that if you don't have the information sent then you
don't show the page.
I don't recall exactly how this principal works but it was s
thanks, I should have said I have the project already in sourceforge so I
have an SVN ready, and a outdated website with an outdated user manual and
even an outdated dissertation about the reason for the development of the
project.
On 28 June 2011 21:29, Jay Blanchard wrote:
> [snip]
> I have de
Hi everybody,
I have developed an ORM framework in PHP for the last 2 years and it's
becoming a more professional and nice solution so before doing a
new complete revamp I am going to look for volunteer developers to do a real
good version.
But I am wondering what would be the best and clearest w
y only support mysql and only support whole query at once.
>
> 2011/6/17 jean-baptiste verrey
>
>> - defining the mapping schema in an alternate method than using meta data
>> (I HATE them, I would prefer an XML file with a DTD so you could use
>> autocompletion with IDE like
- defining the mapping schema in an alternate method than using meta data (I
HATE them, I would prefer an XML file with a DTD so you could use
autocompletion with IDE like NetBeans)
- clear keywords in the schema
- OQL can do UPDATEs
- one and only one configuration file with everything in it (and
with mysql use mysql_fetch_assoc, is that what you are asking for ?
On 1 June 2011 16:31, Adam Preece wrote:
> hi all,
>
> is it possible to dynamically build a key value pair array in php from a
> database result?
>
> if so how?
>
> kind regards
>
> Adam
> --
> PHP General Mailing List (http://
ur download will begin in a moment..." . So header
> couldn't help me. If I try to echo anything header doesn't work!
>
> On Tue, May 31, 2011 at 10:01 PM, jean-baptiste verrey
> wrote:
> > it's made in JavaScript, by creating an iframe loading the file, bu
it's made in JavaScript, by creating an iframe loading the file, but their
downloader might use something like a php file to force download such as
On 31 May 2011 18:02, Ali Asghar Toraby Parizy
wrote:
> I want to build a web page for file auto download like cnet.download.
> A page that tells us
I like how people just like to complain about everything^^
But as the debate is raging I had a look over internet and
http://www.caliburn.nl/topposting.html gave the best argument ever :
we read from *top* to *bottom *so top posting makes you read useless
information^^
Don't worry, be PHaPpy!
On
how to optimize it, if I should write some different version and
benchmark it, or identify from the beginning that my solution is good
enough.
Thanks anyway^^
On 21 May 2011 16:54, Mark Kelly wrote:
> Hi.
>
> On Saturday 21 May 2011 at 15:56 jean-baptiste verrey wrote:
>
>
hi folks,
I'm writing an Object Query Language which is pretty simple, you do request
such as
*SELECT e.*,c.firstName *
*FROM employee e *
*JOIN contact c ON e*
*WHERE e.id=*?
(queries don't get much more complicated than that, you have multiple
alias.fieldName in the select, then multiple joins)
23 matches
Mail list logo