Re: Themed bootstrap

2013-01-23 Thread Sam Sherlock
// Read theme config files from Config directory from within selected theme Configure::config('theme', new PhpReader(APP . 'View' . DS . 'Themed' . DS . $this-theme . DS . 'Config')); // load config file from theme configs Configure::load('bootstrap', 'theme');

Re: Help / Source code for Simple Authentication tutorial

2012-12-20 Thread Sam Sherlock
@OxfordRob where are the Controller Classes currently they (Users App controllers) should be in app/Controller/ - S On 20 December 2012 20:03, OxfordRob pestle...@gmail.com wrote: @cricket - thank you for that explanation of a several points. I made the changes as you suggested but still

Re: Themed bootstrap

2012-10-17 Thread Sam Sherlock
Do you want a bootstrap.php within your theme like you have one in APP/Config/? Or are you using a php file to 'do more' with a request to a css file? I think perhaps croogo might be doing something akin to what your doing if you want per-theme config croogo 1.3 uses yaml 1.4 uses json - S

Re: Shared Apps

2012-10-15 Thread Sam Sherlock
1 cake many apps http://book.cakephp.org/2.0/en/installation/advanced-installation.html - S On 15 October 2012 22:36, John Farrar johnfar...@sosapps.com wrote: Does PHP Cake allow us to build shared apps like the plugin apps for WordPress? -- Like Us on FaceBook

Re: Cake2 - Bake - Windows

2012-09-05 Thread Sam Sherlock
edit the webroot/index.php webroot/test.php files uncomment the line that defines the CAKE_CORE_INCLUDE_PATH mine looks like define('CAKE_CORE_INCLUDE_PATH', DS . 'usr' . DS . 'share' . DS . 'cake' . DS . '2.0' . DS . 'lib'); baking places this comment in index.php and test.php within

Re: $title_for_layout and what changes I need to do

2012-07-23 Thread Sam Sherlock
You using 2.x right? Don't worry about the yet as its 3.0 specific. - S On 15 Jul 2012 11:23, Nvp leh...@gmail.com wrote: Hi! It's my first Cake project I have about 5-6 static pages they are served by the default PagesController. I have title ?php echo $title_for_layout ? /title in my

Re: Nested Menu in Cake 2.x

2012-07-16 Thread Sam Sherlock
http://book.cakephp.org/2.0/en/core-libraries/behaviors/tree.html - S On 16 July 2012 02:15, Ain Devonshire vladimirdevonsh...@gmail.com wrote: yeah but i dont have letf and right fields on my database..can you put on some links as my references? On Friday, July 13, 2012 7:54:26 PM

Re: Login Forms

