CakePHP Fake Seeder Plugin

2015-08-31 Thread ravage1984


Today I released the initial version of my fresh out of the oven CakePHP 
(2.x) Fake Seeder plugin.


https://github.com/ravage84/cakephp-fake-seeder


"A CakePHP shell to seed your database with fake and/or fixed data."


I would love to hear some feedback from the community.


Enjoy the baking!

Marc



-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: CakePHP MicroVersion

2015-08-14 Thread ravage1984
May be check out this article from one of the CakePHP core developers:

http://josediazgonzalez.com/2014/03/23/cakephp-a-microframework/

Marc

Am Donnerstag, 13. August 2015 10:37:31 UTC+2 schrieb rafaelmsantos.com:
>
> Is there any cakePHP microframework to build small restfull apps?
> Thanks everyone.
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: Which parts of the framework can be used outside the framework?

2015-07-10 Thread ravage1984
David,

First, checkout the various GitHub repos besides the framework, the app 
skeleton and the usual suspects such as DebugKit:
https://github.com/cakephp/

Let's take Event for example:
https://github.com/cakephp/event

There is not only a README as you found out, but more importantly a 
composer.json:
https://github.com/cakephp/event/blob/3.0.8/composer.json

As you can see this one does not have any other dependencies (neither 
CakePHP nor external ones).

So let's checkout the packages of CakePHP on Packagist:
https://packagist.org/packages/cakephp/

There it is again, the Event package:
https://packagist.org/packages/cakephp/event

Then go and create a project locally and create a composer.json, e.g. like 
this:

{
"name": "ravage84/cakephp-event-test",
"type": "project",
"require": {
"cakephp/event": "^3.0"
},
"license": "MIT",
"authors": [
{
"name": "Marc Würth",
"email": "rav...@bluewin.ch"
}
]
}

Then execute 
composer install
and you should be able to use the Event library in your new project. ;-)

Certainly this is only one example and you do not need to use Composer 
necessarily.

Hope this clears it up.

Greetings from Switzerland
Marc

Am Mittwoch, 8. Juli 2015 23:12:29 UTC+2 schrieb David Yell:
>
> I've noticed that stuff like the Event library have their own readme's 
> does that mean that the library can be used outside the framework, like a 
> component?
>
> I'm making a presentation and I would like a list of all the parts of the 
> framework which can be used outside the framework as a bonus point for Cake.
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: Cake 2.5.1 Extremely Slow With MSSQL?

2014-08-14 Thread ravage1984
I'm not sure if this is really a good idea.
See:
http://stackoverflow.com/questions/1155211/what-is-pdo-scrollable-cursor

But if you want this find its way into the core, then you can help the core 
team to get in there.

Help yourself by either:
a) Create an issue explaining everything on GitHub 
https://github.com/cakephp/cakephp/issues/new
b) Fork the code, change it, prove that it really solves the problem 
without breaking anything else and create a Pull Request 
https://github.com/cakephp/cakephp/

Thanks
Marc

Am Mittwoch, 13. August 2014 16:07:26 UTC+2 schrieb Jordan Hopfner:
>
> Thanks Alan, appreciate the help. The project has been put on hold for now 
> but I'll definitely try this change when I go to use SQL Server again. It 
> would be great if the core team would make these changes to Cake :)
>
> On Friday, August 8, 2014 10:30:20 PM UTC-6, Alan Read wrote:
>>
>> Changing the line:
>>
>> 772) $prepareOptions += array(PDO::ATTR_CURSOR => PDO::CURSOR_SCROLL);
>>
>> to
>>
>> 772) $prepareOptions += array(PDO::ATTR_CURSOR => PDO::*CURSOR_FWDONLY*);
>>
>> in the _execute function inside of Sqlserver.php solved this issue for me
>>
>> On Wednesday, May 28, 2014 5:19:09 PM UTC-4, Jordan Hopfner wrote:
>>>
>>> Hey guys,
>>>
>>> I'm using the latest version of Cake (2.5.1) and am having a problem 
>>> with extremely slow connections to a MSSQL server. A controller action that 
>>> only has one simple select statement is taking an upwards of 50 seconds to 
>>> complete. I don't think it's the select statement itself, I have a created 
>>> an empty page that connects to MSSQL via PDO and executes the exact same 
>>> statement and the result is instantaneous, so this leads me to believe it's 
>>> a problem with the MSSQL data source packaged with Cake. If it was a driver 
>>> or connection issue I would assume it would happen on the test page as 
>>> well. Any ideas? I'm on PHP 5.3.x and am connecting to SQL Server 2008 R2.
>>>
>>> Jordan
>>>
>>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


