Re: Why CakePHP ?

2014-09-08 Thread Dakota
Or use Croogo (croogo.com) and get the best of both worlds (cms and cakephp) -- 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

Re: CakePHP 3 controller with prefix

2014-09-08 Thread Andras Kende
Probaly this one : http://book.cakephp.org/3.0/en/development/routing.html#route-elements CakePHP does not automatically produce lowercased urls when using the :controller parameter. If you need this, the above example could be rewritten like so: The special class will make sure that the :con

Re: Why CakePHP ?

2014-09-08 Thread #2Will
You need a cms. have a look at silverstripe, statamic or wordpress. depending on your needs, one of those will be lovely. Don't use java. Don't roll your own cms. have a great day Will On Tuesday, 2 September 2014 15:47:59 UTC+10, prakhil samar wrote: > > Hi All, > > Hope you all are doi

Security Component is Ruining my Life

2014-09-08 Thread #2Will
I've got an app i have been maintaining for a while now. The security component causes more headaches than anything else. In fact, because cakephp is so nice to work with, i think Security Component (SC) causes all the headaches... I've read through the docs a fair bit, i have bits of code sc

Re: CakePHP 3 controller with prefix

2014-09-08 Thread Tiago Barrionuevo
Great, that's it! I just didn't understand it... Isn't it the default cake behavior about controller's filenames (CamelcasedController.php) ? If so I think it shouldn't be necessary to configure the prefix route to behave like this. Anyway thanks for your reply, it's working now. Em segunda-f

Re: CakePHP 3 controller with prefix

2014-09-08 Thread Andras Kende
do you have InflectedRoute in your routes ? Router::prefix('admin', function($routes) { // All routes here will be prefixed with `/admin` // And have the prefix => admin route element added. $routes->connect('/:controller', ['action' => 'index'], ['routeClass' => 'Inflect

CakePHP 3 controller with prefix

2014-09-08 Thread Tiago Barrionuevo
When I'm using a prefix (admin) I get the following error trying to access '/project/admin/user': Missing Controller *Error: **usersController* could not be found. *Error: * Create the class *usersController* below in file: src/Controller/Admin/usersController.php https://www.facebook.com/Ca

XML Parsing Error in Google Shopping Feed

2014-09-08 Thread Rafael Queiroz
Hi, I'm trying Google Shopping feed in my app, i using Cake 2.2.5, parseExtensions and RequestHandler respondAs XML. The sitemap.xml is perfect but feed.xml returned XML Parsing Error: undefined entity. The content i'm using is example_feed.xml from Google Shopping (copied in https://gist.github.c

Re: cakephp how to find a field that is joined by related tables

2014-09-08 Thread Paul Drage
I have an identical issue at the moment which i suspect is all down to the relationship between our models. Let you know if i ever get mine sorted! -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you ar

Re: Make AppController variable available in pluginAppController

2014-09-08 Thread Marlin Cremers
You're not setting the variables in the object scope but in the method scope. This means that the variables will be erased from memory when the method execution has been done. You also need to make sure that you call parent::beforeFilter(); In your plugin's AppController. Otherwise the general A

Model chaining for a find statement not returning expected results

2014-09-08 Thread Paul Drage
Hi Guys, I've been trying to get this query going for a couple of days - I wrote some really hacky (non cakey php) code to lookup a 'name' field given the 'id' field that I *am* getting out of the query - it sort of worked but it was a real mess. I know that this can be done, and it can be don

How to set startd date today on form date input in Cakephp3

2014-09-08 Thread Jipson Thomas
Hi, Would you please let me know how I can set the expiry date field using form date input in cakephp 3 with a validation that it should be a future date. My code written on template s as follows. echo $this->Form->input('expiry_date', [ 'label' => 'Expiry Date', 'minYear' => date