2012-07-13 Thread Sam Sherlock
get the login working within the users controller have auth set in app controller - set login redirecto to pages display home include the login for in home.ctp via an elemet (the form points to users login) also pages does have a controller its just does not use a model (add

Re: CakeDC User Plugin not sending verification email

2012-07-09 Thread Sam Sherlock
Your email cfg is incorrect with your app - see Config/email.php - S On 9 Jul 2012 23:45, mk mklap...@gmail.com wrote: yes, sorry typo. it is configure::write in my code. The Error simply states Could not send email. *Error: * An Internal Error Has Occurred. I'm running this from

Re: TinyMCE for CakePHP help

2012-07-07 Thread Sam Sherlock
Use the 2.0 branch. - S On 7 Jul 2012 20:41, David Lozzi da...@lozzi.net wrote: Thanks, that seem to move me one step closer. Now I get error Create the class *TinyMceHelper* below in file: C:\xampp\htdocs\insight\app\Plugin\TinyMCE\View\Helper\TinyMceHelper.php When I look in the plugin

Re: User Management Plugin Cakephp 2

2012-05-10 Thread Sam Sherlock
extending the Users plugin into your App makes it easy to customise the the plugins functionality and then you can add acl and stuff. - S On 10 May 2012 05:06, Steven Scaffidi ssca...@gmail.com wrote: Thank you for the advice. I honestly just want to see how they do the email

Re: SEO/Meta Data Helper

2012-04-10 Thread Sam Sherlock
more automatically with callbacks - so that vars are ready set for the helper to automatically set the meta data to the meta block then you could have no code added to view templates unless you want to add more specific stuff at that point http://book.cakephp.org/1.3/view/996/Creating-Components

Re: MenuBuilder doesn't work with cakephp 2.0 (or 2.1)

2012-03-30 Thread Sam Sherlock
in controller I setup the data for menus $main = array( array( 'title' = 'Home', 'url' = '/', ), array( 'title' = 'About', 'url' = '/about', ), array(

Re: MenuBuilder doesn't work with cakephp 2.0 (or 2.1)

2012-03-29 Thread Sam Sherlock
I am using it with 2.1/2.2, I have not made any changes to the setup of the plugin within my app since 2.0 not loading it in bootstrap loadall @GoneShootin Are you getting any output in debugkit? - S On 29 March 2012 12:16, GoneShootin mick...@gmail.com wrote: Thomas Can you go

Re: Debugger Class not found - CakePHP 2.1 - PHP 5.4

2012-03-22 Thread Sam Sherlock
where did the code come from? is it from https://github.com/jadb/cakephp-markitup/blob/master/views/helpers/markitup.php and you ran the upgrade shell 2.0 has no javascript helper - if so the helper will need additional changes to make it work - S On 22 March 2012 23:34, traedamatic

Re: custom route classes in 2.x?

2012-02-20 Thread Sam Sherlock
I have my custom routes working fine in 2.x App::uses('PageSlugRoute', 'Route'); the class in Lib/Route App::uses('Article', 'Model'); App::uses('CakeRoute', 'Routing/Route'); class ArticleRoute extends CakeRoute { ... } in AppModel.php I have App::uses('Model', 'Model'); class AppModel

Re: custom route classes in 2.x?

2012-02-20 Thread Sam Sherlock
happy baking :) - S On 21 February 2012 02:03, lowpass zijn.digi...@gmail.com wrote: On Mon, Feb 20, 2012 at 8:57 PM, Sam Sherlock sam.sherl...@gmail.com wrote: in AppModel.php I have App::uses('Model', 'Model'); class AppModel extends Model { By the shaking, jumping ghost

Re: beginner In CakePHP . HELP PLEASE

2012-02-17 Thread Sam Sherlock
You need to show your code Sounds like your missing parts of an if-statement in the edit action - S On 17 Feb 2012 17:59, kalai mekin...@gmail.com wrote: HI to all, I am a beginner in CakePHP. I would like like to get help in my coding. i am currently creating a directory using CakePHP.

Re: beginner In CakePHP . HELP PLEASE

2012-02-17 Thread Sam Sherlock
@kalai you need to check that $this-data is not empty when adding a building been a while since I used 1.3 but I just baked a project after updating my base of 1.3 I put you code in first without validation in the model (my view were baked too) I have not trouble editing buildings or

Re: beginner In CakePHP . HELP PLEASE

2012-02-17 Thread Sam Sherlock
Building there are Department,People,User,Group..etc.. I was hoping to see the sql and the problem model controller with the code being in bin.cakephp.org or github gist have you got debug on in your app? have you got debug_kit? its a must really when you get an isssue with some controller

Re: Looking for CakePHP freelancer?

2012-02-17 Thread Sam Sherlock
On 17/02/2012 21:41, Baronne wrote: Hi, Is there a place where I can post a job or look for CakePHP developers for some work I need done on my site? thanks baronne get in touch with cakedc. http://cakedc.com/ githire.com may also be helpful -- Our newest site for the community: CakePHP

Re: Strange Routing Behaviour in CakePHP 2.1 Beta

2012-02-16 Thread Sam Sherlock
Spaces are bad in paths avoid them The book had a migration guide. Your app *needs* app controller, model, shell Apart from your app needing the above, if it does not have them, it should work fine. Parts could be tuned for 2.1 eg blocks, events... - S On 17 Feb 2012 05:55, ProFire

Re: How to embebedd flash menu buttons on my site?

2012-02-14 Thread Sam Sherlock
Seo is less of a concern with flash. If you need to Target mobile devices then requiring flash is bad. If your having issue loading xml/images/content into flash look at setting the base param with $this-Html-url('/'); - S On 14 Feb 2012 09:38, phpMagpie p...@webbedit.co.uk wrote: When you

Re: Suggestion

2012-02-14 Thread Sam Sherlock
On 14/02/2012 17:54, Glauco wrote: Hi, I dont know if Cake core team has thinking about it, but I think that would be a great funcionality to add partials to next releases (as RoR). I have seen the helper partials created by joeytrapp

Re: error en shelldispacher.php when i want to execute the cake bake

2012-02-12 Thread Sam Sherlock
what version of php have you got available. note that cake requires php 5.2.8+ (this was upped recently) also if you have set a specific version for php from you server the cli will need to be set differently. $ php -v if the version you running is less than the required (I think you have 4 by

Re: How to embebedd flash menu buttons on my site?

2012-02-12 Thread Sam Sherlock
Once you understand how to src files in webroot all you need to is place the file and ref with you object/embed mark up. Use firebug or such to check that files are found. Unless your using cake internal routing webroot/ should not be part of the url. - S On 12 Feb 2012 21:52, Devis

Re: Ignoring Prefix Routing

2012-02-10 Thread Sam Sherlock
Use a custom component - S On 10 Feb 2012 11:28, Sam Delaney samuelpeterdela...@googlemail.com wrote: Hi, I have multiple routing prefix routes setup and in general it has worked really well to cater for discrete types of users. However there are a few instances where the actions and views

Re: Initialize Baking Issue For Newb

2012-02-06 Thread Sam Sherlock
Yes you can - you need to add lib/Cake/Console to you ensironment path (see the screencast by GWoo) http://book.cakephp.org/2.0/en/installation/advanced-installation.html http://book.cakephp.org/2.0/en/console-and-shells/code-generation-with-bake.html?highlight=bake - S On 6 February 2012

Re: 2.1 Console: Class 'AppShell' not found

2012-02-05 Thread Sam Sherlock
, what wrong with me? On 5 Feb., 02:26, Sam Sherlock sam.sherl...@gmail.com wrote: remove the copy from the cake lib place it in your app mine looks like thishttps:// github.com/cakephp/cakephp/blob/2.1/app/Console/Command/AppSh... notice `App::uses('Shell', 'Console

Re: 2.1 Console: Class 'AppShell' not found

2012-02-04 Thread Sam Sherlock
remove the copy from the cake lib place it in your app mine looks like this https://github.com/cakephp/cakephp/blob/2.1/app/Console/Command/AppShell.php notice `App::uses('Shell', 'Console');` for me on its working as the book informs - S On 4 February 2012 20:59, heohni

Re: ACL manager plugin

2012-01-30 Thread Sam Sherlock
See alaxos acl plugin - S On 30 Jan 2012 03:47, Justin Edwards justinledwa...@gmail.com wrote: Hello all! I am currently managing ACL by hand, and have seen a couple of projects that do some ACL management (croogo and quickapps I believe). I am developing a framework for all of my SaaS

Re: Cake 2.1 Events:

2012-01-30 Thread Sam Sherlock
Listeners configured somewhere else, maybe a config file a comment from code block on cake event doc page I was thinking that the events are set much like custom error handling http://book.cakephp.org/2.0/en/development/errors.html - S On 30 January 2012 20:32, phpMagpie

Re: Problem with CakePlugin on shared server

2012-01-27 Thread Sam Sherlock
, $plugin); Then clear you persistent cache, and try again. --- Regards Chris On Jan 26, 6:38 pm, Sam Sherlock sam.sherl...@gmail.com wrote: I have cake 1.3 2.0 setup on both win7 and ubuntu 11.10 various projects bake as projects sharing the cake lib is good also

Re: Problem with CakePlugin on shared server

2012-01-26 Thread Sam Sherlock
could be the problem anyway? /Eric On Jan 26, 2:34 pm, Sam Sherlock sam.sherl...@gmail.com wrote: Odd. Have you tried setting up advanced setup with cake baked projects? Also is foo a copy of bar? - S On 26 Jan 2012 13:14, Jon Price jonpr...@donet.com wrote

Re: CakeRoute

2012-01-26 Thread Sam Sherlock
Jose Diaz-Gonzalez has some code on github that may help here you'll have to adjust/play a domain redirect comp - set up a model domain_prefixes https://gist.github.com/1498851 Static Page Route plugin (has 1.3/2.x branches) - you'll have to create something very bespoke but this will help you

Re: File Upload Plugins

2012-01-25 Thread Sam Sherlock
Yep I agree the media plugin is amazing and vast (not for all because of that) assuming your using cake 2.0 I would not use the media plugin I just had a short play with Miles J uploadeder (copyied the example from inside the plugin into a test app) the files the uploader moves to WEBROOT/files

Re: Cakephp fails on xampp - cakecontroller could not be found

2012-01-25 Thread Sam Sherlock
Cake might be a bad name for a controller. Your controller has no action method Perhaps add: public function index() {} and put a index.ctp in View/Cake/ Also CakeController.php should be the filename (that casing) - S On 25 Jan 2012 23:18, jkrug_98 jkrug...@yahoo.com wrote: Hi, I'm a

Re: Including JQuery

2012-01-24 Thread Sam Sherlock
thats correct If you do not declare a specific engine, the jQuery engine will be used as the default. from the Book - S On 24 January 2012 16:54, Daniel danwgr...@gmail.com wrote: Even just this worked for me: public $helpers = array('Js'); Correct me if I am wrong, but I think it

Re: Saving relationships

2012-01-23 Thread Sam Sherlock
your relations are in the controller - they should be in the model you don't need to loadModel follower as User hasMany followers - S On 22 January 2012 16:20, J. contact.mysparet...@gmail.com wrote: I'm making a follower system ala Twitter. Here is my UsersController : class

Re: Cakephp 2.0 cPanel and Shell

2012-01-21 Thread Sam Sherlock
not sure if your running what you think your running cake test runs the core test shell whereas you have a test task; as far as I know tasks are run by shells and you should call a command of a shell which in turn calls a task for more info read the example there is helloword

Re: cakephp first step

2012-01-21 Thread Sam Sherlock
have you read the blog tutorial of the book it is available in various languages http://book.cakephp.org/2.0/ - S On 20 January 2012 16:35, marcogo marco.geri...@gmail.com wrote: thanks a lot but where i have to use this instructions? thanks again On 20 Gen, 16:23, Tilen Majerle

Re: Including queried information in default layout

2012-01-20 Thread Sam Sherlock
Is the load model call the line with the error? Can you post more code? The component idea should be fine. More details of your bab/menu model would be good. - S On 20 Jan 2012 16:13, Dave D its.dave.daw...@gmail.com wrote: I'm looking to create a site where I can have a navigation list on

Re: Including queried information in default layout

2012-01-20 Thread Sam Sherlock
) is a whopping 4 lines long. The part from the 1.3 book (http://book.cakephp.org/1.3/ view/996/Creating-Components) has a section on calling models from components, but I'm too new at Cake to know if that would work, and it says it's not generally recommended. Thanks! On Jan 20, 12:12 pm, Sam

Re: Problem with TinyMCE

2012-01-18 Thread Sam Sherlock
I thought that shorttags could be ini_set. Perhaps in bootstrap.php - S On 17 Jan 2012 11:45, LipeDjow liped...@gmail.com wrote: Hi AD7six, I have the same problem, using CakePHP and TinyMCE Plugin. I saw here (

Re: Cake bake command giving error in ubuntu 11.10

2012-01-18 Thread Sam Sherlock
You have a comment in the conf file mentioned, that uses # which is depreciated. You have an old version of cake installed, via apt get. You should remove it and install either 1.3 or 2.0 - S On 18 Jan 2012 09:06, adarsh snehajan adarshsneha...@gmail.com wrote: hi, When I giving bake command

Re: Problem with Paginate (Cake 2.0.5)

2012-01-13 Thread Sam Sherlock
Is the news action diff from index? I think you may need to set some props of the paginator helper. - S On 13 Jan 2012 07:45, Chooch Schubert chooc...@gmail.com wrote: I have followed the 2.0 book to add pagination to a controller/view. I get the paginate controls and they are rendering

Re: Cake 2: Very confusing docs/tutorials... Is there another foolproof source?

2012-01-12 Thread Sam Sherlock
the 2.0 section of book notes which features are 2.1 specific what is phased out too - S On 13 January 2012 02:19, 100rk lubomir.st...@gmail.com wrote: - the $this-fetch('content') line is in the 2.0 docs? http://book.cakephp.org/2.0/en/views.html#view-layouts Probably some mistake

Re: Cake 2: Very confusing docs/tutorials... Is there another foolproof source?

2012-01-12 Thread Sam Sherlock
things the cake way vs the way I did things before using other languages and frameworks. On Thu, Jan 12, 2012 at 9:33 PM, Sam Sherlock sam.sherl...@gmail.comwrote: the 2.0 section of book notes which features are 2.1 specific what is phased out too - S On 13 January 2012 02:19, 100rk

Re: Installation problem with newly baked app

2012-01-12 Thread Sam Sherlock
Open index.php and test.php in webroot. A line which includes lib/Cake is commented out - uncomment it. - S On 13 Jan 2012 07:46, Russ russ.philip...@gmail.com wrote: Hi Daniel, I haven't used WAMP to setup, but I do have Cake 2.0 installed on a Windows 7 machine. (as well as Linux and

Re: CakeEmail with dynamic templates

2012-01-08 Thread Sam Sherlock
http://bin.cakephp.org/ Or github gist. - S On 8 Jan 2012 20:42, Thaissa Mendes thaissa.men...@gmail.com wrote: Hi, Not sure if it's the best approach, but when I did that I built a component, who was calling the DB record, replacing the strings, set to a default template, and sending the

Re: Error Handler (Email not exist)

2012-01-08 Thread Sam Sherlock
Handle bounces http://stackoverflow.com/questions/3139559/processing-an-email-bounce-back-in-cakephp-and-postfix - S On 7 Jan 2012 10:27, majna majna...@gmail.com wrote: I'm not sure wat are you doing, maybe try { ..send email } catch

Re: Cake is NOT able to connect to the database.

2011-12-31 Thread Sam Sherlock
because this is blank 'database' = '', what is the name of the mysql database your connecting to? mysql -u testuser -p123456 -h localhost mysqlCREATE DATABASE cake_testing; mysqlexit; then use 'database' = 'cake_testing', -- Our newest site for the community: CakePHP Video Tutorials

Re: CakePHP and a normalized database

2011-12-31 Thread Sam Sherlock
if you read book.cakephp.org find answers to these questions and more. see the blog tutorial but start reading from the beginning On 31 December 2011 18:03, lcano luis.a.c...@gmail.com wrote: Clint,Thanks a lot! Your code worked and now I am able to retrieve information from different

Re: Paginate an array

2011-12-28 Thread Sam Sherlock
You need to add ); to the end of the line where you call $this-paginate() In php lines end in semi-colons You'll find it helpful if you can setup an editor that matches braces and brackets, code hinting code completion Many editors have such features - Google to get the info. - S On 28 Dec

Re: Ajaxing a $this-Item-find('all') - twitter style.

2011-12-28 Thread Sam Sherlock
You can set your controller to detect ajax requests you can then set the layout to use the ajax layout. This outputs the $content_for_layout var only (not like default.ctp which has html head, body) Request response objects and request handler are things to look at - S On 28 Dec 2011 12:20, J.

Re: CakeSession problem

2011-12-24 Thread Sam Sherlock
You can add a line to htaccess to change version. Suspect you'll have mod rewrite issues after that. You can point the domain direct to the webroot of cake app. I guess you will also need to adjust Console/cake to get php 5.2.6+ on the command line too. On another server I have done the above

Re: Ubersimple auth system... any idea?

2011-12-23 Thread Sam Sherlock
also http://www.dereuromark.de/2011/12/18/tinyauth-the-fastest-and-easiest-authorization-for-cake2/ simple fast - S On 23 December 2011 19:38, Timothy O'Reilly timothy.john.orei...@gmail.comwrote: Doh! Forgot the link -- http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/

Re: Choosing cakephp version

2011-12-22 Thread Sam Sherlock
It should not take too long to read up on the differences described in the book. Maybe this is a wild idea but try reading the migration guide. Try migrating a project to cake. - S On 22 Dec 2011 09:15, Kiran Ambati kiran00...@gmail.com wrote: Hi Jeremy, Thanks for your reply. As i got

Re: Questions about the field modified, created, updated

2011-12-22 Thread Sam Sherlock
Updated or modified which you use is upto you When you follow the conventions cake automagically does some stuff. Whilst still remaining flexible. - S On 22 Dec 2011 08:31, socrates socrates.alessan...@gmail.com wrote: Hello, here i am with a new question, someone could explain me how this

Re: Removing On behalf of from the Email From field Cakephp 1.3

2011-12-22 Thread Sam Sherlock
In dir named View that lives within your app exists other dirs. Email has a layout (2 html text) Likewise you'll find email has template for the body too. How you setup your email for your app is up to you play with the options to see what works best for you. - S On 22 Dec 2011 05:43, hunny

Re: editing user data when password doesn't change

2011-12-22 Thread Sam Sherlock
Intercept the password in beforeFilter - S On 22 Dec 2011 02:08, elogic asymo...@elogicmedia.com.au wrote: Hi All, I am using Auth and I have an edit user details page, the password is coming though hashed into the password field, if the user doesn't change the password, the hashed password

Re: $this-Auth-Allow('*') and scaffold problem

2011-12-21 Thread Sam Sherlock
Acl and scaffold don't play nice. Comment that comp for now add it later - S On 21 Dec 2011 12:47, gloop gl...@web.de wrote: Hello everybody, i cant believe it. I solved my last problem with Scaffold and now ive a new one. I add in my AppController an Auth and allow it to all my

Re: CakePHP 2.0 and Form Wizard

2011-12-19 Thread Sam Sherlock
with cakes defualt upgrade shell I have been able to cd to the plugin and then run upgrade (for me I run the subcommands one at a time as I have a plugin that won't be found and it will fail at helpers -- I suspect that this won't be the case for you but if you have issues run them 1by1) with

Re: 404 error

2011-12-18 Thread Sam Sherlock
The book has some notes on some setups needing htaccess needing extra bits added and other amendments - rewrite base might be part of the solution. Search the group for htaccess as this comes up often others have posted what worked for them already. - S On 18 Dec 2011 12:21, Surit

Re: Controllers, Layout Views

2011-12-16 Thread Sam Sherlock
Why make another controller to handle static content? Perhaps you playing with cake to learn and stuff... Just for me having entire controller to handle about content seems shit odd - perhaps making a dynamic pages controller is a better idea if you need db content otherwise use the pages

Re: Controllers, Layout Views

2011-12-16 Thread Sam Sherlock
timothy.john.orei...@gmail.com wrote: Sam, Newb - so playing and doing dumb things!! Thanks, Tim On Fri, Dec 16, 2011 at 3:11 PM, Sam Sherlock sam.sherl...@gmail.comwrote: Why make another controller to handle static content? Perhaps you playing with cake to learn and stuff... Just

Re: Is there a way to run cakephp on Server2Go?

2011-12-10 Thread Sam Sherlock
Mod rewrite won't affect db connection. Check again that your server has requirements - 2.0 is diff from 1.3 - S On 10 Dec 2011 16:36, zephyr7 dannylu...@googlemail.com wrote: I've been trying (without success) to run CakePHP 2.0 on a portable Server2Go server. For some reason, I can't

Re: How to use AuthComponent to authorize using a password only rather than username/password?

2011-12-07 Thread Sam Sherlock
do you want users to only use passcode to login instead of user/pass combo If so I think this is not possible using auth as is, and if this can be done you'd have to customise Auth by extending BaseAuthenticate although I think Auth is geared towards user/pass for logging in users if you

Re: Is it possible to access AuthComponent from a Helper ?

2011-12-02 Thread Sam Sherlock
I found an acl tutorial that has an access helper and comp. The access helper checks acl permissions before outputing links. All works fairly well, though I do have reservations about the way it crosses the view and controller streams This is the link

Re: js/css compression helpers for cakephp 2.0

2011-12-01 Thread Sam Sherlock
true but that being the case has other benefits too. and asset_compress has many options and you can customize it to your every whim *almost* On 30 November 2011 21:30, euromark dereurom...@googlemail.com wrote: I only thing I am wondering about that plugin is, whether it supports assert

Re: Vendor files from Plugin folder

2011-11-28 Thread Sam Sherlock
... App::build(array('Vendor' = array(APP . 'Plugin' . DS . 'PluginName' . DS . 'Vendor' . DS . 'SubFolder'. DS))); App::uses('ClassNameFromSubFolder', 'Vendor'); On 27 Nov., 20:41, Sam Sherlock sam.sherl...@gmail.com wrote: App::uses('ClassName

Re: Vendor files from Plugin folder

2011-11-27 Thread Sam Sherlock
App::uses('ClassName', 'PluginName.Vendor'); App::build will let you add additional paths for plugins etc. You don't need to use app build to be able to use classes from plugins. - S On 27 Nov 2011 17:55, p r perab...@googlemail.com wrote: Hello, it would be a pleasure if somebody could

Re: AuthComponent error only in a remote linux server

2011-11-26 Thread Sam Sherlock
Check that the files uploaded correctly. Clear the files from the tmp too. - S On 26 Nov 2011 17:17, Andre Fuhrman andrefuhr...@gmail.com wrote: Hi, I'm ending my first cake application but when a moved it to my remote server a internal error happened. In my wamp local server, works

Re: FireCake for normal html requests

2011-11-24 Thread Sam Sherlock
Try making a __contruct and calling parent::__construct with the correct vars - S On 24 Nov 2011 15:24, wirtsi florian.kra...@googlemail.com wrote: Hello, I'm using 2.0.3 and got Debugkit with FireCake working so far that I get the FirePHP output on any ajax request, which is neat to start

Re: Cakebook crashes Flash on Chrome

2011-11-24 Thread Sam Sherlock
Chrome seems to be prone to crashing due to flash (seems to be various problems) many result in crashing. for me I get this alot in chrome - I can't recall it happening in firefox (if it does not on the same scale) http://www.google.com/support/forum/p/Chrome/thread?tid=13137185df92e1ebhl=en As

Re: Where to publish new plugin?

2011-11-24 Thread Sam Sherlock
http://cakepackages.com/ you could also consider submitting a article for bakery too - S On 24 November 2011 21:02, Roland kreativestal...@gmail.com wrote: Hi! Is there any central place to announce a plugin I just write? cheers Roland --- banchaproject.org Combining ExtJS and

Re: Bake generating error!

2011-11-23 Thread Sam Sherlock
and the submodule(s) within only the one so far as I see but git submodule update --init --recursive - S On 23 November 2011 10:08, Andras Kende and...@kende.com wrote: PHP Fatal error: Could not locate CakePHP core files.. Since cake is a submodule in that repo You may need to

Re: Installation of CakeDC's Migrations plugin for CakePHP 2.0

2011-11-18 Thread Sam Sherlock
Specifically the plugin is camelcase the shell command is underscored - S On 18 Nov 2011 13:56, elitalon elita...@gmail.com wrote: Thanks. I didn't know I have to prefix 'Migrations' On Nov 16, 5:38 pm, Sam Sherlock sam.sherl...@gmail.com wrote: if you have it installed in Plugin/Migrations

Re: Installing a Cake app on OVH, with shared hosting

2011-11-18 Thread Sam Sherlock
I found that setting the root of domain to point direct to webroot and then setting rewritebase to / only editing the .htaccess in that directory to work well - S On 18 Nov 2011 15:58, phpMagpie p...@webbedit.co.uk wrote: Actually, this covers it better:

Re: Installation of CakeDC's Migrations plugin for CakePHP 2.0

2011-11-16 Thread Sam Sherlock
if you have it installed in Plugin/Migrations ./Console/cake Migrations.migration if a plugin migration is not showing check that the casing of the plugins directories is camelcased - S On 16 November 2011 15:16, elitalon elita...@gmail.com wrote: Hi, Can anybody provide some guidance

Re: Singular controller name route

2011-11-15 Thread Sam Sherlock
Perhaps using a custom class to collect data from the app. It could not rerun data unless it has a view action - S On 15 Nov 2011 18:43, martinp martinpe...@gmail.com wrote: Thanks for the reply Jeremy, but what I'm actually looking for is a way to do this automatically. In the same way

Re: Having layout breaking because of a whitespace?

2011-11-13 Thread Sam Sherlock
Really this is a css question. Using cake as your front end is not the cause of the whitespace. Perhaps some css applied to the container is adding space. Either way your question is better suited to a list such as webstandardsgroup.org/mail/ - S On 13 Nov 2011 09:20, heohni

Re: How to paginate subtable in a view?

2011-11-13 Thread Sam Sherlock
Paginate returns results paginated. Find returns unpaginated data - S On 13 Nov 2011 16:51, Daniel danwgr...@gmail.com wrote: On Nov 13, 11:01 am, phpMagpie p...@webbedit.co.uk wrote: You can't paginate data you have fetched with $this-Model-find() you must use $this-paginate(). HTH,

Re: CakePhp related domain

2011-11-12 Thread Sam Sherlock
Ironic that hosting is on godaddy as cake fan problematic on those servers. The domain is of little value really, the hosting is of no value. As cake foundation could host it on existing servers. As for someone taking the package from you you should rethink perhaps partner with some other

Re: CakePhp related domain

2011-11-12 Thread Sam Sherlock
So transfer the ownership of the domain and use the hosting you have purchased for another enterprise of your own. Why should your outlay for the hosting be covered by the sale of this domain? Consider the benefit you have gained from using cake. - S On 12 November 2011 00:51, Sandy

Re: User profile tutorial

2011-11-10 Thread Sam Sherlock
Connect a route from /profiles/:slug to controller: Users action: View use a sluggable behavior if you follow tutorials available at book.cakephp.org you'll a few tutorials to get you going. You may also benefit from seeing the CakeDC plugins on github Users for example allows Account holders

Re: Help: how to use cakephp for subdomains

2011-11-06 Thread Sam Sherlock
Check to see if your server config is set correctly for the subdomain Make sure that Overide is allowed and that AllowOverride is set to All *for the correct DocumentRoot* from book.cakephp.org - S On 6 November 2011 08:54, Hamid Mamdoohi hamid.mamdo...@gmail.com wrote: I create

Re: cake-sql-log in my layout

2011-11-05 Thread Sam Sherlock
?php echo $this-element('sql_dump'); ? but using the DebugKit plugin gives you more - S On 5 November 2011 16:50, Stefano stefano.tinare...@gmail.com wrote: how i can show in my layout the executed queries? for example : /view/layout/my_layout.ctp html head?php echo

Re: How to get related username in view?

2011-11-04 Thread Sam Sherlock
perhaps you have a missing semicolon on within the code above this - S On 4 November 2011 17:08, Daniel danwgr...@gmail.com wrote: $categories = $this-find( 'all', array( 'conditions' =

Re: How about using real HTML templates for Form input fields?

2011-11-03 Thread Sam Sherlock
So you'd get increased flexiblity (in markup control) but at what cost. additional overhead (an element for each form input) and having to make a range of elements for various differing situations or maybe I am missing the point - I am certain that you can do this without the need to call a Cake

Re: Admin Routing

2011-11-01 Thread Sam Sherlock
Thats what it is And you use admin_index methods distinct from index method. - S On 1 Nov 2011 21:25, Nate nathanle...@gmail.com wrote: So I'm reading over the Simple ACL tutorial provided in the documentation. Right at the beginning, it says... Leave out admin routing for now, this is a

Re: Admin Routing

2011-11-01 Thread Sam Sherlock
Yep then you need acl I saw a recent thread discussing a work-around to avoid all the extra methods views Does sound good. - S On 1 Nov 2011 21:44, Nate nathanle...@gmail.com wrote: So what if I have different levels of management? Super Administrators Administrators Managers Managers

Re: Admin Routing

2011-11-01 Thread Sam Sherlock
The thread was titled Going back to school: acl - S On 1 Nov 2011 21:52, Sam Sherlock sam.sherl...@gmail.com wrote: Yep then you need acl I saw a recent thread discussing a work-around to avoid all the extra methods views Does sound good. - S On 1 Nov 2011 21:44, Nate nathanle

Re: what does this mean in cakephp core source code?

2011-10-19 Thread Sam Sherlock
Newly baked apps have a home.ctp file that displays some inital info. Not certain of the details in entirely but it display recent info. That home.ctp is something you change anyhow. - S On 19 Oct 2011 14:38, Azrael azrael...@gmail.com wrote: Today before I connect to internet, I started my

Re: Redesign my old website

2011-10-17 Thread Sam Sherlock
Also checkout croogo. Fahad gave a talk about this at cakefest - its an active cake cms. Better than using drupal which does take a lot of tuning (I agree with webedit points) Use cake maybe croogo. Cake has lots of plugins, cake apps are leaner than drupal sites initially - S On 17 Oct 2011

Re: PLEASE HELP ME! Warning (2): Cannot modify header information - headers already sent by cake php

2011-10-03 Thread Sam Sherlock
It could be that you have some whitepace after a php closing tag (does the cats controller have any whitespace before the opening of php - very first line) the debugkit plugin has a command to search for whitespace - S On 1 October 2011 21:30, Dragana Kuzmanovic chikaa1...@gmail.com wrote:

Re: Fat Model Skinny Controlller? Is this really correct?

2011-10-01 Thread Sam Sherlock
Yep that's a summary of my thoughts on fat models. I think a good example of this is cakedc users plugin - updated last night along with a other cakedc plugins. - S On 1 Oct 2011 14:46, badben ba.dav...@gmail.com wrote: I'm certainly no expert but my understanding is that the placing as much

Re: [Noob!] Acl Tutorial Question

2011-09-30 Thread Sam Sherlock
$this-Auth-authorize = 'controller'; change to $this-Auth-authorize = 'actions'; or crud if your mapping actions http://book.cakephp.org/view/1275/authorize On 29 September 2011 03:34, Austin Pickett phr...@gmail.com wrote: $this-Auth-authorize = 'controller'; -- Our newest site for the

Re: Can't locate the database?

2011-09-30 Thread Sam Sherlock
cakephp bin is for you to paste code into for others to review code and give advice better than pasting it to email (urgh) you can also browse code snippets by tag - S On 30 September 2011 16:04, Yves S. Garret yoursurrogate...@gmail.comwrote: No problem.

Re: [Noob!] Acl Tutorial Question

2011-09-30 Thread Sam Sherlock
up the way the acl tutorial shows and my groups are: admins, managers, users. Thanks in advance. On Fri, Sep 30, 2011 at 10:02 AM, Sam Sherlock sam.sherl...@gmail.comwrote: $this-Auth-authorize = 'controller'; change to $this-Auth-authorize = 'actions'; or crud if your mapping

  1   2   3   4   5   6   7   >