RFC: German CakePHP Docs

2014-08-05 Thread ravage1984
Hello bakers!

Recently there was a Pull Request on GitHub 
 for adding *German 
documentation* to the Cookbook.

Dereuromark  (CakePHP core developer) and 
rme  (CakePHP docs contributor) are both 
German speaking.
We both don't see a pressing need for a German documentation for the 
CakePHP framework.

We ask all German speaking developers of our community to read the 
discussion in the Pull Request on GitHub 
.
Please give us your opinion and may be your commitment to contribute to the 
German docs.

Thank you and hopefully see you at the CakeFest 2014 !

Greetings from Switzerland
Marc

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: File clean up after using CakeResponse::file()

2013-10-25 Thread ravage1984
Hey Reuben

Out of sheer curiosity (once again *g*), I gave it a try.

You are right, there is no way to do this in one request/response since 
sending the response is the last thing the browser does. That's just how 
HTTP works.

There are two ways though, I think (and I'm may be wrong, it 7 in the 
morning...):
1. Never save the file to the disk, serve it directly from the memory. 
Probably not applicable due to file size.
2. A trick that *could* work is after sending the content to the browser, 
send a redirect afterwards.

I could verfiy that the content gets send and the browser (Firefox at 
least) redirects me the the new location:

public function download() {
> $path = WEBROOT_DIR . DS . 'files' . DS . 'testfile1.txt';
> $file = new File($path, true, 0644);
> $created = $file->create();
> $opened = $file->open($path);
> $data = str_pad('', 102400, '1234567890');
> $written = $file->write($data);
> $closed = $file->close();
>
> $this->response->file($path, array('download' => true);
> $this->response->header('Location', Router::url(array('action' => 
> 'delete_file', 'testfile1.txt')));
> }
>

The action that the user get's redirected to has to delete the file and may 
be redirect the user again to another page.
I didn't test it thourougly though.
A problem could be, if the file is big, that the webserver is still sending 
the file.
But either that is an edge case or you could wait for the file to get 
released and then delete it, I don't know what works for you.

This could be totally bullshit, because I've actually haven't worked with 
CakeResponse yet...
Anyway, I'd love to hear what worked for you in the end.

Greeting from Switzerland
Marc

On Friday, October 25, 2013 8:36:36 AM UTC+2, Reuben wrote:
>
> Just had a thought.  A really short cache could also do the trick, as long 
> as that cache content could be referenced by CakeResponse::file().
>
> On Friday, 25 October 2013 16:34:39 UTC+10, Reuben wrote:
>>
>> Looking at the way CakeResponse::file() works, it does not appear it is 
>> possible to clean up a particular file in the same request that generated 
>> it, because the file is send when the body is actually generated, which is 
>> after afterFilter, and after all the Dispatch Filters would have fired.
>>
>> Instead, I opted for a method where the method that downloads a file also 
>> cleans up temporary files that may be more than 5 minutes old.  The files 
>> that are getting downloaded are not that big, and the connections to the 
>> website are not expected to be slow, so there shouldn't be an issue of 
>> unlinking files that are in the middle of downloading.  And if it does take 
>> more than 5 minutes to download, bad luck.
>>
>> Regards
>> Reuben Helms
>>
>> On Friday, 25 October 2013 14:14:15 UTC+10, Reuben wrote:
>>>
>>> I have a function that extracts a file from an archive, and streams it 
>>> to the client via CakeResponse::file().
>>>
>>> As a part of extracting the file from the archive, I've had to put it in 
>>> a temporary file, and then pass that to CakeResponse::file().
>>>
>>> Once this is done, I'd like to clean up the temporary file, however, I'm 
>>> having trouble finding a good place to do it.
>>>
>>> Currently, I'm setting a property on the controller so that I can work 
>>> out what file I have to remove later.
>>>
>>> I've tried using afterFilter on the controller, but this seems to remove 
>>> the file before it starts getting streamed to the user.
>>>
>>> The next spot might be in a Dispatch filter, but I've got no idea where 
>>> to start, and if a dispatch filter has access to the controller.
>>>
>>> Any pointers, please?
>>>
>>> Regards
>>> Reuben Helms
>>>
>>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Issues have moved to Github

2013-10-16 Thread ravage1984
As it's about a part of the CakePHP framework, I don't see why it should be 
wrong to put it into its issue list.
https://github.com/cakephp/cakephp/issues

Marc

Am Dienstag, 15. Oktober 2013 09:01:50 UTC+2 schrieb Reuben:
>
> Where might one submit an issue about installing via Composer for CakePHP 
> 2.4.1?
>
> I couldn't see a repository responsible for the Vendor/bin/cake.bat file 
> imported or generated when performing a CakePHP install via Composer.
>
> Regards
> Reuben Helms
>
> On Saturday, 12 October 2013 12:41:57 UTC+10, mark_story wrote:
>>
>> The CakePHP team is happy to announce that as of today both issues and 
>> pull requests will be managed at github. We have archived the lighthouse 
>> projects and made them read-only. All open tickets from lighthouse have 
>> been migrated to their respective github projects. We'll be continuing to 
>> wrangle and update tickets in github over the next few days. We'll also be 
>> updating the links on the various CakePHP sites to reflect this change, and 
>> ask your patience while we get all the information updated.
>>
>> ## Why change?
>>
>> While moving bug trackers is rarely a pleasant experience, we think the 
>> move to github will be positive for the community. Since our move to 
>> lighthouse in 2009, the ticket management features provided by github have 
>> improved dramatically. With excellent search and tight integration with 
>> pull requests we feel the ticketing features provided by github now offer a 
>> number of advantages over lighthouse. We hope that moving issues to github 
>> makes it easier and simpler for new and existing contributors to continue 
>> making CakePHP a fantastic project. We'd like to thank lighthouse for the 
>> excellent service and hosting over the past 4 years.
>>
>>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Help with controller

2013-09-11 Thread ravage1984
Hi, Joshua

Please if you double post, mark both posts as such (through edit or answer 
to the post ).
Also please provide additional information that others can actually help 
you.

Other post:
https://groups.google.com/forum/#!topic/cake-php/ut4tW4gWQrQ

Thanks
Marc

Am Sonntag, 8. September 2013 06:10:46 UTC+2 schrieb Joshua Song:
>
> Hey Guys,
>
> I'm new to cakephp, but I made a website using both cakephp and bootstrap.
> When I made the website on localhost, it was perfectly fine.
> But for some reason when I moved it to my web host, one of the pages 
> wouldn't load
> due to a missing controller error. But the controller file was there. Any 
> ideas?
>
> Thank You
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Problem with controllers

2013-09-11 Thread ravage1984
Hi, Joshua

Please if you double post, mark both posts as such (through edit or answer 
to the post ).
Also please provide additional information that others can actually help 
you.

Other post:
https://groups.google.com/forum/#!topic/cake-php/X0iUBZwiWOY

Thanks
Marc

Am Sonntag, 8. September 2013 05:57:45 UTC+2 schrieb Joshua Song:
>
> Hey guys,
>  I'm rather new to Cakephp, but I made a website using cakephp and 
> bootstrap churchsupport.org
> Anyways, I when I made this on the localhost, everything worked fine. But 
> for some reason after I moved the site to a web host,
> one of the controllers (the about us controller) seems to be missing. But 
> I checked the files and the controller file is definitely there.
> Please help. Thank you.
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Can one use jquery instead of JsHelper?

2013-09-07 Thread ravage1984
https://groups.google.com/forum/#!searchin/cakephp-core/jshelper/cakephp-core/UaXqk_rTdxE/AaznyE_XG1gJ

Am Samstag, 7. September 2013 15:49:13 UTC+2 schrieb Sam:
>
> Anyone knows why JSHelper will be removed in CakePHP 3.0? What is bad 
> about it that caused it to be removed?
>
> On Saturday, September 7, 2013 9:25:36 PM UTC+8, ravag...@gmail.com wrote:
>>
>> Guys, keep in mind that in CakePHP 3.0 there will be no JSHelper.
>>
>> https://github.com/cakephp/cakephp/pull/1012
>>
>> So I personally recommend to not rely on it, if you can.
>>
>> Sam, if you just started to use CakePHP and have not implemented JSHelper 
>> yet, don't start with it.
>> There's not much advantage over it except for convenience.
>>
>> You still can write performant & clean jquery code in combination with 
>> CakePHP without using JSHelper.
>>
>> Greetings from Switzerland
>> Marc
>>
>> Am Freitag, 6. September 2013 09:08:38 UTC+2 schrieb Simon Males:
>>>
>>> Yes you can. 
>>>
>>> JsHelper is just a shortcut to a few jQuery methods. 
>>>
>>> In particular I believe it's a convenient tool if you use jQuery UI. 
>>>
>>> On Fri, Sep 6, 2013 at 2:32 PM, Sam  wrote: 
>>> > Dear CakePHP experts, 
>>> > 
>>> > I would like to use CakePHP and jQuery. There are sample source code 
>>> > available with jQuery that I would like to use. But when I read 
>>> CakePHP 
>>> > documentation, the code with JsHelper is different from jQuery. Can I 
>>> simply 
>>> > use jQuery and not JsHelper in CakePHP? 
>>> > 
>>> > May I ask those who have used JsHelper, what are the advantages of 
>>> JsHelper 
>>> > over jQuery? 
>>> > 
>>> > Thank you. 
>>> > 
>>> > -- 
>>> > Like Us on FaceBook https://www.facebook.com/CakePHP 
>>> > Find us on Twitter http://twitter.com/CakePHP 
>>> > 
>>> > --- 
>>> > You received this message because you are subscribed to the Google 
>>> Groups 
>>> > "CakePHP" group. 
>>> > To unsubscribe from this group and stop receiving emails from it, send 
>>> an 
>>> > email to cake-php+u...@googlegroups.com. 
>>> > To post to this group, send email to cake...@googlegroups.com. 
>>> > Visit this group at http://groups.google.com/group/cake-php. 
>>> > For more options, visit https://groups.google.com/groups/opt_out. 
>>>
>>>
>>>
>>> -- 
>>> Simon Males 
>>>
>>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Can one use jquery instead of JsHelper?

2013-09-07 Thread ravage1984
Guys, keep in mind that in CakePHP 3.0 there will be no JSHelper.

https://github.com/cakephp/cakephp/pull/1012

So I personally recommend to not rely on it, if you can.

Sam, if you just started to use CakePHP and have not implemented JSHelper 
yet, don't start with it.
There's not much advantage over it except for convenience.

You still can write performant & clean jquery code in combination with 
CakePHP without using JSHelper.

Greetings from Switzerland
Marc

Am Freitag, 6. September 2013 09:08:38 UTC+2 schrieb Simon Males:
>
> Yes you can. 
>
> JsHelper is just a shortcut to a few jQuery methods. 
>
> In particular I believe it's a convenient tool if you use jQuery UI. 
>
> On Fri, Sep 6, 2013 at 2:32 PM, Sam > 
> wrote: 
> > Dear CakePHP experts, 
> > 
> > I would like to use CakePHP and jQuery. There are sample source code 
> > available with jQuery that I would like to use. But when I read CakePHP 
> > documentation, the code with JsHelper is different from jQuery. Can I 
> simply 
> > use jQuery and not JsHelper in CakePHP? 
> > 
> > May I ask those who have used JsHelper, what are the advantages of 
> JsHelper 
> > over jQuery? 
> > 
> > Thank you. 
> > 
> > -- 
> > Like Us on FaceBook https://www.facebook.com/CakePHP 
> > Find us on Twitter http://twitter.com/CakePHP 
> > 
> > --- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "CakePHP" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an 
> > email to cake-php+u...@googlegroups.com . 
> > To post to this group, send email to cake...@googlegroups.com. 
>
> > Visit this group at http://groups.google.com/group/cake-php. 
> > For more options, visit https://groups.google.com/groups/opt_out. 
>
>
>
> -- 
> Simon Males 
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.


Re: how do I get a barcode inside a table?

2013-08-07 Thread ravage1984
http://vintasoft.com/vsbarcode-dotnet-index.html
May be?

Google is your friend:
http://www.google.ch/search?hl=de&q=barcode+pdf+einlesen#bav=on.2,or.r_qf.&fp=a2c38355a318043b&hl=de&q=barcode+image+read

Barcodes are nothing but a string of digits, where's your problem?

Am Mittwoch, 7. August 2013 09:53:51 UTC+2 schrieb sneha kulkarni:
>
> Hi,
>  
> how do I get a barcode inside a table? Now it just floats outside the 
> table in
> the upper left corner of the pdf. How do I get it inside the td?
>  Help much appreciated.
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.




Re: 3.0: a peek into CakePHP's future

2013-08-07 Thread ravage1984
Indeed, CakePHP shouldn't be (tightly) coupled with any frontend framework.
Joomla! for example learnt its lessons when they wanted to get rid of the 
coupled mootools.

If CakePHP should be coupled, then certainly with the most popular anyway.
There are many tastes, preferences etc and thus opnions vary very much.

Nonetheless jQuery is the most popular and most widely used one.
But still I wouldn't couple CakePHP with it too tightly.
It's too easy to download the newest version of jQuery or link it through a 
CDN in your views anyway.

I think for many developers having scaffolding and baking with a powerful 
and javascript-empowered UI seem very useful at first.
That's why they want to have CakePHP to also include those frontend tools.
But after some experience with baking and scaffolding I must say I'd prefer 
that CakePHP would even dump it down.

Integration of such frameworks or improved scaffolding in any way should be 
done trhough plugins.
So the integration of jQuery itself or TwitterBootstrap (which is based on 
jQuery) for example, which are both very popular, could and should - IMHO - 
be done in a "first class citizen" plugin - if there is enough demand for 
it.

There are already such projects around.
For example:
https://github.com/slywalker/cakephp-plugin-boost_cake (or it's 
predecessor).
or some you find here:
http://plugins.cakephp.org/packages?query=admin

