Re: Putting custom code in a separate repository
On Mon, 09 Sep 2013 06:48:42 -0700, David Suna wrote: > Thanks for the suggestion. > > From a quick look at git submodules it seems that they are geared to using > them in a single directory. The changes to a clean CakePHP installation > end up being across multiple directories as well as include changes to some > of the files in the original CakePHP repository. I didn't see how > submodules would handle that situation. Do you have a reference that would > explain this more? You can leave out Cakephp from the app repo. But if you want to use submodule, there are a few options, this is how I do it for 2.x based project: - initialize your skeleton project. This is where you do your work. /path/to/Console/cake bake project foo cd foo git init git add -A git commit - setup a submodule for cake in Vendor git submodule add git://github.com/cakephp/cakephp Vendor/cakephp So, CAKE_CORE_INCLUDE_PATH will be foo/Vendor/cakephp/lib. So you would need to adjust foo/Config/bootstrap and foo/Console/cake so that it knows where to look. Or just don't put cake in your repo at all. And tell your 'foo' project the location of Cake. There are a few ways of doing this: * setup cake in php.ini include_path (not recommended, since it will be difficult to run different versions of cake easily) * create a symlink from your project, eg: foo/../lib/Cake -> /path/to/cake/lib/Cake Note: When working with submodules, I recomment to use a recent git. Quite a few improvements were added to ease its management. For 3.x, the recommended way of doing this will be with composer. -- 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: Cake CLI no longer works
On Tue, 25 Jun 2013 09:26:37 -0700, Ribamar FS wrote: > Try to upgrade to Ubuntu 12.10. > The version of PHP is the problem. No. I've been running stock php from 12.04 + several custom compiled PHP without issue. The problem lies somewhere else. > Em domingo, 5 de maio de 2013 05h29min50s UTC-3, CrotchFrog escreveu: >> >> I've been running Cake on Ubuntu Server 12.04 for quite some time now and >> never a problem. I don't necessarily have a problem with CakePHP itself, >> but more than likely something changed on my system and I can't quite >> figure it out. >> >> I recently tried to bake a model for a newly added table in one of my apps >> and when I execute "cake" anywhere in my system or app all the way down to >> /app/Console I'm greeted with *: No such file or directory*. The version >> of Cake makes no difference, I have several versions on the server and I >> tried two or three just to be sure. >> >> echoing *$PATH *returns * >> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/mnt/share/cake234/lib/Cake/Console >> >> *so the problem is not there. Check that your 'cake' file in has the executable bit: $ ls -l /mnt/share/cake234/lib/Cake/Console/cake >> Everything was working just fine as recently as a couple weeks ago and the >> only real change to the system since then was a new install of Nagios. >> >> I'm still getting my feet wet with *nix so really unsure of where to start >> looking for the cause of the problem. Some commands to help check your path: $ which php $ which 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/groups/opt_out.
Re: Issues upgrading component from 1.x to 2.x
On Mon, 24 Jun 2013 03:29:06 -0400, Michael Gaiser wrote: > Don't get me wrong, I will have to do that too, but the unfortunate part is > that if you have the aro added when you add a new user/group via > parentNode() it doesn't update the alias which I want to use withing my > check() function. I would like to build what I want to do on top of the > existing acl base code but that means extending the class and overriding > the necessary functions. Why don't you update the alias in your User/Role|Group model instead? Or via behaviors? Eg: https://github.com/croogo/croogo/blob/master/Plugin/Acl/Model/Behavior/UserAroBehavior.php https://github.com/croogo/croogo/blob/master/Plugin/Acl/Model/Behavior/RoleAroBehavior.php#L56 -- 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 upgrading component from 1.x to 2.x
On Sun, 23 Jun 2013 01:43:28 -0400, Michael Gaiser wrote: > Or even, just a solid example that extends the existing AclComponent so > that I can actually override some of the functions in it? Thanks again! 2.x has loads of Auth enhancements. You probably don't want to extend AclComponent. Instead, see if you can create custom Authorize or Authenticate objects. Check the book. Ceeram has some solid classes too: - https://github.com/ceeram/authenticate - https://github.com/ceeram/Authorize -- 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: Anyone tried installing CakePHP on Google App Engine (since PHP now support)
On Wed, 19 Jun 2013 16:57:27 -0700, Chris G wrote: > Just curious as to whether anyone had come across a tutorial on getting > CakePHP up and running on Google App Engine since php support has come > online? Yes, I have ran Croogo on GAE. I have turned it off since they offer no free plan for CloudSQL. Two points of interests: - Your app can't write to file systems: use memcached and SyslogLog engine from 2.4 branch - Patch your webroot/index.php: diff --git a/webroot/index.php b/webroot/index.php index c1f5520..fef064f 100644 --- a/webroot/index.php +++ b/webroot/index.php @@ -92,5 +92,8 @@ if (isset($_SERVER['PATH_INFO']) && $_SERVER['PATH_INFO'] == '/favicon.ico') { App::uses('Dispatcher', 'Routing'); +$_SERVER['SCRIPT_FILENAME'] = __FILE__; +$_SERVER['PHP_SELF'] = 'webroot/index.php'; + $Dispatcher = new Dispatcher(); $Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'; -- 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: Cannot access empty property in View.php on line 854
On Wed, 12 Jun 2013 20:19:12 -0700, alfredo davila wrote: > ok, this is my View call add.ctp > > Create an Account > $form->create('User', array('action' => 'add')); > echo $this->$form->input('username'); > echo $this->$form->input('password', array('type' => 'password')); > echo $this->$form->input('password_confirm', array('type' => > 'password')); > echo $this->$form->submit(); > echo $this->$form->end(); What is $this->$form ? Typically, it would be $this->Form->method() -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.