I think it would make sense to "outsource" these efforts away from the 
project itself to a few dedicated and by the CakePHP lead 
(oficially/inofficially) supported projects.

Marc

On Tuesday, August 6, 2013 6:21:54 PM UTC+2, mark_story wrote:
>
> I don't think we'll be introducing another tight coupling with a client 
> side framework. In the past we had an integration with prototype, and 
> anyone not using prototype was left out. Choosing something like ember or 
> angular would make CakePHP unsuitable for people wanting to use the other 
> client side framework. I'd rather leave CakePHP un-opinionated about client 
> side frameworks and leave that integration up to the developer.
>
> -Mark
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.




OT: Printed API docs

2013-08-05 Thread ravage1984
Hello everybody.

One of our customers insists in printed docs.
This includes the API docs.

I'm going nuts since neither apigen nor phpdoc2 support this (anymore).
phpdoc 1.x did, but this is no option anymore.

CakePHP officially uses apigen for their api 
docswhich is fine, but that tool misses an export 
feature and by the looks of 
its github repo  it 
doesn't look as if that project is going anywhere.
By the way I know CakePHP uses a modified version of 
apigen
.

I'm curious how did/would you solve this problem.

Greetings from Switzerland
Marc

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.




Re: User Authentication with 2 different tables

2013-07-18 Thread ravage1984
Hi Marius,

I guess best is you use two authentication objects.
Didn't try the following, but it should give you an idea:


public $components = array(
> 'Auth' => array(
> 'authenticate' => array(
> 'WebUserForm' => array(
> 'fields' => array('username' => 'username')
> ),
> 'AdminUserForm' => array(
> 'fields' => array('username' => 'adminname')
> )
> )
> ));
>
>
Where both authentication objects inherit from the Form Auth component.

Greetings
Marc

On Wednesday, July 10, 2013 1:45:44 PM UTC+2, Marius Heil wrote:
>
> Hello,
>
> what's the best approach for the following?:
> I have normal web users and admin users, admin users
> I need the admin users to stay in a different database than the webusers
>
> My admin users and web users have a different table structure that I do 
> not want to merge.
> So I basically just want authentication and authorization with those two 
> tables, what should I do?
>
> Thanks,
> Marius
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.




Re: 3.0: a peek into CakePHP's future

2013-07-18 Thread ravage1984
Mark,

It's good you directly include the containable behavior.
Since I'v started using CakePHP last winter I've heard it so many times 
from experienced developers (e.g. in IRC) that this is a must have in 
everyone's app, that I was wondering why is it not activated by default 
then? ;-)

Thanks for your work!
Marc

On Thursday, July 18, 2013 4:34:10 AM UTC+2, mark_story wrote:
>
> The current plan that Jose and I have discussed is to return objects from 
> the Models/Repo/Table objects. (The name isn't decided yet).  This fixes 
> many of the data format issues and also mostly makes afterFind irrelevant 
> which is nice.
>
> We've also removed containable in name but mainlined it in spirit. Instead 
> of being a separate behavior controlling joins is part of the query builder.
>
> What parts of SecurityComponent are hard for ajax applications? I don't 
> think there will be a way to use the form tampering prevention with ajax 
> forms, however it is already possible to protect those forms from CSRF 
> issues with re-usable CSRF tokens.
>
> -Mark
>
> On Sunday, 5 May 2013 23:52:14 UTC-4, Benjamin Allison wrote:
>>
>> If you're reworking the model layer, I think the most important things 
>> are:
>>
>> 1) Harmonizing the format that data and associated data is save in and 
>> returned in. Right now, it's all over the map, and is sometimes hard to 
>> keep straight.
>>
>> 2) Allowing for a smoother way to filter models by their associated 
>> models; having to write joins is kind of a pain.
>>
>> In addition, a smoother way of using AJAX with the Security component to 
>> help accomodate the growing trend of JS based web apps.
>>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.




RFC: New http://ask.cakephp.org

2013-06-28 Thread ravage1984
[Cross posting this on CakePHP Facebook Group 
https://www.facebook.com/groups/cake.community/]

Hello everybody

I came across an idea which I wanted to share with and hope to spark some 
discussion.
Probably - or better said for sure - I'm not even the first one having it.

First some back story:

As you may know CakePHP's Question & Answer site http://ask.cakephp.org/ 
redirects nowadays to "cakephp" tagged questions on stackoverflow.com.

http://stackoverflow.com/questions/tagged/cakephp

I haven't seen any official statement about that from the development team 
but the Wayback Machine could crawl the page the last time on 09.05.2013.

http://web.archive.org/web/20130509084040/http://ask.cakephp.org

The CakePHP Questions site before that, http://www.cakeqs.org/ (nowadays a 
japanese blog), was last seen on 02.10.2010.
Any later request got redirected to http://ask.cakephp.org/.

http://web.archive.org/web/20101002085134/http://cakeqs.org/

So back to the idea...

Recently I came accross one of the many domain/topic specific sub sites of 
stackoverflow.com.

http://stackexchange.com/sites#technology

For example "Drupal Answers".

http://drupal.stackexchange.com/

And I thought "Hey wouldn't it be nicer to redirect CakePHP's Questions & 
Answers site to something like this instead of just the tagged with 
"cakephp" site?".

Like I said I'm not the first one, so this is rather a follow-up on a three 
years old idea, which time hadn't come yet.

https://groups.google.com/forum/#!searchin/cake-php/stackexchange/cake-php/pA7q6gddW74/aaCntQer_jEJ

But I think the time is now right.
What do you think?
Should we open a proposal for http://cakephp.stackexchange.com/ called 
"CakePHP Questions & Answers" or something like this?

http://area51.stackexchange.com/faq

I personally think it would strengthen the CakePHP brand even further...

Greetings from Switzerland
Marc

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.